| 1 | |
| 2 | ## Change Log for Release asterisk-22.7.0 |
| 3 | |
| 4 | ### Links: |
| 5 | |
| 6 | - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.7.0.html) |
| 7 | - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.6.0...22.7.0) |
| 8 | - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.7.0.tar.gz) |
| 9 | - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk) |
| 10 | |
| 11 | ### Summary: |
| 12 | |
| 13 | - Commits: 52 |
| 14 | - Commit Authors: 16 |
| 15 | - Issues Resolved: 36 |
| 16 | - Security Advisories Resolved: 0 |
| 17 | |
| 18 | ### User Notes: |
| 19 | |
| 20 | - #### res_stir_shaken: Add STIR_SHAKEN_ATTESTATION dialplan function. |
| 21 | The STIR_SHAKEN_ATTESTATION dialplan function has been added |
| 22 | which will allow suppressing attestation on a call-by-call basis |
| 23 | regardless of the profile attached to the outgoing endpoint. |
| 24 | |
| 25 | - #### func_channel: Allow R/W of ADSI CPE capability setting. |
| 26 | CHANNEL(adsicpe) can now be read or written to change |
| 27 | the channels' ADSI CPE capability setting. |
| 28 | |
| 29 | - #### func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE() |
| 30 | Added a new option to HANGUPCAUSE to access additional |
| 31 | information about hangup reason. Reason headers from pjsip |
| 32 | could be read using 'tech_extended' cause type. |
| 33 | |
| 34 | - #### func_math: Add DIGIT_SUM function. |
| 35 | The DIGIT_SUM function can be used to return the digit sum of |
| 36 | a number. |
| 37 | |
| 38 | - #### app_sf: Add post-digit timer option to ReceiveSF. |
| 39 | The 't' option for ReceiveSF now allows for a timer since |
| 40 | the last digit received, in addition to the number-wide timeout. |
| 41 | |
| 42 | - #### app_dial: Allow fractional seconds for dial timeouts. |
| 43 | The answer and progress dial timeouts now have millisecond |
| 44 | precision, instead of having to be whole numbers. |
| 45 | |
| 46 | - #### chan_dahdi: Add DAHDI_CHANNEL function. |
| 47 | The DAHDI_CHANNEL function allows for getting/setting |
| 48 | certain properties about DAHDI channels from the dialplan. |
| 49 | |
| 50 | |
| 51 | ### Upgrade Notes: |
| 52 | |
| 53 | - #### app_queue.c: Fix error in Queue parameter documentation. |
| 54 | As part of Asterisk 21, macros were removed from Asterisk. |
| 55 | This resulted in argument order changing for the Queue dialplan |
| 56 | application since the macro argument was removed. Upgrade notice was |
| 57 | missed when this was done, so this upgrade note has been added to |
| 58 | provide a record of such and a notice to users who may have not upgraded |
| 59 | yet. |
| 60 | |
| 61 | - #### res_audiosocket: add message types for all slin sample rates |
| 62 | New audiosocket message types 0x11 - 0x18 has been added |
| 63 | for slin12, slin16, slin24, slin32, slin44, slin48, slin96, and |
| 64 | slin192 audio. External applications using audiosocket may need to be |
| 65 | updated to support these message types if the audiosocket channel is |
| 66 | created with one of these audio formats. |
| 67 | |
| 68 | - #### taskpool: Add taskpool API, switch Stasis to using it. |
| 69 | The threadpool_* options in stasis.conf have now been deprecated |
| 70 | though they continue to be read and used. They have been replaced with taskpool |
| 71 | options that give greater control over the underlying taskpool used for stasis. |
| 72 | |
| 73 | |
| 74 | ### Developer Notes: |
| 75 | |
| 76 | - #### chan_pjsip: Add technology-specific off-nominal hangup cause to events. |
| 77 | A "tech_cause" parameter has been added to the |
| 78 | ChannelHangupRequest and ChannelDestroyed ARI event messages and a "TechCause" |
| 79 | parameter has been added to the HangupRequest, SoftHangupRequest and Hangup |
| 80 | AMI event messages. For chan_pjsip, these will be set to the last SIP |
| 81 | response status code for off-nominally terminated calls. The parameter is |
| 82 | suppressed for nominal termination. |
| 83 | |
| 84 | - #### ARI: The bridges play and record APIs now handle sample rates > 8K correctly. |
| 85 | The ARI /bridges/play and /bridges/record REST APIs have new |
| 86 | parameters that allow the caller to specify the format to be used on the |
| 87 | "Announcer" and "Recorder" channels respecitvely. |
| 88 | |
| 89 | - #### taskpool: Add taskpool API, switch Stasis to using it. |
| 90 | The taskpool API has been added for common usage of a |
| 91 | pool of taskprocessors. It is suggested to use this API instead of the |
| 92 | threadpool+taskprocessor approach. |
| 93 | |
| 94 | |
| 95 | ### Commit Authors: |
| 96 | |
| 97 | - Anthony Minessale: (1) |
| 98 | - Bastian Triller: (1) |
| 99 | - Ben Ford: (2) |
| 100 | - Christoph Moench-Tegeder: (1) |
| 101 | - George Joseph: (9) |
| 102 | - Igor Goncharovsky: (1) |
| 103 | - Joshua C. Colp: (6) |
| 104 | - Max Grobecker: (1) |
| 105 | - Nathan Monfils: (1) |
| 106 | - Naveen Albert: (18) |
| 107 | - Roman Pertsev: (1) |
| 108 | - Sean Bright: (3) |
| 109 | - Sven Kube: (3) |
| 110 | - Tinet-mucw: (1) |
| 111 | - gauravs456: (1) |
| 112 | - phoneben: (2) |
| 113 | |
| 114 | ## Issue and Commit Detail: |
| 115 | |
| 116 | ### Closed Issues: |
| 117 | |
| 118 | - 781: [improvement]: Allow call by call disabling Stir/Shaken header inclusion |
| 119 | - 1340: [bug]: comfort noise packet corrupted |
| 120 | - 1419: [bug]: static code analysis issues in app_adsiprog.c |
| 121 | - 1422: [bug]: static code analysis issues in apps/app_externalivr.c |
| 122 | - 1425: [bug]: static code analysis issues in apps/app_queue.c |
| 123 | - 1434: [improvement]: pbx_variables: Create real channel for dialplan eval CLI command |
| 124 | - 1436: [improvement]: res_cliexec: Avoid unnecessary cast to char* |
| 125 | - 1455: [new-feature]: chan_dahdi: Add DAHDI_CHANNEL function |
| 126 | - 1467: [bug]: Crash in res_pjsip_refer during REFER progress teardown with PJSIP_TRANSFER_HANDLING(ari-only) |
| 127 | - 1478: [improvement]: Stasis threadpool -> taskpool |
| 128 | - 1479: [bug]: The ARI bridge play and record APIs limit audio bandwidth by forcing the slin8 format. |
| 129 | - 1483: [improvement]: sig_analog: Eliminate possible timeout for Last Number Redial |
| 130 | - 1485: [improvement]: func_scramble: Add example to XML documentation. |
| 131 | - 1487: [improvement]: app_dial: Allow partial seconds to be used for dial timeouts |
| 132 | - 1489: [improvement]: config_options.c: Improve misleading error message |
| 133 | - 1491: [bug]: Segfault: `channelstorage_cpp` fast lookup without lock (`get_by_name_exact`/`get_by_uniqueid`) leads to UAF during hangup |
| 134 | - 1493: [new-feature]: app_sf: Add post-digit timer option |
| 135 | - 1496: [improvement]: dsp.c: Minor fixes to debug log messages |
| 136 | - 1499: [new-feature]: func_math: Add function to return the digit sum |
| 137 | - 1501: [improvement]: codec_builtin: Fix some inaccurate quality weights. |
| 138 | - 1505: [improvement]: res_fax: Add XML documentation for channel variables |
| 139 | - 1507: [improvement]: res_tonedetect: Minor formatting issue in documentation |
| 140 | - 1509: [improvement]: res_fax.c — log debug error as debug, not regular log |
| 141 | - 1510: [new-feature]: sig_analog: Allow '#' to end the inter-digit timeout when dialing. |
| 142 | - 1514: [improvement]: func_channel: Allow R/W of ADSI CPE capability setting. |
| 143 | - 1517: [improvement]: core_unreal: Preserve ADSI capability when dialing Local channels |
| 144 | - 1519: [improvement]: app_dial / func_callerid: DNIS information is not propagated by Dial |
| 145 | - 1525: [bug]: chan_websocket: fix use of raw payload variable for string comparison in process_text_message |
| 146 | - 1534: [bug]: app_queue when using gosub breaks dialplan when going from 20 to 21, What's new in 21 doesn't mention it's a breaking change, |
| 147 | - 1535: [bug]: chan_pjsip changes SSRC on WebRTC channels, which is unsupported by some browsers |
| 148 | - 1536: [bug]: asterisk -rx connects to console instead of executing a command |
| 149 | - 1539: [bug]: safe_asterisk without TTY doesn't log to file |
| 150 | - 1544: [improvement]: While Receiving the MediaConnect Message Using External Media Over websocket ChannelID is Details are missing |
| 151 | - 1554: [bug]: safe_asterisk recurses into subdirectories of startup.d after f97361 |
| 152 | - 1559: [improvement]: Handle TLS handshake attacks in order to resolve the issue of exceeding the maximum number of HTTPS sessions. |
| 153 | - 1578: [bug]: Deadlock with externalMedia custom channel id and cpp map channel backend |
| 154 | |
| 155 | ### Commits By Author: |
| 156 | |
| 157 | - #### Anthony Minessale (1): |
| 158 | |
| 159 | - #### Bastian Triller (1): |
| 160 | |
| 161 | - #### Ben Ford (2): |
| 162 | |
| 163 | - #### Christoph Moench-Tegeder (1): |
| 164 | |
| 165 | - #### George Joseph (9): |
| 166 | |
| 167 | - #### Igor Goncharovsky (1): |
| 168 | |
| 169 | - #### Joshua C. Colp (6): |
| 170 | |
| 171 | - #### Max Grobecker (1): |
| 172 | |
| 173 | - #### Nathan Monfils (1): |
| 174 | |
| 175 | - #### Naveen Albert (18): |
| 176 | |
| 177 | - #### Roman Pertsev (1): |
| 178 | |
| 179 | - #### Sean Bright (3): |
| 180 | |
| 181 | - #### Sven Kube (3): |
| 182 | |
| 183 | - #### Tinet-mucw (1): |
| 184 | |
| 185 | - #### gauravs456 (1): |
| 186 | |
| 187 | - #### phoneben (2): |
| 188 | |
| 189 | ### Commit List: |
| 190 | |
| 191 | - channelstorage: Allow storage driver read locking to be skipped. |
| 192 | - res_audiosocket: fix temporarily unavailable |
| 193 | - safe_asterisk: Resolve a POSIX sh problem and restore globbing behavior. |
| 194 | - res_stir_shaken: Add STIR_SHAKEN_ATTESTATION dialplan function. |
| 195 | - iostream.c: Handle TLS handshake attacks in order to resolve the issue of exceeding the maximum number of HTTPS sessions. |
| 196 | - chan_pjsip: Disable SSRC change for WebRTC endpoints. |
| 197 | - chan_websocket: Add channel_id to MEDIA_START, DRIVER_STATUS and DTMF_END events. |
| 198 | - safe_asterisk: Fix logging and sorting issue. |
| 199 | - Fix Endianness detection in utils.h for non-Linux |
| 200 | - app_queue.c: Fix error in Queue parameter documentation. |
| 201 | - devicestate: Don't publish redundant device state messages. |
| 202 | - chan_pjsip: Add technology-specific off-nominal hangup cause to events. |
| 203 | - res_audiosocket: add message types for all slin sample rates |
| 204 | - res_fax.c: lower FAXOPT read warning to debug level |
| 205 | - endpoints: Remove need for stasis subscription. |
| 206 | - app_queue: Allow stasis message filtering to work. |
| 207 | - taskpool: Fix some references to threadpool that should be taskpool. |
| 208 | - Update contact information for anthm |
| 209 | - chan_websocket.c: Change payload references to command instead. |
| 210 | - func_callerid: Document limitation of DNID fields. |
| 211 | - func_channel: Allow R/W of ADSI CPE capability setting. |
| 212 | - core_unreal: Preserve ADSI capability when dialing Local channels. |
| 213 | - func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE() |
| 214 | - sig_analog: Allow '#' to end the inter-digit timeout when dialing. |
| 215 | - func_math: Add DIGIT_SUM function. |
| 216 | - app_sf: Add post-digit timer option to ReceiveSF. |
| 217 | - codec_builtin.c: Adjust some of the quality scores to reflect reality. |
| 218 | - res_tonedetect: Fix formatting of XML documentation. |
| 219 | - res_fax: Add XML documentation for channel variables. |
| 220 | - channelstorage_cpp_map_name_id: Add read locking around retrievals. |
| 221 | - app_dial: Allow fractional seconds for dial timeouts. |
| 222 | - dsp.c: Make minor fixes to debug log messages. |
| 223 | - config_options.c: Improve misleading warning. |
| 224 | - func_scramble: Add example to XML documentation. |
| 225 | - sig_analog: Eliminate potential timeout with Last Number Redial. |
| 226 | - ARI: The bridges play and record APIs now handle sample rates > 8K correctly. |
| 227 | - res_pjsip_geolocation: Add support for Geolocation loc-src parameter |
| 228 | - sorcery: Move from threadpool to taskpool. |
| 229 | - stasis_channels.c: Make protocol_id optional to enable blind transfer via ari |
| 230 | - Fix some doxygen, typos and whitespace |
| 231 | - stasis_channels.c: Add null check for referred_by in ast_ari_transfer_message_create |
| 232 | - app_queue: Add NULL pointer checks in app_queue |
| 233 | - app_externalivr: Prevent out-of-bounds read during argument processing. |
| 234 | - chan_dahdi: Add DAHDI_CHANNEL function. |
| 235 | - taskpool: Update versions for taskpool stasis options. |
| 236 | - taskpool: Add taskpool API, switch Stasis to using it. |
| 237 | - app_adsiprog: Fix possible NULL dereference. |
| 238 | - manager.c: Fix presencestate object leak |
| 239 | - audiohook.c: Ensure correct AO2 reference is dereffed. |
| 240 | - res_cliexec: Remove unnecessary casts to char*. |
| 241 | - rtp_engine.c: Add exception for comfort noise payload. |
| 242 | - pbx_variables.c: Create real channel for "dialplan eval function". |
| 243 | |
| 244 | ### Commit Details: |
| 245 | |
| 246 | #### channelstorage: Allow storage driver read locking to be skipped. |
| 247 | Author: George Joseph |
| 248 | Date: 2025-11-06 |
| 249 | |
| 250 | After PR #1498 added read locking to channelstorage_cpp_map_name_id, if ARI |
| 251 | channels/externalMedia was called with a custom channel id AND the |
| 252 | cpp_map_name_id channel storage backend is in use, a deadlock can occur when |
| 253 | hanging up the channel. It's actually triggered in |
| 254 | channel.c:__ast_channel_alloc_ap() when it gets a write lock on the |
| 255 | channelstorage driver then subsequently does a lookup for channel uniqueid |
| 256 | which now does a read lock. This is an invalid operation and causes the lock |
| 257 | state to get "bad". When the channels try to hang up, a write lock is |
| 258 | attempted again which hangs and causes the deadlock. |
| 259 | |
| 260 | Now instead of the cpp_map_name_id channelstorage driver "get" APIs |
| 261 | automatically performing a read lock, they take a "lock" parameter which |
| 262 | allows a caller who already has a write lock to indicate that the "get" API |
| 263 | must not attempt its own lock. This prevents the state from getting mesed up. |
| 264 | |
| 265 | The ao2_legacy driver uses the ao2 container's recursive mutex so doesn't |
| 266 | have this issue but since it also implements the common channelstorage API, |
| 267 | it needed its "get" implementations updated to take the lock parameter. They |
| 268 | just don't use it. |
| 269 | |
| 270 | Resolves: #1578 |
| 271 | |
| 272 | #### res_audiosocket: fix temporarily unavailable |
| 273 | Author: Roman Pertsev |
| 274 | Date: 2025-10-07 |
| 275 | |
| 276 | Operations on non-blocking sockets may return a resource temporarily unavailable error (EAGAIN or EWOULDBLOCK). This is not a fatal error but a normal condition indicating that the operation would block. |
| 277 | |
| 278 | This patch corrects the handling of this case. Instead of incorrectly treating it as a reason to terminate the connection, the code now waits for data to arrive on the socket. |
| 279 | |
| 280 | #### safe_asterisk: Resolve a POSIX sh problem and restore globbing behavior. |
| 281 | Author: Sean Bright |
| 282 | Date: 2025-10-22 |
| 283 | |
| 284 | * Using `==` with the POSIX sh `test` utility is UB. |
| 285 | * Switch back to using globs instead of using `$(find … | sort)`. |
| 286 | * Fix a missing redirect when checking for the OS type. |
| 287 | |
| 288 | Resolves: #1554 |
| 289 | |
| 290 | #### res_stir_shaken: Add STIR_SHAKEN_ATTESTATION dialplan function. |
| 291 | Author: George Joseph |
| 292 | Date: 2025-10-24 |
| 293 | |
| 294 | Also... |
| 295 | |
| 296 | * Refactored the verification datastore process so instead of having |
| 297 | a separate channel datastore for each verification result, there's only |
| 298 | one channel datastore with a vector of results. |
| 299 | |
| 300 | * Refactored some log messages to include channel name and removed |
| 301 | some that would be redundant if a memory allocation failed. |
| 302 | |
| 303 | Resolves: #781 |
| 304 | |
| 305 | UserNote: The STIR_SHAKEN_ATTESTATION dialplan function has been added |
| 306 | which will allow suppressing attestation on a call-by-call basis |
| 307 | regardless of the profile attached to the outgoing endpoint. |
| 308 | |
| 309 | #### iostream.c: Handle TLS handshake attacks in order to resolve the issue of exceeding the maximum number of HTTPS sessions. |
| 310 | Author: Tinet-mucw |
| 311 | Date: 2025-10-26 |
| 312 | |
| 313 | The TCP three-way handshake completes, but if the server is under a TLS handshake attack, asterisk will get stuck at SSL_do_handshake(). |
| 314 | In this case, a timeout mechanism should be set for the SSL/TLS handshake process to prevent indefinite waiting during the SSL handshake. |
| 315 | |
| 316 | Resolves: #1559 |
| 317 | |
| 318 | #### chan_pjsip: Disable SSRC change for WebRTC endpoints. |
| 319 | Author: George Joseph |
| 320 | Date: 2025-10-21 |
| 321 | |
| 322 | Commit b333ee3b introduced a fix to chan_pjsip that addressed RTP issues with |
| 323 | blind transfers and some SBCs. Unfortunately, the fix broke some WebRTC |
| 324 | clients that are sensitive to SSRC changes and non-monotonic timestamps so |
| 325 | the fix is now disabled for endpoints with the "bundle" parameter set to true. |
| 326 | |
| 327 | Resolves: #1535 |
| 328 | |
| 329 | #### chan_websocket: Add channel_id to MEDIA_START, DRIVER_STATUS and DTMF_END events. |
| 330 | Author: gauravs456 |
| 331 | Date: 2025-10-21 |
| 332 | |
| 333 | Resolves: #1544 |
| 334 | |
| 335 | #### safe_asterisk: Fix logging and sorting issue. |
| 336 | Author: George Joseph |
| 337 | Date: 2025-10-17 |
| 338 | |
| 339 | Re-enabled "TTY=9" which was erroneously disabled as part of a recent |
| 340 | security fix and removed another logging "fix" that was added. |
| 341 | |
| 342 | Also added a sort to the "find" that enumerates the scripts to be sourced so |
| 343 | they're sourced in the correct order. |
| 344 | |
| 345 | Resolves: #1539 |
| 346 | |
| 347 | #### Fix Endianness detection in utils.h for non-Linux |
| 348 | Author: Christoph Moench-Tegeder |
| 349 | Date: 2025-10-19 |
| 350 | |
| 351 | Commit 43bf8a4ded7a65203b766b91eaf8331a600e9d8d introduced endian |
| 352 | dependend byte-swapping code in include/asterisk/utils.h, where the |
| 353 | endianness was detected using the __BYTE_ORDER macro. This macro |
| 354 | lives in endian.h, which on Linux is included implicitely (by the |
| 355 | network-related headers, I think), but on FreeBSD the headers are |
| 356 | laid out differently and we do not get __BYTE_ORDER the implicit way. |
| 357 | |
| 358 | Instead, this makes the usage of endian.h explicit by including it |
| 359 | where we need it, and switches the BYTE_ORDER/*ENDIAN macros to the |
| 360 | POSIX-defined ones (see |
| 361 | https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/endian.h.html |
| 362 | for standard compliance). Additionally, this adds a compile-time check |
| 363 | for the endianness-logic: compilation will fail if neither big nor |
| 364 | little endian can be detected. |
| 365 | |
| 366 | Fixes: #1536 |
| 367 | |
| 368 | #### app_queue.c: Fix error in Queue parameter documentation. |
| 369 | Author: Ben Ford |
| 370 | Date: 2025-10-20 |
| 371 | |
| 372 | When macro was removed in Asterisk 21, the parameter documentation in |
| 373 | code was not updated to reflect the correct numerization for gosub. It |
| 374 | still stated that it was the seventh parameter, but got shifted to the |
| 375 | sixth due to the removal of macro. This has been updated to correctly |
| 376 | reflect the parameter order, and a note has been added to the XML that |
| 377 | states this was done after the initial commit. |
| 378 | |
| 379 | Fixes: #1534 |
| 380 | |
| 381 | UpgradeNote: As part of Asterisk 21, macros were removed from Asterisk. |
| 382 | This resulted in argument order changing for the Queue dialplan |
| 383 | application since the macro argument was removed. Upgrade notice was |
| 384 | missed when this was done, so this upgrade note has been added to |
| 385 | provide a record of such and a notice to users who may have not upgraded |
| 386 | yet. |
| 387 | |
| 388 | #### devicestate: Don't publish redundant device state messages. |
| 389 | Author: Joshua C. Colp |
| 390 | Date: 2025-10-17 |
| 391 | |
| 392 | When publishing device state check the local cache for the |
| 393 | existing device state. If the new device state is unchanged |
| 394 | from the prior one, don't bother publishing the update. This |
| 395 | can reduce the work done by consumers of device state, such |
| 396 | as hints and app_queue, by not publishing a message to them. |
| 397 | |
| 398 | These messages would most often occur with devices that are |
| 399 | seeing numerous simultaneous channels. The underlying device |
| 400 | state would remain as in use throughout, but an update would |
| 401 | be published as channels are created and hung up. |
| 402 | |
| 403 | #### chan_pjsip: Add technology-specific off-nominal hangup cause to events. |
| 404 | Author: George Joseph |
| 405 | Date: 2025-10-14 |
| 406 | |
| 407 | Although the ISDN/Q.850/Q.931 hangup cause code is already part of the ARI |
| 408 | and AMI hangup and channel destroyed events, it can be helpful to know what |
| 409 | the actual channel technology code was if the call was unsuccessful. |
| 410 | For PJSIP, it's the SIP response code. |
| 411 | |
| 412 | * A new "tech_hangupcause" field was added to the ast_channel structure along |
| 413 | with ast_channel_tech_hangupcause() and ast_channel_tech_hangupcause_set() |
| 414 | functions. It should only be set for off-nominal terminations. |
| 415 | |
| 416 | * chan_pjsip was modified to set the tech hangup cause in the |
| 417 | chan_pjsip_hangup() and chan_pjsip_session_end() functions. This is a bit |
| 418 | tricky because these two functions aren't always called in the same order. |
| 419 | The channel that hangs up first will get chan_pjsip_session_end() called |
| 420 | first which will trigger the core to call chan_pjsip_hangup() on itself, |
| 421 | then call chan_pjsip_hangup() on the other channel. The other channel's |
| 422 | chan_pjsip_session_end() function will get called last. Unfortunately, |
| 423 | the other channel's HangupRequest events are sent before chan_pjsip has had a |
| 424 | chance to set the tech hangupcause code so the HangupRequest events for that |
| 425 | channel won't have the cause code set. The ChannelDestroyed and Hangup |
| 426 | events however will have the code set for both channels. |
| 427 | |
| 428 | * A new "tech_cause" field was added to the ast_channel_snapshot_hangup |
| 429 | structure. This is a public structure so a bit of refactoring was needed to |
| 430 | preserve ABI compatibility. |
| 431 | |
| 432 | * The ARI ChannelHangupRequest and ChannelDestroyed events were modified to |
| 433 | include the "tech_cause" parameter in the JSON for off-nominal terminations. |
| 434 | The parameter is suppressed for nominal termination. |
| 435 | |
| 436 | * The AMI SoftHangupRequest, HangupRequest and Hangup events were modified to |
| 437 | include the "TechCause" parameter for off-nominal terminations. Like their ARI |
| 438 | counterparts, the parameter is suppressed for nominal termination. |
| 439 | |
| 440 | DeveloperNote: A "tech_cause" parameter has been added to the |
| 441 | ChannelHangupRequest and ChannelDestroyed ARI event messages and a "TechCause" |
| 442 | parameter has been added to the HangupRequest, SoftHangupRequest and Hangup |
| 443 | AMI event messages. For chan_pjsip, these will be set to the last SIP |
| 444 | response status code for off-nominally terminated calls. The parameter is |
| 445 | suppressed for nominal termination. |
| 446 | |
| 447 | #### res_audiosocket: add message types for all slin sample rates |
| 448 | Author: Sven Kube |
| 449 | Date: 2025-10-10 |
| 450 | |
| 451 | Extend audiosocket messages with types 0x11 - 0x18 to create asterisk |
| 452 | frames in slin12, slin16, slin24, slin32, slin44, slin48, slin96, and |
| 453 | slin192 format, enabling the transmission of audio at a higher sample |
| 454 | rates. For audiosocket messages sent by Asterisk, the message kind is |
| 455 | determined by the format of the originating asterisk frame. |
| 456 | |
| 457 | UpgradeNote: New audiosocket message types 0x11 - 0x18 has been added |
| 458 | for slin12, slin16, slin24, slin32, slin44, slin48, slin96, and |
| 459 | slin192 audio. External applications using audiosocket may need to be |
| 460 | updated to support these message types if the audiosocket channel is |
| 461 | created with one of these audio formats. |
| 462 | |
| 463 | #### res_fax.c: lower FAXOPT read warning to debug level |
| 464 | Author: phoneben |
| 465 | Date: 2025-10-03 |
| 466 | |
| 467 | Reading ${FAXOPT()} before a fax session is common in dialplans to check fax state. |
| 468 | Currently this logs an error even when no fax datastore exists, creating excessive noise. |
| 469 | Change these messages to ast_debug(3, …) so they appear only with debug enabled. |
| 470 | |
| 471 | Resolves: #1509 |
| 472 | |
| 473 | #### endpoints: Remove need for stasis subscription. |
| 474 | Author: Joshua C. Colp |
| 475 | Date: 2025-10-10 |
| 476 | |
| 477 | When an endpoint is created in the core of Asterisk a subscription |
| 478 | was previously created alongside it to monitor any channels being |
| 479 | destroyed that were related to it. This was done by receiving all |
| 480 | channel snapshot updates for every channel and only reacting when |
| 481 | it was indicated that the channel was dead. |
| 482 | |
| 483 | This change removes this logic and instead provides an API call |
| 484 | for directly removing a channel from an endpoint. This is called |
| 485 | when channels are destroyed. This operation is fast, so blocking |
| 486 | the calling thread for a short period of time doesn't have any |
| 487 | noticeable impact. |
| 488 | |
| 489 | #### app_queue: Allow stasis message filtering to work. |
| 490 | Author: Joshua C. Colp |
| 491 | Date: 2025-10-10 |
| 492 | |
| 493 | The app_queue module subscribes on a per-dialed agent basis to both |
| 494 | the bridge all and channel all topics to keep apprised of things going |
| 495 | on involving them. This subscription has associated state that must |
| 496 | be cleaned up when the subscription ends. This was done by setting |
| 497 | a default router callback that only had logic to handle the case |
| 498 | where the subscription ends. By using the default router callback |
| 499 | all filtering for the subscription was disabled, causing unrelated |
| 500 | messages to get published and handled by it. |
| 501 | |
| 502 | This change makes it so that an explicit route is added for the |
| 503 | message type used for the message indicating the subscription has |
| 504 | ended and removes the default router callback. This allows message |
| 505 | filtering to occur on publishing reducing the messages to app_queue |
| 506 | to only those it is interested in. |
| 507 | |
| 508 | #### taskpool: Fix some references to threadpool that should be taskpool. |
| 509 | Author: George Joseph |
| 510 | Date: 2025-10-10 |
| 511 | |
| 512 | Resolves: #1478 |
| 513 | |
| 514 | #### Update contact information for anthm |
| 515 | Author: Anthony Minessale |
| 516 | Date: 2025-10-10 |
| 517 | |
| 518 | |
| 519 | #### chan_websocket.c: Change payload references to command instead. |
| 520 | Author: George Joseph |
| 521 | Date: 2025-10-08 |
| 522 | |
| 523 | Some of the tests in process_text_message() were still comparing to the |
| 524 | websocket message payload instead of the "command" string. |
| 525 | |
| 526 | Resolves: #1525 |
| 527 | |
| 528 | #### func_callerid: Document limitation of DNID fields. |
| 529 | Author: Naveen Albert |
| 530 | Date: 2025-10-06 |
| 531 | |
| 532 | The Dial() application does not propagate DNID fields, which is counter |
| 533 | to the behavior of the other Caller ID fields. This behavior is likely |
| 534 | intentional since the use of Dial theoretically suggests a new dialed |
| 535 | number, but document this caveat to inform users of it. |
| 536 | |
| 537 | Resolves: #1519 |
| 538 | |
| 539 | #### func_channel: Allow R/W of ADSI CPE capability setting. |
| 540 | Author: Naveen Albert |
| 541 | Date: 2025-10-06 |
| 542 | |
| 543 | Allow retrieving and setting the channel's ADSI capability from the |
| 544 | dialplan. |
| 545 | |
| 546 | Resolves: #1514 |
| 547 | |
| 548 | UserNote: CHANNEL(adsicpe) can now be read or written to change |
| 549 | the channels' ADSI CPE capability setting. |
| 550 | |
| 551 | #### core_unreal: Preserve ADSI capability when dialing Local channels. |
| 552 | Author: Naveen Albert |
| 553 | Date: 2025-10-06 |
| 554 | |
| 555 | Dial() already preserves the ADSI capability by copying it to the new |
| 556 | channel, but since Local channel pairs consist of two channels, we |
| 557 | also need to copy the capability to the second channel. |
| 558 | |
| 559 | Resolves: #1517 |
| 560 | |
| 561 | #### func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE() |
| 562 | Author: Igor Goncharovsky |
| 563 | Date: 2025-09-04 |
| 564 | |
| 565 | As soon as SIP call may end with several Reason headers, we |
| 566 | want to make all of them available through the HAGUPCAUSE() function. |
| 567 | This implementation uses the same ao2 hash for cause codes storage |
| 568 | and adds a flag to make difference between last processed sip |
| 569 | message and content of reason headers. |
| 570 | |
| 571 | UserNote: Added a new option to HANGUPCAUSE to access additional |
| 572 | information about hangup reason. Reason headers from pjsip |
| 573 | could be read using 'tech_extended' cause type. |
| 574 | |
| 575 | #### sig_analog: Allow '#' to end the inter-digit timeout when dialing. |
| 576 | Author: Naveen Albert |
| 577 | Date: 2025-10-03 |
| 578 | |
| 579 | It is customary to allow # to terminate digit collection immediately |
| 580 | when there would normally be a timeout. However, currently, users are |
| 581 | forced to wait for the timeout to expire when dialing numbers that |
| 582 | are prefixes of other valid matches, and there is no way to end the |
| 583 | timeout early. Customarily, # terminates the timeout, but at the moment, |
| 584 | this is just rejected unless there happens to be a matching extension |
| 585 | ending in #. |
| 586 | |
| 587 | Allow # to terminate the timeout in cases where there is no dialplan |
| 588 | match. This ensures that the dialplan is always respected, but if a |
| 589 | valid extension has been dialed that happens to prefix other valid |
| 590 | matches, # can be used to dial it immediately. |
| 591 | |
| 592 | Resolves: #1510 |
| 593 | |
| 594 | #### func_math: Add DIGIT_SUM function. |
| 595 | Author: Naveen Albert |
| 596 | Date: 2025-10-01 |
| 597 | |
| 598 | Add a function (DIGIT_SUM) which returns the digit sum of a number. |
| 599 | |
| 600 | Resolves: #1499 |
| 601 | |
| 602 | UserNote: The DIGIT_SUM function can be used to return the digit sum of |
| 603 | a number. |
| 604 | |
| 605 | #### app_sf: Add post-digit timer option to ReceiveSF. |
| 606 | Author: Naveen Albert |
| 607 | Date: 2025-10-01 |
| 608 | |
| 609 | Add a sorely needed option to set a timeout between digits, rather than |
| 610 | for receiving the entire number. This is needed if the number of digits |
| 611 | being sent is unknown by the receiver in advance. Previously, we had |
| 612 | to wait for the entire timer to expire. |
| 613 | |
| 614 | Resolves: #1493 |
| 615 | |
| 616 | UserNote: The 't' option for ReceiveSF now allows for a timer since |
| 617 | the last digit received, in addition to the number-wide timeout. |
| 618 | |
| 619 | #### codec_builtin.c: Adjust some of the quality scores to reflect reality. |
| 620 | Author: Naveen Albert |
| 621 | Date: 2025-10-02 |
| 622 | |
| 623 | Among the lower-quality voice codecs, some of the quality scores did |
| 624 | not make sense relative to each other. |
| 625 | |
| 626 | For instance, quality-wise, G.729 > G.723 > PLC10. |
| 627 | However, current scores do not uphold these relationships. |
| 628 | |
| 629 | Tweak the scores slightly to reflect more accurate relationships. |
| 630 | |
| 631 | Resolves: #1501 |
| 632 | |
| 633 | #### res_tonedetect: Fix formatting of XML documentation. |
| 634 | Author: Naveen Albert |
| 635 | Date: 2025-10-02 |
| 636 | |
| 637 | Fix the indentation in the documentation for the variable list. |
| 638 | |
| 639 | Resolves: #1507 |
| 640 | |
| 641 | #### res_fax: Add XML documentation for channel variables. |
| 642 | Author: Naveen Albert |
| 643 | Date: 2025-10-02 |
| 644 | |
| 645 | Document the channel variables currently set by SendFAX and ReceiveFAX. |
| 646 | |
| 647 | Resolves: #1505 |
| 648 | |
| 649 | #### channelstorage_cpp_map_name_id: Add read locking around retrievals. |
| 650 | Author: George Joseph |
| 651 | Date: 2025-10-01 |
| 652 | |
| 653 | When we retrieve a channel from a C++ map, we actually get back a wrapper |
| 654 | object that points to the channel then right after we retrieve it, we bump its |
| 655 | reference count. There's a tiny chance however that between those two |
| 656 | statements a delete and/or unref might happen which would cause the wrapper |
| 657 | object or the channel itself to become invalid resulting in a SEGV. To avoid |
| 658 | this we now perform a read lock on the driver around those statements. |
| 659 | |
| 660 | Resolves: #1491 |
| 661 | |
| 662 | #### app_dial: Allow fractional seconds for dial timeouts. |
| 663 | Author: Naveen Albert |
| 664 | Date: 2025-09-30 |
| 665 | |
| 666 | Even though Dial() internally uses milliseconds for its dial timeouts, |
| 667 | this capability has been mostly obscured from users as the argument is |
| 668 | only parsed as an integer, thus forcing the use of whole seconds for |
| 669 | timeouts. |
| 670 | |
| 671 | Parse it as a decimal instead so that timeouts can now truly have |
| 672 | millisecond precision. |
| 673 | |
| 674 | Resolves: #1487 |
| 675 | |
| 676 | UserNote: The answer and progress dial timeouts now have millisecond |
| 677 | precision, instead of having to be whole numbers. |
| 678 | |
| 679 | #### dsp.c: Make minor fixes to debug log messages. |
| 680 | Author: Naveen Albert |
| 681 | Date: 2025-10-01 |
| 682 | |
| 683 | Commit dc8e3eeaaf094a3d16991289934093d5e7127680 improved the debug log |
| 684 | messages in dsp.c. This makes two minor corrections to it: |
| 685 | |
| 686 | * Properly guard an added log statement in a conditional. |
| 687 | * Don't add one to the hit count if there was no hit (however, we do |
| 688 | still want to do this for the case where this is one). |
| 689 | |
| 690 | Resolves: #1496 |
| 691 | |
| 692 | #### config_options.c: Improve misleading warning. |
| 693 | Author: Naveen Albert |
| 694 | Date: 2025-09-30 |
| 695 | |
| 696 | When running "config show help <module>", if no XML documentation exists |
| 697 | for the specified module, "Module <module> not found." is returned, |
| 698 | which is misleading if the module is loaded but simply has no XML |
| 699 | documentation for its config. Improve the message to clarify that the |
| 700 | module may simply have no config documentation. |
| 701 | |
| 702 | Resolves: #1489 |
| 703 | |
| 704 | #### func_scramble: Add example to XML documentation. |
| 705 | Author: Naveen Albert |
| 706 | Date: 2025-09-29 |
| 707 | |
| 708 | The previous lack of an example made it ambiguous if the arguments went |
| 709 | inside the function arguments or were part of the right-hand value. |
| 710 | |
| 711 | Resolves: #1485 |
| 712 | |
| 713 | #### sig_analog: Eliminate potential timeout with Last Number Redial. |
| 714 | Author: Naveen Albert |
| 715 | Date: 2025-09-29 |
| 716 | |
| 717 | If Last Number Redial is used to redial, ensure that we do not wait |
| 718 | for further digits. This was possible if the number that was last |
| 719 | dialed is a prefix of another possible dialplan match. Since all we |
| 720 | did is copy the number into the extension buffer, if other matches |
| 721 | are now possible, there would thus be a timeout before the call went |
| 722 | through. We now complete redialed calls immediaetly in all cases. |
| 723 | |
| 724 | Resolves: #1483 |
| 725 | |
| 726 | #### ARI: The bridges play and record APIs now handle sample rates > 8K correctly. |
| 727 | Author: George Joseph |
| 728 | Date: 2025-09-25 |
| 729 | |
| 730 | The bridge play and record APIs were forcing the Announcer/Recorder channel |
| 731 | to slin8 which meant that if you played or recorded audio with a sample |
| 732 | rate > 8K, it was downsampled to 8K limiting the bandwidth. |
| 733 | |
| 734 | * The /bridges/play REST APIs have a new "announcer_format" parameter that |
| 735 | allows the caller to explicitly set the format on the "Announcer" channel |
| 736 | through which the audio is played into the bridge. If not specified, the |
| 737 | default depends on how many channels are currently in the bridge. If |
| 738 | a single channel is in the bridge, then the Announcer channel's format |
| 739 | will be set to the same as that channel's. If multiple channels are in the |
| 740 | bridge, the channels will be scanned to find the one with the highest |
| 741 | sample rate and the Announcer channel's format will be set to the slin |
| 742 | format that has an equal to or greater than sample rate. |
| 743 | |
| 744 | * The /bridges/record REST API has a new "recorder_format" parameter that |
| 745 | allows the caller to explicitly set the format on the "Recorder" channel |
| 746 | from which audio is retrieved to write to the file. If not specified, |
| 747 | the Recorder channel's format will be set to the format that was requested |
| 748 | to save the audio in. |
| 749 | |
| 750 | Resolves: #1479 |
| 751 | |
| 752 | DeveloperNote: The ARI /bridges/play and /bridges/record REST APIs have new |
| 753 | parameters that allow the caller to specify the format to be used on the |
| 754 | "Announcer" and "Recorder" channels respecitvely. |
| 755 | |
| 756 | #### res_pjsip_geolocation: Add support for Geolocation loc-src parameter |
| 757 | Author: Max Grobecker |
| 758 | Date: 2025-09-21 |
| 759 | |
| 760 | This adds support for the Geolocation 'loc-src' parameter to res_pjsip_geolocation. |
| 761 | The already existing config option 'location_source` in res_geolocation is documented to add a 'loc-src' parameter containing a user-defined FQDN to the 'Geolocation:' header, |
| 762 | but that option had no effect as it was not implemented by res_pjsip_geolocation. |
| 763 | |
| 764 | If the `location_source` configuration option is not set or invalid, that parameter will not be added (this is already checked by res_geolocation). |
| 765 | |
| 766 | This commits adds already documented functionality. |
| 767 | |
| 768 | #### sorcery: Move from threadpool to taskpool. |
| 769 | Author: Joshua C. Colp |
| 770 | Date: 2025-09-23 |
| 771 | |
| 772 | This change moves observer invocation from the use of |
| 773 | a threadpool to a taskpool. The taskpool options have also |
| 774 | been adjusted to ensure that at least one taskprocessor |
| 775 | remains available at all times. |
| 776 | |
| 777 | #### stasis_channels.c: Make protocol_id optional to enable blind transfer via ari |
| 778 | Author: Sven Kube |
| 779 | Date: 2025-09-22 |
| 780 | |
| 781 | When handling SIP transfers via ARI, there is no protocol_id in case of |
| 782 | a blind transfer. |
| 783 | |
| 784 | Resolves: #1467 |
| 785 | |
| 786 | #### Fix some doxygen, typos and whitespace |
| 787 | Author: Bastian Triller |
| 788 | Date: 2025-09-21 |
| 789 | |
| 790 | |
| 791 | #### stasis_channels.c: Add null check for referred_by in ast_ari_transfer_message_create |
| 792 | Author: Sven Kube |
| 793 | Date: 2025-09-18 |
| 794 | |
| 795 | When handling SIP transfers via ARI, the `referred_by` field in |
| 796 | `transfer_ari_state` may be null, since SIP REFER requests are not |
| 797 | required to include a `Referred-By` header. Without this check, a null |
| 798 | value caused the transfer to fail and triggered a NOTIFY with a 500 |
| 799 | Internal Server Error. |
| 800 | |
| 801 | #### app_queue: Add NULL pointer checks in app_queue |
| 802 | Author: phoneben |
| 803 | Date: 2025-09-11 |
| 804 | |
| 805 | Add NULL check for word_list before calling word_in_list() |
| 806 | Add NULL checks for channel snapshots from ast_multi_channel_blob_get_channel() |
| 807 | |
| 808 | Resolves: #1425 |
| 809 | |
| 810 | #### app_externalivr: Prevent out-of-bounds read during argument processing. |
| 811 | Author: Sean Bright |
| 812 | Date: 2025-09-17 |
| 813 | |
| 814 | Resolves: #1422 |
| 815 | |
| 816 | #### chan_dahdi: Add DAHDI_CHANNEL function. |
| 817 | Author: Naveen Albert |
| 818 | Date: 2025-09-11 |
| 819 | |
| 820 | Add a dialplan function that can be used to get/set properties of |
| 821 | DAHDI channels (as opposed to Asterisk channels). This exposes |
| 822 | properties that were not previously available, allowing for certain |
| 823 | operations to now be performed in the dialplan. |
| 824 | |
| 825 | Resolves: #1455 |
| 826 | |
| 827 | UserNote: The DAHDI_CHANNEL function allows for getting/setting |
| 828 | certain properties about DAHDI channels from the dialplan. |
| 829 | |
| 830 | #### taskpool: Update versions for taskpool stasis options. |
| 831 | Author: Joshua C. Colp |
| 832 | Date: 2025-09-16 |
| 833 | |
| 834 | |
| 835 | #### taskpool: Add taskpool API, switch Stasis to using it. |
| 836 | Author: Joshua C. Colp |
| 837 | Date: 2025-08-06 |
| 838 | |
| 839 | This change introduces a new API called taskpool. This is a pool |
| 840 | of taskprocessors. It provides the following functionality: |
| 841 | |
| 842 | 1. Task pushing to a pool of taskprocessors |
| 843 | 2. Synchronous tasks |
| 844 | 3. Serializers for execution ordering of tasks |
| 845 | 4. Growing/shrinking of number of taskprocessors in pool |
| 846 | |
| 847 | This functionality already exists through the combination of |
| 848 | threadpool+taskprocessors but through investigating I determined |
| 849 | that this carries substantial overhead for short to medium duration |
| 850 | tasks. The threadpool uses a single queue of work, and for management |
| 851 | of threads it involves additional tasks. |
| 852 | |
| 853 | I wrote taskpool to eliminate the extra overhead and management |
| 854 | as much as possible. Instead of a single queue of work each |
| 855 | taskprocessor has its own queue and at push time a selector chooses |
| 856 | the taskprocessor to queue the task to. Each taskprocessor also |
| 857 | has its own thread like normal. This spreads out the tasks immediately |
| 858 | and reduces contention on shared resources. |
| 859 | |
| 860 | Using the included efficiency tests the number of tasks that can be |
| 861 | executed per second in a taskpool is 6-12 times more than an equivalent |
| 862 | threadpool+taskprocessor setup. |
| 863 | |
| 864 | Stasis has been moved over to using this new API as it is a heavy consumer |
| 865 | of threadpool+taskprocessors and produces a lot of tasks. |
| 866 | |
| 867 | UpgradeNote: The threadpool_* options in stasis.conf have now been deprecated |
| 868 | though they continue to be read and used. They have been replaced with taskpool |
| 869 | options that give greater control over the underlying taskpool used for stasis. |
| 870 | |
| 871 | DeveloperNote: The taskpool API has been added for common usage of a |
| 872 | pool of taskprocessors. It is suggested to use this API instead of the |
| 873 | threadpool+taskprocessor approach. |
| 874 | |
| 875 | #### app_adsiprog: Fix possible NULL dereference. |
| 876 | Author: Naveen Albert |
| 877 | Date: 2025-09-10 |
| 878 | |
| 879 | get_token can return NULL, but process_token uses this result without |
| 880 | checking for NULL; as elsewhere, check for a NULL result to avoid |
| 881 | possible NULL dereference. |
| 882 | |
| 883 | Resolves: #1419 |
| 884 | |
| 885 | #### manager.c: Fix presencestate object leak |
| 886 | Author: Nathan Monfils |
| 887 | Date: 2025-09-08 |
| 888 | |
| 889 | ast_presence_state allocates subtype and message. We straightforwardly |
| 890 | need to clean those up. |
| 891 | |
| 892 | #### audiohook.c: Ensure correct AO2 reference is dereffed. |
| 893 | Author: Sean Bright |
| 894 | Date: 2025-09-10 |
| 895 | |
| 896 | Part of #1440. |
| 897 | |
| 898 | #### res_cliexec: Remove unnecessary casts to char*. |
| 899 | Author: Naveen Albert |
| 900 | Date: 2025-09-09 |
| 901 | |
| 902 | Resolves: #1436 |
| 903 | |
| 904 | #### rtp_engine.c: Add exception for comfort noise payload. |
| 905 | Author: Ben Ford |
| 906 | Date: 2025-09-09 |
| 907 | |
| 908 | In a previous commit, a change was made to |
| 909 | ast_rtp_codecs_payload_code_tx_sample_rate to check for differing sample |
| 910 | rates. This ended up returning an invalid payload int for comfort noise. |
| 911 | A check has been added that returns early if the payload is in fact |
| 912 | supposed to be comfort noise. |
| 913 | |
| 914 | Fixes: #1340 |
| 915 | |
| 916 | #### pbx_variables.c: Create real channel for "dialplan eval function". |
| 917 | Author: Naveen Albert |
| 918 | Date: 2025-09-09 |
| 919 | |
| 920 | "dialplan eval function" has been using a dummy channel for function |
| 921 | evaluation, much like many of the unit tests. However, sometimes, this |
| 922 | can cause issues for functions that are not expecting dummy channels. |
| 923 | As an example, ast_channel_tech(chan) is NULL on such channels, and |
| 924 | ast_channel_tech(chan)->type consequently results in a NULL dereference. |
| 925 | Normally, functions do not worry about this since channels executing |
| 926 | dialplan aren't dummy channels. |
| 927 | |
| 928 | While some functions are better about checking for these sorts of edge |
| 929 | cases, use a real channel with a dummy technology to make this CLI |
| 930 | command inherently safe for any dialplan function that could be evaluated |
| 931 | from the CLI. |
| 932 | |
| 933 | Resolves: #1434 |
| 934 |