| 1 | |
| 2 | ## Change Log for Release asterisk-22.6.0 |
| 3 | |
| 4 | ### Links: |
| 5 | |
| 6 | - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.6.0.html) |
| 7 | - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.5.2...22.6.0) |
| 8 | - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.6.0.tar.gz) |
| 9 | - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk) |
| 10 | |
| 11 | ### Summary: |
| 12 | |
| 13 | - Commits: 54 |
| 14 | - Commit Authors: 22 |
| 15 | - Issues Resolved: 40 |
| 16 | - Security Advisories Resolved: 0 |
| 17 | |
| 18 | ### User Notes: |
| 19 | |
| 20 | - #### app_queue.c: Add new global 'log_unpause_on_reason_change' |
| 21 | Add new global option 'log_unpause_on_reason_change' that |
| 22 | is default disabled. When enabled cause addition of UNPAUSE event on |
| 23 | every re-PAUSE with reason changed. |
| 24 | |
| 25 | - #### pbx_builtins: Allow custom tone for WaitExten. |
| 26 | The tone used while waiting for digits in WaitExten |
| 27 | can now be overridden by specifying an argument for the 'd' |
| 28 | option. |
| 29 | |
| 30 | - #### res_tonedetect: Add option for TONE_DETECT detection to auto stop. |
| 31 | The 'e' option for TONE_DETECT now allows detection to |
| 32 | be disabled automatically once the desired number of matches have |
| 33 | been fulfilled, which can help prevent race conditions in the |
| 34 | dialplan, since TONE_DETECT does not need to be disabled after |
| 35 | a hit. |
| 36 | |
| 37 | - #### sorcery: Prevent duplicate objects and ensure missing objects are created on u.. |
| 38 | Users relying on Sorcery multiple writable backends configurations |
| 39 | (e.g., astdb + realtime) may now enable update_or_create_on_update_miss = yes |
| 40 | in sorcery.conf to ensure missing objects are recreated after temporary backend |
| 41 | failures. Default behavior remains unchanged unless explicitly enabled. |
| 42 | |
| 43 | - #### chan_websocket: Allow additional URI parameters to be added to the outgoing URI. |
| 44 | A new WebSocket channel driver option `v` has been added to the |
| 45 | Dial application that allows you to specify additional URI parameters on |
| 46 | outgoing connections. Run `core show application Dial` from the Asterisk CLI |
| 47 | to see how to use it. |
| 48 | |
| 49 | - #### app_chanspy: Add option to not automatically answer channel. |
| 50 | ChanSpy and ExtenSpy can now be configured to not |
| 51 | automatically answer the channel by using the 'N' option. |
| 52 | |
| 53 | - #### cel: Add STREAM_BEGIN, STREAM_END and DTMF event types. |
| 54 | Enabling the tracking of the |
| 55 | STREAM_BEGIN and the STREAM_END event |
| 56 | types in cel.conf will log media files and |
| 57 | music on hold played to each channel. |
| 58 | The STREAM_BEGIN event's extra field will |
| 59 | contain a JSON with the file details (path, |
| 60 | format and language), or the class name, in |
| 61 | case of music on hold is played. The DTMF |
| 62 | event's extra field will contain a JSON with |
| 63 | the digit and the duration in milliseconds. |
| 64 | |
| 65 | - #### res_srtp: Add menuselect options to enable AES_192, AES_256 and AES_GCM |
| 66 | Options are now available in the menuselect "Resource Modules" |
| 67 | category that allow you to enable the AES_192, AES_256 and AES_GCM |
| 68 | cipher suites in res_srtp. Of course, libsrtp and OpenSSL must support |
| 69 | them but modern versions do. Previously, the only way to enable them was |
| 70 | to set the CFLAGS environment variable when running ./configure. |
| 71 | The default setting is to disable them preserving existing behavior. |
| 72 | |
| 73 | - #### cdr: add CANCEL dispostion in CDR |
| 74 | A new CDR option "canceldispositionenabled" has been added |
| 75 | that when set to true, the NO ANSWER disposition will be split into |
| 76 | two dispositions: CANCEL and NO ANSWER. The default value is 'no' |
| 77 | |
| 78 | - #### func_curl: Allow auth methods to be set. |
| 79 | The httpauth field in CURLOPT now allows the authentication |
| 80 | methods to be set. |
| 81 | |
| 82 | - #### Media over Websocket Channel Driver |
| 83 | A new channel driver "chan_websocket" is now available. It can |
| 84 | exchange media over both inbound and outbound websockets and will both frame |
| 85 | and re-time the media it receives. |
| 86 | See http://s.asterisk.net/mow for more information. |
| 87 | The ARI channels/externalMedia API now includes support for the |
| 88 | |
| 89 | ### Upgrade Notes: |
| 90 | |
| 91 | |
| 92 | ### Developer Notes: |
| 93 | |
| 94 | - #### ARI: Add command to indicate progress to a channel |
| 95 | A new ARI endpoint is available at `/channels/{channelId}/progress` to indicate progress to a channel. |
| 96 | |
| 97 | - #### options: Change ast_options from ast_flags to ast_flags64. |
| 98 | The 32-bit ast_options has no room left to accomodate new |
| 99 | options and so has been converted to an ast_flags64 structure. All internal |
| 100 | references to ast_options have been updated to use the 64-bit flag |
| 101 | manipulation macros. External module references to the 32-bit ast_options |
| 102 | should continue to work on little-endian systems because the |
| 103 | least-significant bytes of a 64 bit integer will be in the same location as a |
| 104 | 32-bit integer. Because that's not the case on big-endian systems, we've |
| 105 | swapped the bytes in the flags manupulation macros on big-endian systems |
| 106 | so external modules should still work however you are encouraged to test. |
| 107 | |
| 108 | |
| 109 | ### Commit Authors: |
| 110 | |
| 111 | - Alexei Gradinari: (2) |
| 112 | - Alexey Khabulyak: (2) |
| 113 | - Allan Nathanson: (1) |
| 114 | - Artem Umerov: (1) |
| 115 | - Ben Ford: (1) |
| 116 | - George Joseph: (12) |
| 117 | - Igor Goncharovsky: (2) |
| 118 | - Jaco Kroon: (1) |
| 119 | - Joe Garlick: (1) |
| 120 | - Jose Lopes: (1) |
| 121 | - Kodokaii: (1) |
| 122 | - Martin Tomec: (1) |
| 123 | - Mike Bradeen: (1) |
| 124 | - Mkmer: (1) |
| 125 | - Naveen Albert: (15) |
| 126 | - Sean Bright: (2) |
| 127 | - Sperl Viktor: (2) |
| 128 | - Stanislav Abramenkov: (1) |
| 129 | - Stuart Henderson: (1) |
| 130 | - Sven Kube: (2) |
| 131 | - Tinet-Mucw: (2) |
| 132 | - Zhou_jiajian: (1) |
| 133 | |
| 134 | ## Issue and Commit Detail: |
| 135 | |
| 136 | ### Closed Issues: |
| 137 | |
| 138 | - 401: [bug]: app_dial: Answer Gosub option passthrough regression |
| 139 | - 927: [bug]: no audio when media source changed during the call |
| 140 | - 1176: [bug]: ast_slinear_saturated_multiply_float produces potentially audible distortion artifacts |
| 141 | - 1259: [bug]: New TenantID feature doesn't seem to set CDR for incoming calls |
| 142 | - 1260: [bug]: Asterisk sends RTP audio stream before ICE/DTLS completes |
| 143 | - 1269: [bug]: MixMonitor with D option produces corrupt file |
| 144 | - 1273: [bug]: When executed with GotoIf, the action Redirect does not take effect and causes confusion in dialplan execution. |
| 145 | - 1280: [improvement]: logging playback of audio per channel |
| 146 | - 1289: [bug]: sorcery - duplicate objects from multiple backends and backend divergence on update |
| 147 | - 1301: [bug]: sig_analog: fgccamamf doesn't handle STP, STP2, or STP3 |
| 148 | - 1304: [bug]: FLUSH_MEDIA does not reset frame_queue_length in WebSocket channel |
| 149 | - 1305: [bug]: Realtime incorrectly falls back to next backend on record-not-found (SQL_NO_DATA), causing incorrect behavior and delay |
| 150 | - 1307: [improvement]: ast_tls_cert: Allow certificate validity to be configurable |
| 151 | - 1309: [bug]: Crash with C++ alternative storage backend enabled |
| 152 | - 1315: [bug]: When executed with dialplan, the action Redirect does not take effect. |
| 153 | - 1317: [bug]: AGI command buffer overflow with long variables |
| 154 | - 1321: [improvement]: app_agent_pool: Remove obsolete documentation |
| 155 | - 1323: [new-feature]: add CANCEL dispostion in CDR |
| 156 | - 1327: [bug]: res_stasis_device_state: can't delete ARI Devicestate after asterisk restart |
| 157 | - 1332: [new-feature]: func_curl: Allow auth methods to be set |
| 158 | - 1349: [bug]: Race condition on redirect can cause missing Diversion header |
| 159 | - 1352: [improvement]: Websocket channel with custom URI |
| 160 | - 1353: [bug]: AST_DATA_DIR/sounds/custom directory not searched |
| 161 | - 1358: [new-feature]: app_chanspy: Add option to not automatically answer channel |
| 162 | - 1364: [bug]: bridge.c: BRIDGE_NOANSWER not always obeyed |
| 163 | - 1366: [improvement]: func_frame_drop: Handle allocation failure properly |
| 164 | - 1369: [bug]: test_res_prometheus: Compilation failure in devmode due to curlopts not using long type |
| 165 | - 1371: [improvement]: func_frame_drop: Add debug messages for frames that can be dropped |
| 166 | - 1375: [improvement]: dsp.c: Improve logging in tone_detect(). |
| 167 | - 1378: [bug]: chan_dahdi: dialmode feature is not properly reset between calls |
| 168 | - 1380: [bug]: sig_analog: Segfault due to calling strcmp on NULL |
| 169 | - 1384: [bug]: chan_websocket: asterisk crashes on hangup after STOP_MEDIA_BUFFERING command with id |
| 170 | - 1386: [bug]: enabling announceposition_only_up prevents any queue position announcements |
| 171 | - 1390: [improvement]: res_tonedetect: Add option to automatically end detection in TONE_DETECT |
| 172 | - 1394: [improvement]: sig_analog: Skip Caller ID spill if Caller ID is disabled |
| 173 | - 1396: [new-feature]: pbx_builtins: Make tone option for WaitExten configurable |
| 174 | - 1401: [bug]: app_waitfornoise timeout is always less then configured because of time() usage |
| 175 | - 1457: [bug]: segmentation fault because of a wrong ari config |
| 176 | - 1462: [bug]: chan_websocket isn't handling the "opus" codec correctly. |
| 177 | - 1474: [bug]: Media doesn't flow for video conference after res_rtp_asterisk change to stop media flow before DTLS completes |
| 178 | |
| 179 | ### Commits By Author: |
| 180 | |
| 181 | - #### Alexei Gradinari (2): |
| 182 | - res_config_odbc: Prevent Realtime fallback on record-not-found (SQL_NO_DATA) |
| 183 | - sorcery: Prevent duplicate objects and ensure missing objects are created on u.. |
| 184 | |
| 185 | - #### Alexey Khabulyak (2): |
| 186 | - app_dial.c: Moved channel lock to prevent deadlock |
| 187 | - pbx_lua.c: segfault when pass null data to term_color function |
| 188 | |
| 189 | - #### Allan Nathanson (1): |
| 190 | - file.c: with "sounds_search_custom_dir = yes", search "custom" directory |
| 191 | |
| 192 | - #### Artem Umerov (1): |
| 193 | - Fix missing ast_test_flag64 in extconf.c |
| 194 | |
| 195 | - #### Ben Ford (1): |
| 196 | - res_rtp_asterisk: Don't send RTP before DTLS has negotiated. |
| 197 | |
| 198 | - #### George Joseph (12): |
| 199 | - Media over Websocket Channel Driver |
| 200 | - app_mixmonitor: Update the documentation concerning the "D" option. |
| 201 | - cdr.c: Set tenantid from party_a->base instead of chan->base. |
| 202 | - options: Change ast_options from ast_flags to ast_flags64. |
| 203 | - res_srtp: Add menuselect options to enable AES_192, AES_256 and AES_GCM |
| 204 | - channelstorage_cpp_map_name_id.cc: Refactor iterators for thread-safety. |
| 205 | - xmldoc.c: Fix rendering of CLI output. |
| 206 | - chan_websocket: Fix buffer overrun when processing TEXT websocket frames. |
| 207 | - chan_websocket: Allow additional URI parameters to be added to the outgoing URI. |
| 208 | - res_ari: Ensure outbound websocket config has a websocket_client_id. |
| 209 | - chan_websocket: Fix codec validation and add passthrough option. |
| 210 | - res_rtp_asterisk.c: Use rtp->dtls in __rtp_sendto when rtcp mux is used. |
| 211 | |
| 212 | - #### Igor Goncharovsky (2): |
| 213 | - app_waitforsilence.c: Use milliseconds to calculate timeout time |
| 214 | - app_queue.c: Add new global 'log_unpause_on_reason_change' |
| 215 | |
| 216 | - #### Jaco Kroon (1): |
| 217 | - res_musiconhold: Appropriately lock channel during start. |
| 218 | |
| 219 | - #### Joe Garlick (1): |
| 220 | - chan_websocket.c: Add DTMF messages |
| 221 | |
| 222 | - #### Jose Lopes (1): |
| 223 | - res_stasis_device_state: Fix delete ARI Devicestates after asterisk restart. |
| 224 | |
| 225 | - #### Martin Tomec (1): |
| 226 | - chan_pjsip.c: Change SSRC after media source change |
| 227 | |
| 228 | - #### Mike Bradeen (1): |
| 229 | - res_pjsip_diversion: resolve race condition between Diversion header processin.. |
| 230 | |
| 231 | - #### Naveen Albert (15): |
| 232 | - sig_analog: Properly handle STP, ST2P, and ST3P for fgccamamf. |
| 233 | - ast_tls_cert: Make certificate validity configurable. |
| 234 | - app_agent_pool: Remove documentation for removed option. |
| 235 | - func_curl: Allow auth methods to be set. |
| 236 | - bridge.c: Obey BRIDGE_NOANSWER variable to skip answering channel. |
| 237 | - func_frame_drop: Handle allocation failure properly. |
| 238 | - test_res_prometheus: Fix compilation failure on Debian 13. |
| 239 | - func_frame_drop: Add debug messages for dropped frames. |
| 240 | - app_chanspy: Add option to not automatically answer channel. |
| 241 | - dsp.c: Improve debug logging in tone_detect(). |
| 242 | - sig_analog: Fix SEGV due to calling strcmp on NULL. |
| 243 | - chan_dahdi: Fix erroneously persistent dialmode. |
| 244 | - sig_analog: Skip Caller ID spill if usecallerid=no. |
| 245 | - res_tonedetect: Add option for TONE_DETECT detection to auto stop. |
| 246 | - pbx_builtins: Allow custom tone for WaitExten. |
| 247 | |
| 248 | - #### Sean Bright (2): |
| 249 | - res_musiconhold.c: Annotate when the channel is locked. |
| 250 | - res_musiconhold.c: Ensure we're always locked around music state access. |
| 251 | |
| 252 | - #### Sperl Viktor (2): |
| 253 | - res_agi: Increase AGI command buffer size from 2K to 8K |
| 254 | - cel: Add STREAM_BEGIN, STREAM_END and DTMF event types. |
| 255 | |
| 256 | - #### Stanislav Abramenkov (1): |
| 257 | - bundled_pjproject: Avoid deadlock between transport and transaction |
| 258 | |
| 259 | - #### Stuart Henderson (1): |
| 260 | - app_queue: fix comparison for announce-position-only-up |
| 261 | |
| 262 | - #### Sven Kube (2): |
| 263 | - resource_channels.c: Don't call ast_channel_get_by_name on empty optional argu.. |
| 264 | - ARI: Add command to indicate progress to a channel |
| 265 | |
| 266 | - #### Tinet-mucw (2): |
| 267 | - pbx.c: when set flag AST_SOFTHANGUP_ASYNCGOTO, ast_explicit_goto should return.. |
| 268 | - pbx.c: When the AST_SOFTHANGUP_ASYNCGOTO flag is set, pbx_extension_helper sho.. |
| 269 | |
| 270 | - #### kodokaii (1): |
| 271 | - chan_websocket: Reset frame_queue_length to 0 after FLUSH_MEDIA |
| 272 | |
| 273 | - #### mkmer (1): |
| 274 | - utils.h: Add rounding to float conversion to int. |
| 275 | |
| 276 | - #### zhou_jiajian (1): |
| 277 | - cdr: add CANCEL dispostion in CDR |
| 278 | |
| 279 | |
| 280 | ### Commit List: |
| 281 | |
| 282 | - res_rtp_asterisk.c: Use rtp->dtls in __rtp_sendto when rtcp mux is used. |
| 283 | - chan_websocket: Fix codec validation and add passthrough option. |
| 284 | - res_ari: Ensure outbound websocket config has a websocket_client_id. |
| 285 | - chan_websocket.c: Add DTMF messages |
| 286 | - app_queue.c: Add new global 'log_unpause_on_reason_change' |
| 287 | - app_waitforsilence.c: Use milliseconds to calculate timeout time |
| 288 | - Fix missing ast_test_flag64 in extconf.c |
| 289 | - pbx_builtins: Allow custom tone for WaitExten. |
| 290 | - res_tonedetect: Add option for TONE_DETECT detection to auto stop. |
| 291 | - app_queue: fix comparison for announce-position-only-up |
| 292 | - sig_analog: Skip Caller ID spill if usecallerid=no. |
| 293 | - chan_dahdi: Fix erroneously persistent dialmode. |
| 294 | - chan_websocket: Fix buffer overrun when processing TEXT websocket frames. |
| 295 | - sig_analog: Fix SEGV due to calling strcmp on NULL. |
| 296 | - ARI: Add command to indicate progress to a channel |
| 297 | - dsp.c: Improve debug logging in tone_detect(). |
| 298 | - res_stasis_device_state: Fix delete ARI Devicestates after asterisk restart. |
| 299 | - app_chanspy: Add option to not automatically answer channel. |
| 300 | - xmldoc.c: Fix rendering of CLI output. |
| 301 | - func_frame_drop: Add debug messages for dropped frames. |
| 302 | - test_res_prometheus: Fix compilation failure on Debian 13. |
| 303 | - func_frame_drop: Handle allocation failure properly. |
| 304 | - pbx_lua.c: segfault when pass null data to term_color function |
| 305 | - bridge.c: Obey BRIDGE_NOANSWER variable to skip answering channel. |
| 306 | - res_rtp_asterisk: Don't send RTP before DTLS has negotiated. |
| 307 | - app_dial.c: Moved channel lock to prevent deadlock |
| 308 | - file.c: with "sounds_search_custom_dir = yes", search "custom" directory |
| 309 | - cel: Add STREAM_BEGIN, STREAM_END and DTMF event types. |
| 310 | - channelstorage_cpp_map_name_id.cc: Refactor iterators for thread-safety. |
| 311 | - res_srtp: Add menuselect options to enable AES_192, AES_256 and AES_GCM |
| 312 | - cdr: add CANCEL dispostion in CDR |
| 313 | - func_curl: Allow auth methods to be set. |
| 314 | - options: Change ast_options from ast_flags to ast_flags64. |
| 315 | - res_config_odbc: Prevent Realtime fallback on record-not-found (SQL_NO_DATA) |
| 316 | - app_agent_pool: Remove documentation for removed option. |
| 317 | - res_agi: Increase AGI command buffer size from 2K to 8K |
| 318 | - ast_tls_cert: Make certificate validity configurable. |
| 319 | - cdr.c: Set tenantid from party_a->base instead of chan->base. |
| 320 | - app_mixmonitor: Update the documentation concerning the "D" option. |
| 321 | - sig_analog: Properly handle STP, ST2P, and ST3P for fgccamamf. |
| 322 | - chan_websocket: Reset frame_queue_length to 0 after FLUSH_MEDIA |
| 323 | - chan_pjsip.c: Change SSRC after media source change |
| 324 | - Media over Websocket Channel Driver |
| 325 | - bundled_pjproject: Avoid deadlock between transport and transaction |
| 326 | - utils.h: Add rounding to float conversion to int. |
| 327 | - res_musiconhold.c: Ensure we're always locked around music state access. |
| 328 | - res_musiconhold.c: Annotate when the channel is locked. |
| 329 | - res_musiconhold: Appropriately lock channel during start. |
| 330 | |
| 331 | ### Commit Details: |
| 332 | |
| 333 | #### res_rtp_asterisk.c: Use rtp->dtls in __rtp_sendto when rtcp mux is used. |
| 334 | Author: George Joseph |
| 335 | Date: 2025-09-23 |
| 336 | |
| 337 | In __rtp_sendto(), the check for DTLS negotiation completion for rtcp packets |
| 338 | needs to use the rtp->dtls structure instead of rtp->rtcp->dtls when |
| 339 | AST_RTP_INSTANCE_RTCP_MUX is set. |
| 340 | |
| 341 | Resolves: #1474 |
| 342 | |
| 343 | #### chan_websocket: Fix codec validation and add passthrough option. |
| 344 | Author: George Joseph |
| 345 | Date: 2025-09-17 |
| 346 | |
| 347 | * Fixed an issue in webchan_write() where we weren't detecting equivalent |
| 348 | codecs properly. |
| 349 | * Added the "p" dialstring option that puts the channel driver in |
| 350 | "passthrough" mode where it will not attempt to re-frame or re-time |
| 351 | media coming in over the websocket from the remote app. This can be used |
| 352 | for any codec but MUST be used for codecs that use packet headers or whose |
| 353 | data stream can't be broken up on arbitrary byte boundaries. In this case, |
| 354 | the remote app is fully responsible for correctly framing and timing media |
| 355 | sent to Asterisk and the MEDIA text commands that could be sent over the |
| 356 | websocket are disabled. Currently, passthrough mode is automatically set |
| 357 | for the opus, speex and g729 codecs. |
| 358 | * Now calling ast_set_read_format() after ast_channel_set_rawreadformat() to |
| 359 | ensure proper translation paths are set up when switching between native |
| 360 | frames and slin silence frames. This fixes an issue with codec errors |
| 361 | when transcode_via_sln=yes. |
| 362 | |
| 363 | Resolves: #1462 |
| 364 | |
| 365 | #### res_ari: Ensure outbound websocket config has a websocket_client_id. |
| 366 | Author: George Joseph |
| 367 | Date: 2025-09-12 |
| 368 | |
| 369 | Added a check to outbound_websocket_apply() that makes sure an outbound |
| 370 | websocket config object in ari.conf has a websocket_client_id parameter. |
| 371 | |
| 372 | Resolves: #1457 |
| 373 | |
| 374 | #### chan_websocket.c: Add DTMF messages |
| 375 | Author: Joe Garlick |
| 376 | Date: 2025-09-04 |
| 377 | |
| 378 | Added DTMF messages to the chan_websocket feature. |
| 379 | |
| 380 | When a user presses DTMF during a call over chan_websocket it will send a message like: |
| 381 | "DTMF_END digit:1" |
| 382 | |
| 383 | Resolves: https://github.com/asterisk/asterisk-feature-requests/issues/70 |
| 384 | |
| 385 | #### app_queue.c: Add new global 'log_unpause_on_reason_change' |
| 386 | Author: Igor Goncharovsky |
| 387 | Date: 2025-09-02 |
| 388 | |
| 389 | In many asterisk-based systems, the pause reason is used to separate |
| 390 | pauses by type,and logically, changing the reason defines two intervals |
| 391 | that should be accounted for separately. The introduction of a new |
| 392 | option allows me to separate the intervals of operator inactivity in |
| 393 | the log by the event of unpausing. |
| 394 | |
| 395 | UserNote: Add new global option 'log_unpause_on_reason_change' that |
| 396 | is default disabled. When enabled cause addition of UNPAUSE event on |
| 397 | every re-PAUSE with reason changed. |
| 398 | |
| 399 | |
| 400 | #### app_waitforsilence.c: Use milliseconds to calculate timeout time |
| 401 | Author: Igor Goncharovsky |
| 402 | Date: 2025-09-04 |
| 403 | |
| 404 | The functions WaitForNoise() and WaitForSilence() use the time() |
| 405 | functions to calculate elapsed time, which causes the timer to fire on |
| 406 | a whole second boundary, and the actual function execution time to fire |
| 407 | the timer may be 1 second less than expected. This fix replaces time() |
| 408 | with ast_tvnow(). |
| 409 | |
| 410 | Fixes: #1401 |
| 411 | |
| 412 | #### Fix missing ast_test_flag64 in extconf.c |
| 413 | Author: Artem Umerov |
| 414 | Date: 2025-08-29 |
| 415 | |
| 416 | Fix missing ast_test_flag64 after https://github.com/asterisk/asterisk/commit/43bf8a4ded7a65203b766b91eaf8331a600e9d8d |
| 417 | |
| 418 | |
| 419 | #### pbx_builtins: Allow custom tone for WaitExten. |
| 420 | Author: Naveen Albert |
| 421 | Date: 2025-08-25 |
| 422 | |
| 423 | Currently, the 'd' option will play dial tone while waiting |
| 424 | for digits. Allow it to accept an argument for any tone from |
| 425 | indications.conf. |
| 426 | |
| 427 | Resolves: #1396 |
| 428 | |
| 429 | UserNote: The tone used while waiting for digits in WaitExten |
| 430 | can now be overridden by specifying an argument for the 'd' |
| 431 | option. |
| 432 | |
| 433 | |
| 434 | #### res_tonedetect: Add option for TONE_DETECT detection to auto stop. |
| 435 | Author: Naveen Albert |
| 436 | Date: 2025-08-22 |
| 437 | |
| 438 | One of the problems with TONE_DETECT as it was originally written |
| 439 | is that if a tone is detected multiple times, it can trigger |
| 440 | the redirect logic multiple times as well. For example, if we |
| 441 | do an async goto in the dialplan after detecting a tone, because |
| 442 | the detector is still active until explicitly disabled, if we |
| 443 | detect the tone again, we will branch again and start executing |
| 444 | that dialplan a second time. This is rarely ever desired behavior, |
| 445 | and can happen if the detector is not removed quickly enough. |
| 446 | |
| 447 | Add a new option, 'e', which automatically disables the detector |
| 448 | once the desired number of matches have been heard. This eliminates |
| 449 | the potential race condition where previously the detector would |
| 450 | need to be disabled immediately, but doing so quickly enough |
| 451 | was not guaranteed. This also allows match criteria to be retained |
| 452 | longer if needed, so the detector does not need to be destroyed |
| 453 | prematurely. |
| 454 | |
| 455 | Resolves: #1390 |
| 456 | |
| 457 | UserNote: The 'e' option for TONE_DETECT now allows detection to |
| 458 | be disabled automatically once the desired number of matches have |
| 459 | been fulfilled, which can help prevent race conditions in the |
| 460 | dialplan, since TONE_DETECT does not need to be disabled after |
| 461 | a hit. |
| 462 | |
| 463 | |
| 464 | #### app_queue: fix comparison for announce-position-only-up |
| 465 | Author: Stuart Henderson |
| 466 | Date: 2025-08-21 |
| 467 | |
| 468 | Numerically comparing that the current queue position is less than |
| 469 | last_pos_said can only be done after at least one announcement has been |
| 470 | made, otherwise last_pos_said is at the default (0). |
| 471 | |
| 472 | Fixes: #1386 |
| 473 | |
| 474 | #### sorcery: Prevent duplicate objects and ensure missing objects are created on u.. |
| 475 | Author: Alexei Gradinari |
| 476 | Date: 2025-07-07 |
| 477 | |
| 478 | This patch resolves two issues in Sorcery objectset handling with multiple |
| 479 | backends: |
| 480 | |
| 481 | 1. Prevent duplicate objects: |
| 482 | When an object exists in more than one backend (e.g., a contact in both |
| 483 | 'astdb' and 'realtime'), the objectset previously returned multiple instances |
| 484 | of the same logical object. This caused logic failures in components like the |
| 485 | PJSIP registrar, where duplicate contact entries led to overcounting and |
| 486 | incorrect deletions, when max_contacts=1 and remove_existing=yes. |
| 487 | |
| 488 | This patch ensures only one instance of an object with a given key is added |
| 489 | to the objectset, avoiding these duplicate-related side effects. |
| 490 | |
| 491 | 2. Ensure missing objects are created: |
| 492 | When using multiple writable backends, a temporary backend failure can lead |
| 493 | to objects missing permanently from that backend. |
| 494 | Currently, .update() silently fails if the object is not present, |
| 495 | and no .create() is attempted. |
| 496 | This results in inconsistent state across backends (e.g. astdb vs. realtime). |
| 497 | |
| 498 | This patch introduces a new global option in sorcery.conf: |
| 499 | [general] |
| 500 | update_or_create_on_update_miss = yes|no |
| 501 | |
| 502 | Default: no (preserves existing behavior). |
| 503 | |
| 504 | When enabled: if .update() fails with no data found, .create() is attempted |
| 505 | in that backend. This ensures that objects missing due to temporary backend |
| 506 | outages are re-synchronized once the backend is available again. |
| 507 | |
| 508 | Added a new CLI command: |
| 509 | sorcery show settings |
| 510 | Displays global Sorcery settings, including the current value of |
| 511 | update_or_create_on_update_miss. |
| 512 | |
| 513 | Updated tests to validate both flag enabled/disabled behavior. |
| 514 | |
| 515 | Fixes: #1289 |
| 516 | |
| 517 | UserNote: Users relying on Sorcery multiple writable backends configurations |
| 518 | (e.g., astdb + realtime) may now enable update_or_create_on_update_miss = yes |
| 519 | in sorcery.conf to ensure missing objects are recreated after temporary backend |
| 520 | failures. Default behavior remains unchanged unless explicitly enabled. |
| 521 | |
| 522 | |
| 523 | #### sig_analog: Skip Caller ID spill if usecallerid=no. |
| 524 | Author: Naveen Albert |
| 525 | Date: 2025-08-25 |
| 526 | |
| 527 | If Caller ID is disabled for an FXS port, then we should not send any |
| 528 | Caller ID spill on the line, as we have no Caller ID information that |
| 529 | we can/should be sending. |
| 530 | |
| 531 | Resolves: #1394 |
| 532 | |
| 533 | #### chan_dahdi: Fix erroneously persistent dialmode. |
| 534 | Author: Naveen Albert |
| 535 | Date: 2025-08-18 |
| 536 | |
| 537 | It is possible to modify the dialmode setting in the chan_dahdi/sig_analog |
| 538 | private using the CHANNEL function, to modify it during calls. However, |
| 539 | it was not being reset between calls, meaning that if, for example, tone |
| 540 | dialing was disabled, it would never work again unless explicitly enabled. |
| 541 | |
| 542 | This fixes the setting by pairing it with a "perm" version of the setting, |
| 543 | as a few other features have, so that it can be reset to the permanent |
| 544 | setting between calls. The documentation is also clarified to explain |
| 545 | the interaction of this setting and the digitdetect setting more clearly. |
| 546 | |
| 547 | Resolves: #1378 |
| 548 | |
| 549 | #### chan_websocket: Allow additional URI parameters to be added to the outgoing URI. |
| 550 | Author: George Joseph |
| 551 | Date: 2025-08-13 |
| 552 | |
| 553 | * Added a new option to the WebSocket dial string to capture the additional |
| 554 | URI parameters. |
| 555 | * Added a new API ast_uri_verify_encoded() that verifies that a string |
| 556 | either doesn't need URI encoding or that it has already been encoded. |
| 557 | * Added a new API ast_websocket_client_add_uri_params() to add the params |
| 558 | to the client websocket session. |
| 559 | * Added XML documentation that will show up with `core show application Dial` |
| 560 | that shows how to use it. |
| 561 | |
| 562 | Resolves: #1352 |
| 563 | |
| 564 | UserNote: A new WebSocket channel driver option `v` has been added to the |
| 565 | Dial application that allows you to specify additional URI parameters on |
| 566 | outgoing connections. Run `core show application Dial` from the Asterisk CLI |
| 567 | to see how to use it. |
| 568 | |
| 569 | |
| 570 | #### chan_websocket: Fix buffer overrun when processing TEXT websocket frames. |
| 571 | Author: George Joseph |
| 572 | Date: 2025-08-19 |
| 573 | |
| 574 | ast_websocket_read() receives data into a fixed 64K buffer then continually |
| 575 | reallocates a final buffer that, after all continuation frames have been |
| 576 | received, is the exact length of the data received and returns that to the |
| 577 | caller. process_text_message() in chan_websocket was attempting to set a |
| 578 | NULL terminator on the received payload assuming the payload buffer it |
| 579 | received was the large 64K buffer. The assumption was incorrect so when it |
| 580 | tried to set a NULL terminator on the payload, it could, depending on the |
| 581 | state of the heap at the time, cause heap corruption. |
| 582 | |
| 583 | process_text_message() now allocates its own payload_len + 1 sized buffer, |
| 584 | copies the payload received from ast_websocket_read() into it then NULL |
| 585 | terminates it prevent the possibility of the overrun and corruption. |
| 586 | |
| 587 | Resolves: #1384 |
| 588 | |
| 589 | #### sig_analog: Fix SEGV due to calling strcmp on NULL. |
| 590 | Author: Naveen Albert |
| 591 | Date: 2025-08-18 |
| 592 | |
| 593 | Add an additional check to guard against the channel application being |
| 594 | NULL. |
| 595 | |
| 596 | Resolves: #1380 |
| 597 | |
| 598 | #### ARI: Add command to indicate progress to a channel |
| 599 | Author: Sven Kube |
| 600 | Date: 2025-07-30 |
| 601 | |
| 602 | Adds an ARI command to send a progress indication to a channel. |
| 603 | |
| 604 | DeveloperNote: A new ARI endpoint is available at `/channels/{channelId}/progress` to indicate progress to a channel. |
| 605 | |
| 606 | #### dsp.c: Improve debug logging in tone_detect(). |
| 607 | Author: Naveen Albert |
| 608 | Date: 2025-08-15 |
| 609 | |
| 610 | The debug logging during DSP processing has always been kind |
| 611 | of overwhelming and annoying to troubleshoot. Simplify and |
| 612 | improve the logging in a few ways to aid DSP debugging: |
| 613 | |
| 614 | * If we had a DSP hit, don't also emit the previous debug message that |
| 615 | was always logged. It is duplicated by the hit message, so this can |
| 616 | reduce the number of debug messages during detection by 50%. |
| 617 | * Include the hit count and required number of hits in the message so |
| 618 | on partial detections can be more easily troubleshot. |
| 619 | * Use debug level 9 for hits instead of 10, so we can focus on hits |
| 620 | without all the noise from the per-frame debug message. |
| 621 | * 1-index the hit count in the debug messages. On the first hit, it |
| 622 | currently logs '0', just as when we are not detecting anything, |
| 623 | which can be confusing. |
| 624 | |
| 625 | Resolves: #1375 |
| 626 | |
| 627 | #### res_stasis_device_state: Fix delete ARI Devicestates after asterisk restart. |
| 628 | Author: Jose Lopes |
| 629 | Date: 2025-07-30 |
| 630 | |
| 631 | After an asterisk restart, the deletion of ARI Devicestates didn't |
| 632 | return error, but the devicestate was not deleted. |
| 633 | Found a typo on populate_cache function that created wrong cache for |
| 634 | device states. |
| 635 | This bug caused wrong assumption that devicestate didn't exist, |
| 636 | since it was not in cache, so deletion didn't returned error. |
| 637 | |
| 638 | Fixes: #1327 |
| 639 | |
| 640 | #### app_chanspy: Add option to not automatically answer channel. |
| 641 | Author: Naveen Albert |
| 642 | Date: 2025-08-13 |
| 643 | |
| 644 | Add an option for ChanSpy and ExtenSpy to not answer the channel |
| 645 | automatically. Most applications that auto-answer by default |
| 646 | already have an option to disable this behavior if unwanted. |
| 647 | |
| 648 | Resolves: #1358 |
| 649 | |
| 650 | UserNote: ChanSpy and ExtenSpy can now be configured to not |
| 651 | automatically answer the channel by using the 'N' option. |
| 652 | |
| 653 | |
| 654 | #### xmldoc.c: Fix rendering of CLI output. |
| 655 | Author: George Joseph |
| 656 | Date: 2025-08-14 |
| 657 | |
| 658 | If you do a `core show application Dial`, you'll see it's kind of a mess. |
| 659 | Indents are wrong is some places, examples are printed in black which makes |
| 660 | them invisible on most terminals, and the lack of line breaks in some cases |
| 661 | makes it hard to follow. |
| 662 | |
| 663 | * Fixed the rendering of examples so they are indented properly and changed |
| 664 | the color so they can be seen. |
| 665 | * There is now a line break before each option. |
| 666 | * Options are now printed on their own line with all option content indented |
| 667 | below them. |
| 668 | |
| 669 | Example from Dial before fixes: |
| 670 | ``` |
| 671 | Example: Dial 555-1212 on first available channel in group 1, searching |
| 672 | from highest to lowest |
| 673 | |
| 674 | Example: Ringing FXS channel 4 with ring cadence 2 |
| 675 | |
| 676 | Example: Dial 555-1212 on channel 3 and require answer confirmation |
| 677 | |
| 678 | ... |
| 679 | |
| 680 | O([mode]): |
| 681 | mode - With <mode> either not specified or set to '1', the originator |
| 682 | hanging up will cause the phone to ring back immediately. |
| 683 | - With <mode> set to '2', when the operator flashes the trunk, it will ring |
| 684 | their phone back. |
| 685 | Enables *operator services* mode. This option only works when bridging a DAHDI |
| 686 | channel to another DAHDI channel only. If specified on non-DAHDI interfaces, it |
| 687 | will be ignored. When the destination answers (presumably an operator services |
| 688 | station), the originator no longer has control of their line. They may hang up, |
| 689 | but the switch will not release their line until the destination party (the |
| 690 | operator) hangs up. |
| 691 | |
| 692 | p: This option enables screening mode. This is basically Privacy mode |
| 693 | without memory. |
| 694 | ``` |
| 695 | |
| 696 | After: |
| 697 | ``` |
| 698 | Example: Dial 555-1212 on first available channel in group 1, searching |
| 699 | from highest to lowest |
| 700 | |
| 701 | same => n,Dial(DAHDI/g1/5551212) |
| 702 | |
| 703 | Example: Ringing FXS channel 4 with ring cadence 2 |
| 704 | |
| 705 | same => n,Dial(DAHDI/4r2) |
| 706 | |
| 707 | Example: Dial 555-1212 on channel 3 and require answer confirmation |
| 708 | |
| 709 | same => n,Dial(DAHDI/3c/5551212) |
| 710 | |
| 711 | ... |
| 712 | |
| 713 | O([mode]): |
| 714 | mode - With <mode> either not specified or set to '1', the originator |
| 715 | hanging up will cause the phone to ring back immediately. |
| 716 | With <mode> set to '2', when the operator flashes the trunk, it will |
| 717 | ring their phone back. |
| 718 | Enables *operator services* mode. This option only works when bridging |
| 719 | a DAHDI channel to another DAHDI channel only. If specified on |
| 720 | non-DAHDI interfaces, it will be ignored. When the destination answers |
| 721 | (presumably an operator services station), the originator no longer has |
| 722 | control of their line. They may hang up, but the switch will not |
| 723 | release their line until the destination party (the operator) hangs up. |
| 724 | |
| 725 | p: |
| 726 | This option enables screening mode. This is basically Privacy mode |
| 727 | without memory. |
| 728 | ``` |
| 729 | |
| 730 | There are still things we can do to make this more readable but this is a |
| 731 | start. |
| 732 | |
| 733 | |
| 734 | #### func_frame_drop: Add debug messages for dropped frames. |
| 735 | Author: Naveen Albert |
| 736 | Date: 2025-08-14 |
| 737 | |
| 738 | Add debug messages in scenarios where frames that are usually processed |
| 739 | are dropped or skipped. |
| 740 | |
| 741 | Resolves: #1371 |
| 742 | |
| 743 | #### test_res_prometheus: Fix compilation failure on Debian 13. |
| 744 | Author: Naveen Albert |
| 745 | Date: 2025-08-14 |
| 746 | |
| 747 | curl_easy_setopt expects long types, so be explicit. |
| 748 | |
| 749 | Resolves: #1369 |
| 750 | |
| 751 | #### func_frame_drop: Handle allocation failure properly. |
| 752 | Author: Naveen Albert |
| 753 | Date: 2025-08-14 |
| 754 | |
| 755 | Handle allocation failure and simplify the allocation using asprintf. |
| 756 | |
| 757 | Resolves: #1366 |
| 758 | |
| 759 | #### pbx_lua.c: segfault when pass null data to term_color function |
| 760 | Author: Alexey Khabulyak |
| 761 | Date: 2025-08-14 |
| 762 | |
| 763 | This can be reproduced under certain curcomstences. |
| 764 | For example: call app.playback from lua with invalid data: app.playback({}). |
| 765 | pbx_lua.c will try to get data for this playback using lua_tostring function. |
| 766 | This function returs NULL for everything but strings and numbers. |
| 767 | Then, it calls term_color with NULL data. |
| 768 | term_color function can call(if we don't use vt100 compat term) |
| 769 | ast_copy_string with NULL inbuf which cause segfault. bt example: |
| 770 | ast_copy_string (size=8192, src=0x0, dst=0x7fe44b4be8b0) |
| 771 | at /usr/src/asterisk/asterisk-20.11.0/include/asterisk/strings.h:412 |
| 772 | |
| 773 | Resolves: https://github.com/asterisk/asterisk/issues/1363 |
| 774 | |
| 775 | #### bridge.c: Obey BRIDGE_NOANSWER variable to skip answering channel. |
| 776 | Author: Naveen Albert |
| 777 | Date: 2025-08-14 |
| 778 | |
| 779 | If the BRIDGE_NOANSWER variable is set on a channel, it is not supposed |
| 780 | to answer when another channel bridges to it using Bridge(), and this is |
| 781 | checked when ast_bridge_call* is called. However, another path exists |
| 782 | (bridge_exec -> ast_bridge_add_channel) where this variable was not |
| 783 | checked and channels would be answered. We now check the variable there. |
| 784 | |
| 785 | Resolves: #401 |
| 786 | Resolves: #1364 |
| 787 | |
| 788 | #### res_rtp_asterisk: Don't send RTP before DTLS has negotiated. |
| 789 | Author: Ben Ford |
| 790 | Date: 2025-08-04 |
| 791 | |
| 792 | There was no check in __rtp_sendto that prevented Asterisk from sending |
| 793 | RTP before DTLS had finished negotiating. This patch adds logic to do |
| 794 | so. |
| 795 | |
| 796 | Fixes: #1260 |
| 797 | |
| 798 | #### app_dial.c: Moved channel lock to prevent deadlock |
| 799 | Author: Alexey Khabulyak |
| 800 | Date: 2025-08-04 |
| 801 | |
| 802 | It's reproducible with pbx_lua, not regular dialplan. |
| 803 | |
| 804 | deadlock description: |
| 805 | 1. asterisk locks a channel |
| 806 | 2. calls function onedigit_goto |
| 807 | 3. calls ast_goto_if_exists funciton |
| 808 | 4. checks ast_exists_extension -> pbx_extension_helper |
| 809 | 5. pbx_extension_helper calls pbx_find_extension |
| 810 | 6. Then asterisk starts autoservice in a new thread |
| 811 | 7. autoservice run tries to lock the channel again |
| 812 | |
| 813 | Because our channel is locked already, autoservice can't lock. |
| 814 | Autoservice can't lock -> autoservice stop is waiting forever. |
| 815 | onedigit_goto waits for autoservice stop. |
| 816 | |
| 817 | Resolves: https://github.com/asterisk/asterisk/issues/1335 |
| 818 | |
| 819 | #### res_pjsip_diversion: resolve race condition between Diversion header processin.. |
| 820 | Author: Mike Bradeen |
| 821 | Date: 2025-08-07 |
| 822 | |
| 823 | Based on the firing order of the PJSIP call-backs on a redirect, it was possible for |
| 824 | the Diversion header to not be included in the outgoing 181 response to the UAC and |
| 825 | the INVITE to the UAS. |
| 826 | |
| 827 | This change moves the Diversion header processing to an earlier PJSIP callback while also |
| 828 | preventing the corresponding update that can cause a duplicate 181 response when processing |
| 829 | the header at that time. |
| 830 | |
| 831 | Resolves: #1349 |
| 832 | |
| 833 | #### file.c: with "sounds_search_custom_dir = yes", search "custom" directory |
| 834 | Author: Allan Nathanson |
| 835 | Date: 2025-08-10 |
| 836 | |
| 837 | With `sounds_search_custom_dir = yes`, we are supposed to search for sounds |
| 838 | in the `AST_DATA_DIR/sounds/custom` directory before searching the normal |
| 839 | directories. Unfortunately, a recent change |
| 840 | (https://github.com/asterisk/asterisk/pull/1172) had a typo resulting in |
| 841 | the "custom" directory not being searched. This change restores this |
| 842 | expected behavior. |
| 843 | |
| 844 | Resolves: #1353 |
| 845 | |
| 846 | #### cel: Add STREAM_BEGIN, STREAM_END and DTMF event types. |
| 847 | Author: Sperl Viktor |
| 848 | Date: 2025-06-30 |
| 849 | |
| 850 | Fixes: #1280 |
| 851 | |
| 852 | UserNote: Enabling the tracking of the |
| 853 | STREAM_BEGIN and the STREAM_END event |
| 854 | types in cel.conf will log media files and |
| 855 | music on hold played to each channel. |
| 856 | The STREAM_BEGIN event's extra field will |
| 857 | contain a JSON with the file details (path, |
| 858 | format and language), or the class name, in |
| 859 | case of music on hold is played. The DTMF |
| 860 | event's extra field will contain a JSON with |
| 861 | the digit and the duration in milliseconds. |
| 862 | |
| 863 | |
| 864 | #### channelstorage_cpp_map_name_id.cc: Refactor iterators for thread-safety. |
| 865 | Author: George Joseph |
| 866 | Date: 2025-07-30 |
| 867 | |
| 868 | The fact that deleting an object from a map invalidates any iterator |
| 869 | that happens to currently point to that object was overlooked in the initial |
| 870 | implementation. Unfortunately, there's no way to detect that an iterator |
| 871 | has been invalidated so the result was an occasional SEGV triggered by modules |
| 872 | like app_chanspy that opens an iterator and can keep it open for a long period |
| 873 | of time. The new implementation doesn't keep the underlying C++ iterator |
| 874 | open across calls to ast_channel_iterator_next() and uses a read lock |
| 875 | on the map to ensure that, even for the few microseconds we use the |
| 876 | iterator, another thread can't delete a channel from under it. Even with |
| 877 | this change, the iterators are still WAY faster than the ao2_legacy |
| 878 | storage driver. |
| 879 | |
| 880 | Full details about the new implementation are located in the comments for |
| 881 | iterator_next() in channelstorage_cpp_map_name_id.cc. |
| 882 | |
| 883 | Resolves: #1309 |
| 884 | |
| 885 | #### res_srtp: Add menuselect options to enable AES_192, AES_256 and AES_GCM |
| 886 | Author: George Joseph |
| 887 | Date: 2025-08-05 |
| 888 | |
| 889 | UserNote: Options are now available in the menuselect "Resource Modules" |
| 890 | category that allow you to enable the AES_192, AES_256 and AES_GCM |
| 891 | cipher suites in res_srtp. Of course, libsrtp and OpenSSL must support |
| 892 | them but modern versions do. Previously, the only way to enable them was |
| 893 | to set the CFLAGS environment variable when running ./configure. |
| 894 | The default setting is to disable them preserving existing behavior. |
| 895 | |
| 896 | |
| 897 | #### cdr: add CANCEL dispostion in CDR |
| 898 | Author: zhou_jiajian |
| 899 | Date: 2025-07-24 |
| 900 | |
| 901 | In the original implementation, both CANCEL and NO ANSWER states were |
| 902 | consolidated under the NO ANSWER disposition. This patch introduces a |
| 903 | separate CANCEL disposition, with an optional configuration switch to |
| 904 | enable this new disposition. |
| 905 | |
| 906 | Resolves: #1323 |
| 907 | |
| 908 | UserNote: A new CDR option "canceldispositionenabled" has been added |
| 909 | that when set to true, the NO ANSWER disposition will be split into |
| 910 | two dispositions: CANCEL and NO ANSWER. The default value is 'no' |
| 911 | |
| 912 | |
| 913 | #### func_curl: Allow auth methods to be set. |
| 914 | Author: Naveen Albert |
| 915 | Date: 2025-08-01 |
| 916 | |
| 917 | Currently the CURL function only supports Basic Authentication, |
| 918 | the default auth method in libcurl. Add an option that also |
| 919 | allows enabling digest authentication. |
| 920 | |
| 921 | Resolves: #1332 |
| 922 | |
| 923 | UserNote: The httpauth field in CURLOPT now allows the authentication |
| 924 | methods to be set. |
| 925 | |
| 926 | |
| 927 | #### options: Change ast_options from ast_flags to ast_flags64. |
| 928 | Author: George Joseph |
| 929 | Date: 2025-07-21 |
| 930 | |
| 931 | DeveloperNote: The 32-bit ast_options has no room left to accomodate new |
| 932 | options and so has been converted to an ast_flags64 structure. All internal |
| 933 | references to ast_options have been updated to use the 64-bit flag |
| 934 | manipulation macros. External module references to the 32-bit ast_options |
| 935 | should continue to work on little-endian systems because the |
| 936 | least-significant bytes of a 64 bit integer will be in the same location as a |
| 937 | 32-bit integer. Because that's not the case on big-endian systems, we've |
| 938 | swapped the bytes in the flags manupulation macros on big-endian systems |
| 939 | so external modules should still work however you are encouraged to test. |
| 940 | |
| 941 | |
| 942 | #### res_config_odbc: Prevent Realtime fallback on record-not-found (SQL_NO_DATA) |
| 943 | Author: Alexei Gradinari |
| 944 | Date: 2025-07-15 |
| 945 | |
| 946 | This patch fixes an issue in the ODBC Realtime engine where Asterisk incorrectly |
| 947 | falls back to the next configured backend when the current one returns |
| 948 | SQL_NO_DATA (i.e., no record found). |
| 949 | This is a logical error and performance risk in multi-backend configurations. |
| 950 | |
| 951 | Solution: |
| 952 | Introduced CONFIG_RT_NOT_FOUND ((void *)-1) as a special return marker. |
| 953 | ODBC Realtime backend now return CONFIG_RT_NOT_FOUND when no data is found. |
| 954 | Core engine stops iterating on this marker, avoiding unnecessary fallback. |
| 955 | |
| 956 | Notes: |
| 957 | Other Realtime backends (PostgreSQL, LDAP, etc.) can be updated similarly. |
| 958 | This patch only covers ODBC. |
| 959 | |
| 960 | Fixes: #1305 |
| 961 | |
| 962 | #### resource_channels.c: Don't call ast_channel_get_by_name on empty optional argu.. |
| 963 | Author: Sven Kube |
| 964 | Date: 2025-07-30 |
| 965 | |
| 966 | `ast_ari_channels_create` and `ast_ari_channels_dial` called the |
| 967 | `ast_channel_get_by_name` function with optional arguments. Since |
| 968 | 8f1982c4d6, this function logs an error for empty channel names. |
| 969 | This commit adds checks for empty optional arguments that are used |
| 970 | to call `ast_channel_get_by_name` to prevent these error logs. |
| 971 | |
| 972 | |
| 973 | #### app_agent_pool: Remove documentation for removed option. |
| 974 | Author: Naveen Albert |
| 975 | Date: 2025-07-28 |
| 976 | |
| 977 | The already-deprecated "password" option for the AGENT function was |
| 978 | removed in commit d43b17a872e8227aa8a9905a21f90bd48f9d5348 for |
| 979 | Asterisk 12, but the documentation for it wasn't removed then. |
| 980 | |
| 981 | Resolves: #1321 |
| 982 | |
| 983 | #### pbx.c: When the AST_SOFTHANGUP_ASYNCGOTO flag is set, pbx_extension_helper sho.. |
| 984 | Author: Tinet-mucw |
| 985 | Date: 2025-07-22 |
| 986 | |
| 987 | Under certain circumstances the context/extens/prio are set in the ast_async_goto, for example action Redirect. |
| 988 | In the situation that action Redirect is broken by pbx_extension_helper this info is changed. |
| 989 | This will cause the current dialplan location to be executed twice. |
| 990 | In other words, the Redirect action does not take effect. |
| 991 | |
| 992 | Resolves: #1315 |
| 993 | |
| 994 | #### res_agi: Increase AGI command buffer size from 2K to 8K |
| 995 | Author: Sperl Viktor |
| 996 | Date: 2025-07-22 |
| 997 | |
| 998 | Fixes: #1317 |
| 999 | |
| 1000 | #### ast_tls_cert: Make certificate validity configurable. |
| 1001 | Author: Naveen Albert |
| 1002 | Date: 2025-07-16 |
| 1003 | |
| 1004 | Currently, the ast_tls_cert script is hardcoded to produce certificates |
| 1005 | with a validity of 365 days, which is not generally desirable for self- |
| 1006 | signed certificates. Make this parameter configurable. |
| 1007 | |
| 1008 | Resolves: #1307 |
| 1009 | |
| 1010 | #### cdr.c: Set tenantid from party_a->base instead of chan->base. |
| 1011 | Author: George Joseph |
| 1012 | Date: 2025-07-17 |
| 1013 | |
| 1014 | The CDR tenantid was being set in cdr_object_alloc from the channel->base |
| 1015 | snapshot. Since this happens at channel creation before the dialplan is even |
| 1016 | reached, calls to `CHANNEL(tenantid)=<something>` in the dialplan were being |
| 1017 | ignored. Instead we now take tenantid from party_a when |
| 1018 | cdr_object_create_public_records() is called which is after the call has |
| 1019 | ended and all channel snapshots rebuilt. This is exactly how accountcode |
| 1020 | and amaflags, which can also be set in tha dialplpan, are handled. |
| 1021 | |
| 1022 | Resolves: #1259 |
| 1023 | |
| 1024 | #### app_mixmonitor: Update the documentation concerning the "D" option. |
| 1025 | Author: George Joseph |
| 1026 | Date: 2025-07-16 |
| 1027 | |
| 1028 | When using the "D" option to output interleaved audio, the file extension |
| 1029 | must be ".raw". That info wasn't being properly rendered in the markdown |
| 1030 | and HTML on the documentation site. The XML was updated to move the |
| 1031 | note in the option section to a warning in the description. |
| 1032 | |
| 1033 | Resolves: #1269 |
| 1034 | |
| 1035 | #### sig_analog: Properly handle STP, ST2P, and ST3P for fgccamamf. |
| 1036 | Author: Naveen Albert |
| 1037 | Date: 2025-07-14 |
| 1038 | |
| 1039 | Previously, we were only using # (ST) as a terminator, and not handling |
| 1040 | A (STP), B (ST2P), or C (ST3P), which erroneously led to it being |
| 1041 | treated as part of the dialed number. Parse any of these as the start |
| 1042 | digit. |
| 1043 | |
| 1044 | Resolves: #1301 |
| 1045 | |
| 1046 | #### chan_websocket: Reset frame_queue_length to 0 after FLUSH_MEDIA |
| 1047 | Author: kodokaii |
| 1048 | Date: 2025-07-03 |
| 1049 | |
| 1050 | In the WebSocket channel driver, the FLUSH_MEDIA command clears all frames from |
| 1051 | the queue but does not reset the frame_queue_length counter. |
| 1052 | |
| 1053 | As a result, the driver incorrectly thinks the queue is full after flushing, |
| 1054 | which prevents new multimedia frames from being sent, especially after multiple |
| 1055 | flush commands. |
| 1056 | |
| 1057 | This fix sets frame_queue_length to 0 after flushing, ensuring the queue state |
| 1058 | is consistent with its actual content. |
| 1059 | |
| 1060 | Fixes: #1304 |
| 1061 | |
| 1062 | #### chan_pjsip.c: Change SSRC after media source change |
| 1063 | Author: Martin Tomec |
| 1064 | Date: 2025-06-25 |
| 1065 | |
| 1066 | When the RTP media source changes, such as after a blind transfer, the new source introduces a discontinuous timestamp. According to RFC 3550, Section 5.1, an RTP stream's timestamp for a given SSRC must increment monotonically and linearly. |
| 1067 | To comply with the standard and avoid a large timestamp jump on the existing SSRC, a new SSRC is generated for the new media stream. |
| 1068 | This change resolves known interoperability issues with certain SBCs (like Sonus/Ribbon) that stop forwarding media when they detect such a timestamp violation. This code uses the existing implementation from chan_sip. |
| 1069 | |
| 1070 | Resolves: #927 |
| 1071 | |
| 1072 | #### Media over Websocket Channel Driver |
| 1073 | Author: George Joseph |
| 1074 | Date: 2025-04-28 |
| 1075 | |
| 1076 | * Created chan_websocket which can exchange media over both inbound and |
| 1077 | outbound websockets which the driver will frame and time. |
| 1078 | See http://s.asterisk.net/mow for more information. |
| 1079 | |
| 1080 | * res_http_websocket: Made defines for max message size public and converted |
| 1081 | a few nuisance verbose messages to debugs. |
| 1082 | |
| 1083 | * main/channel.c: Changed an obsolete nuisance error to a debug. |
| 1084 | |
| 1085 | * ARI channels: Updated externalMedia to include chan_websocket as a supported |
| 1086 | transport. |
| 1087 | |
| 1088 | UserNote: A new channel driver "chan_websocket" is now available. It can |
| 1089 | exchange media over both inbound and outbound websockets and will both frame |
| 1090 | and re-time the media it receives. |
| 1091 | See http://s.asterisk.net/mow for more information. |
| 1092 | |
| 1093 | UserNote: The ARI channels/externalMedia API now includes support for the |
| 1094 | WebSocket transport provided by chan_websocket. |
| 1095 | |
| 1096 | |
| 1097 | #### bundled_pjproject: Avoid deadlock between transport and transaction |
| 1098 | Author: Stanislav Abramenkov |
| 1099 | Date: 2025-07-01 |
| 1100 | |
| 1101 | Backport patch from upstream |
| 1102 | * Avoid deadlock between transport and transaction |
| 1103 | https://github.com/pjsip/pjproject/commit/edde06f261ac |
| 1104 | |
| 1105 | Issue described in |
| 1106 | https://github.com/pjsip/pjproject/issues/4442 |
| 1107 | |
| 1108 | |
| 1109 | #### utils.h: Add rounding to float conversion to int. |
| 1110 | Author: mkmer |
| 1111 | Date: 2025-03-23 |
| 1112 | |
| 1113 | Quote from an audio engineer NR9V: |
| 1114 | There is a minor issue of a small amount of crossover distortion though as a result of `ast_slinear_saturated_multiply_float()` not rounding the float. This could result in some quiet but potentially audible distortion artifacts in lower volume parts of the signal. If you have for example a sign wave function with a max amplitude of just a few samples, all samples between -1 and 1 will be truncated to zero, resulting in the waveform no longer being a sine wave and in harmonic distortion. |
| 1115 | |
| 1116 | Resolves: #1176 |
| 1117 | |
| 1118 | #### pbx.c: when set flag AST_SOFTHANGUP_ASYNCGOTO, ast_explicit_goto should return.. |
| 1119 | Author: Tinet-mucw |
| 1120 | Date: 2025-06-18 |
| 1121 | |
| 1122 | Under certain circumstances the context/extens/prio are set in the ast_async_goto, for example action Redirect. |
| 1123 | In the situation that action Redirect is broken by GotoIf this info is changed. |
| 1124 | that will causes confusion in dialplan execution. |
| 1125 | |
| 1126 | Resolves: #1273 |
| 1127 | |
| 1128 | #### res_musiconhold.c: Ensure we're always locked around music state access. |
| 1129 | Author: Sean Bright |
| 1130 | Date: 2025-04-08 |
| 1131 | |
| 1132 | |
| 1133 | #### res_musiconhold.c: Annotate when the channel is locked. |
| 1134 | Author: Sean Bright |
| 1135 | Date: 2025-04-08 |
| 1136 | |
| 1137 | |
| 1138 | #### res_musiconhold: Appropriately lock channel during start. |
| 1139 | Author: Jaco Kroon |
| 1140 | Date: 2024-12-19 |
| 1141 | |
| 1142 | This relates to #829 |
| 1143 | |
| 1144 | This doesn't sully solve the Ops issue, but it solves the specific crash |
| 1145 | there. Further PRs to follow. |
| 1146 | |
| 1147 | In the specific crash the generator was still under construction when |
| 1148 | moh was being stopped, which then proceeded to close the stream whilst |
| 1149 | it was still in use. |
| 1150 | |
| 1151 | Signed-off-by: Jaco Kroon <[email protected]> |
| 1152 |