| 1 | |
| 2 | ## Change Log for Release asterisk-22.4.0 |
| 3 | |
| 4 | ### Links: |
| 5 | |
| 6 | - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.4.0.html) |
| 7 | - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.3.0...22.4.0) |
| 8 | - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.4.0.tar.gz) |
| 9 | - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk) |
| 10 | |
| 11 | ### Summary: |
| 12 | |
| 13 | - Commits: 24 |
| 14 | - Commit Authors: 18 |
| 15 | - Issues Resolved: 12 |
| 16 | - Security Advisories Resolved: 0 |
| 17 | |
| 18 | ### User Notes: |
| 19 | |
| 20 | - #### stasis/control.c: Set Hangup Cause to No Answer on Dial timeout |
| 21 | A Dial timeout on POST /channels/{channelId}/dial will now result in a |
| 22 | CANCEL and ChannelDestroyed with cause 19 / User alerting, no answer. Previously |
| 23 | no explicit cause was set, resulting in a cause of 16 / Normal Call Clearing. |
| 24 | |
| 25 | - #### contrib: Add systemd service and timer files for malloc trim. |
| 26 | Service and timer files for systemd have been added to the |
| 27 | contrib/systemd/ directory. If you are experiencing memory issues, |
| 28 | install these files to have "malloc trim" periodically run on the |
| 29 | system. |
| 30 | |
| 31 | - #### Add log-caller-id-name option to log Caller ID Name in queue log |
| 32 | This patch adds a global configuration option, log-caller-id-name, to queues.conf |
| 33 | to control whether the Caller ID name is logged as parameter 4 when a call enters a queue. |
| 34 | When log-caller-id-name=yes, the Caller ID name is included in the queue log, |
| 35 | Any '|' characters in the caller ID name will be replaced with '_'. |
| 36 | (provided it’s allowed by the existing log_restricted_caller_id rules). |
| 37 | When log-caller-id-name=no (the default), the Caller ID name is omitted. |
| 38 | |
| 39 | - #### asterisk.c: Add "pre-init" and "pre-module" capability to cli.conf. |
| 40 | In cli.conf, you can now define startup commands that run before |
| 41 | core initialization and before module initialization. |
| 42 | |
| 43 | - #### audiosocket: added support for DTMF frames |
| 44 | The AudioSocket protocol now forwards DTMF frames with |
| 45 | payload type 0x03. The payload is a 1-byte ascii representing the DTMF |
| 46 | digit (0-9,*,#...). |
| 47 | |
| 48 | |
| 49 | ### Upgrade Notes: |
| 50 | |
| 51 | - #### ARI: REST over Websocket |
| 52 | This commit adds the ability to make ARI REST requests over the same |
| 53 | websocket used to receive events. |
| 54 | See https://docs.asterisk.org/Configuration/Interfaces/Asterisk-REST-Interface-ARI/ARI-REST-over-WebSocket/ |
| 55 | |
| 56 | |
| 57 | ### Commit Authors: |
| 58 | |
| 59 | - Albrecht Oster: (1) |
| 60 | - Alexei Gradinari: (1) |
| 61 | - Allan Nathanson: (1) |
| 62 | - Andreas Wehrmann: (1) |
| 63 | - Ben Ford: (1) |
| 64 | - Florent CHAUVEAU: (1) |
| 65 | - George Joseph: (4) |
| 66 | - Joshua C. Colp: (1) |
| 67 | - Luz Paz: (1) |
| 68 | - Mark Murawski: (1) |
| 69 | - Mike Bradeen: (1) |
| 70 | - Mkmer: (1) |
| 71 | - Naveen Albert: (3) |
| 72 | - Norm Harrison: (2) |
| 73 | - Peter Jannesen: (1) |
| 74 | - Phoneben: (1) |
| 75 | - Sean Bright: (1) |
| 76 | - Zhai Liangliang: (1) |
| 77 | |
| 78 | ## Issue and Commit Detail: |
| 79 | |
| 80 | ### Closed Issues: |
| 81 | |
| 82 | - 505: [bug]: res_pjproject: ast_sockaddr_cmp() always fails on sockaddrs created by ast_sockaddr_from_pj_sockaddr() |
| 83 | - 643: [new-feature]: pjsip show contact -- show all details same as AMI PJSIPShowContacts |
| 84 | - 963: [bug]: missing hangup cause for ARI ChannelDestroyed when Dial times out |
| 85 | - 1091: [improvement]: app queue :add to queue log callerid name |
| 86 | - 1144: [bug]: action_redirect don't remove bridge_after_goto data |
| 87 | - 1171: [improvement]: Need the capability in audiohook.c for fractional (float) type volume adjustments. |
| 88 | - 1181: [bug]: Incorrect PJSIP Endpoint Device States on Multiple Channels |
| 89 | - 1190: [bug]: Crash when starting ConfBridge recording over CLI and AMI |
| 90 | - 1197: [bug]: ChannelHangupRequest does not show cause code in all cases |
| 91 | - 1206: [improvement]: chan_iax2: Minor improvements to documentation and warning messages. |
| 92 | - 1220: [bug]: res_pjsip_caller_id: OLI is not parsed if contained in a URI parameter |
| 93 | - 1224: [improvement]: app_meetme: Removal version is incorrect |
| 94 | |
| 95 | ### Commits By Author: |
| 96 | |
| 97 | - #### Albrecht Oster (1): |
| 98 | - res_pjproject: Fix DTLS client check failing on some platforms |
| 99 | |
| 100 | - #### Alexei Gradinari (1): |
| 101 | - chan_pjsip: set correct Endpoint Device State on multiple channels |
| 102 | |
| 103 | - #### Allan Nathanson (1): |
| 104 | - file.c: missing "custom" sound files should not generate warning logs |
| 105 | |
| 106 | - #### Andreas Wehrmann (1): |
| 107 | - pbx_ael: unregister AELSub application and CLI commands on module load failure |
| 108 | |
| 109 | - #### Ben Ford (1): |
| 110 | - contrib: Add systemd service and timer files for malloc trim. |
| 111 | |
| 112 | - #### Florent CHAUVEAU (1): |
| 113 | - audiosocket: added support for DTMF frames |
| 114 | |
| 115 | - #### George Joseph (4): |
| 116 | - ARI: REST over Websocket |
| 117 | - ari_websockets: Fix frack if ARI config fails to load. |
| 118 | - asterisk.c: Add "pre-init" and "pre-module" capability to cli.conf. |
| 119 | - Prequisites for ARI Outbound Websockets |
| 120 | |
| 121 | - #### Joshua C. Colp (1): |
| 122 | - channel: Always provide cause code in ChannelHangupRequest. |
| 123 | |
| 124 | - #### Luz Paz (1): |
| 125 | - docs: Fix typos in apps/ |
| 126 | |
| 127 | - #### Mark Murawski (1): |
| 128 | - chan_pjsip: Add the same details as PJSIPShowContacts to the CLI via 'pjsip s.. |
| 129 | |
| 130 | - #### Mike Bradeen (1): |
| 131 | - stasis/control.c: Set Hangup Cause to No Answer on Dial timeout |
| 132 | |
| 133 | - #### Naveen Albert (3): |
| 134 | - chan_iax2: Minor improvements to documentation and warning messages. |
| 135 | - app_meetme: Remove inaccurate removal version from xmldocs. |
| 136 | - res_pjsip_caller_id: Also parse URI parameters for ANI2. |
| 137 | |
| 138 | - #### Norm Harrison (2): |
| 139 | - audiosocket: fix timeout, fix dialplan app exit, server address in logs |
| 140 | - asterisk/channel.h: fix documentation for 'ast_waitfor_nandfds()' |
| 141 | |
| 142 | - #### Peter Jannesen (1): |
| 143 | - action_redirect: remove after_bridge_goto_info |
| 144 | |
| 145 | - #### Sean Bright (1): |
| 146 | - app_confbridge: Prevent crash when publishing channel-less event. |
| 147 | |
| 148 | - #### Zhai Liangliang (1): |
| 149 | - Update config.guess and config.sub |
| 150 | |
| 151 | - #### mkmer (1): |
| 152 | - audiohook.c: Add ability to adjust volume with float |
| 153 | |
| 154 | - #### phoneben (1): |
| 155 | - Add log-caller-id-name option to log Caller ID Name in queue log |
| 156 | |
| 157 | |
| 158 | ### Commit List: |
| 159 | |
| 160 | - res_pjsip_caller_id: Also parse URI parameters for ANI2. |
| 161 | - app_meetme: Remove inaccurate removal version from xmldocs. |
| 162 | - docs: Fix typos in apps/ |
| 163 | - stasis/control.c: Set Hangup Cause to No Answer on Dial timeout |
| 164 | - chan_iax2: Minor improvements to documentation and warning messages. |
| 165 | - pbx_ael: unregister AELSub application and CLI commands on module load failure |
| 166 | - res_pjproject: Fix DTLS client check failing on some platforms |
| 167 | - Prequisites for ARI Outbound Websockets |
| 168 | - contrib: Add systemd service and timer files for malloc trim. |
| 169 | - action_redirect: remove after_bridge_goto_info |
| 170 | - channel: Always provide cause code in ChannelHangupRequest. |
| 171 | - Add log-caller-id-name option to log Caller ID Name in queue log |
| 172 | - asterisk.c: Add "pre-init" and "pre-module" capability to cli.conf. |
| 173 | - app_confbridge: Prevent crash when publishing channel-less event. |
| 174 | - ari_websockets: Fix frack if ARI config fails to load. |
| 175 | - ARI: REST over Websocket |
| 176 | - audiohook.c: Add ability to adjust volume with float |
| 177 | - audiosocket: added support for DTMF frames |
| 178 | - asterisk/channel.h: fix documentation for 'ast_waitfor_nandfds()' |
| 179 | - audiosocket: fix timeout, fix dialplan app exit, server address in logs |
| 180 | - Update config.guess and config.sub |
| 181 | - chan_pjsip: set correct Endpoint Device State on multiple channels |
| 182 | - file.c: missing "custom" sound files should not generate warning logs |
| 183 | |
| 184 | ### Commit Details: |
| 185 | |
| 186 | #### res_pjsip_caller_id: Also parse URI parameters for ANI2. |
| 187 | Author: Naveen Albert |
| 188 | Date: 2025-04-26 |
| 189 | |
| 190 | If the isup-oli was sent as a URI parameter, rather than a header |
| 191 | parameter, it was not being parsed. Make sure we parse both if |
| 192 | needed so the ANI2 is set regardless of which type of parameter |
| 193 | the isup-oli is sent as. |
| 194 | |
| 195 | Resolves: #1220 |
| 196 | |
| 197 | #### app_meetme: Remove inaccurate removal version from xmldocs. |
| 198 | Author: Naveen Albert |
| 199 | Date: 2025-04-26 |
| 200 | |
| 201 | app_meetme is deprecated but wasn't removed as planned in 21, |
| 202 | so remove the inaccurate removal version. |
| 203 | |
| 204 | Resolves: #1224 |
| 205 | |
| 206 | #### docs: Fix typos in apps/ |
| 207 | Author: Luz Paz |
| 208 | Date: 2025-04-09 |
| 209 | |
| 210 | Found via codespell |
| 211 | |
| 212 | |
| 213 | #### stasis/control.c: Set Hangup Cause to No Answer on Dial timeout |
| 214 | Author: Mike Bradeen |
| 215 | Date: 2025-04-17 |
| 216 | |
| 217 | Other Dial operations (dial, app_dial) use Q.850 cause 19 when a dial timeout occurs, |
| 218 | but the Dial command via ARI did not set an explicit reason. This resulted in a |
| 219 | CANCEL with Normal Call Clearing and corresponding ChannelDestroyed. |
| 220 | |
| 221 | This change sets the hangup cause to AST_CAUSE_NO_ANSWER to be consistent with the |
| 222 | other operations. |
| 223 | |
| 224 | Fixes: #963 |
| 225 | |
| 226 | UserNote: A Dial timeout on POST /channels/{channelId}/dial will now result in a |
| 227 | CANCEL and ChannelDestroyed with cause 19 / User alerting, no answer. Previously |
| 228 | no explicit cause was set, resulting in a cause of 16 / Normal Call Clearing. |
| 229 | |
| 230 | |
| 231 | #### chan_iax2: Minor improvements to documentation and warning messages. |
| 232 | Author: Naveen Albert |
| 233 | Date: 2025-04-18 |
| 234 | |
| 235 | * Update Dial() documentation for IAX2 to include syntax for RSA |
| 236 | public key names. |
| 237 | * Add additional details to a couple warnings to provide more context |
| 238 | when an undecodable frame is received. |
| 239 | |
| 240 | Resolves: #1206 |
| 241 | |
| 242 | #### pbx_ael: unregister AELSub application and CLI commands on module load failure |
| 243 | Author: Andreas Wehrmann |
| 244 | Date: 2025-04-18 |
| 245 | |
| 246 | This fixes crashes/hangs I noticed with Asterisk 20.3.0 and 20.13.0 and quickly found out, |
| 247 | that the AEL module doesn't do proper cleanup when it fails to load. |
| 248 | This happens for example when there are syntax errors and AEL fails to compile in which case pbx_load_module() |
| 249 | returns an error but load_module() doesn't then unregister CLI cmds and the application. |
| 250 | |
| 251 | |
| 252 | #### res_pjproject: Fix DTLS client check failing on some platforms |
| 253 | Author: Albrecht Oster |
| 254 | Date: 2025-04-10 |
| 255 | |
| 256 | Certain platforms (mainly BSD derivatives) have an additional length |
| 257 | field in `sockaddr_in6` and `sockaddr_in`. |
| 258 | `ast_sockaddr_from_pj_sockaddr()` does not take this field into account |
| 259 | when copying over values from the `pj_sockaddr` into the `ast_sockaddr`. |
| 260 | The resulting `ast_sockaddr` will have an uninitialized value for |
| 261 | `sin6_len`/`sin_len` while the other `ast_sockaddr` (not converted from |
| 262 | a `pj_sockaddr`) to check against in `ast_sockaddr_pj_sockaddr_cmp()` |
| 263 | has the correct length value set. |
| 264 | |
| 265 | This has the effect that `ast_sockaddr_cmp()` will always indicate |
| 266 | an address mismatch, because it does a bitwise comparison, and all DTLS |
| 267 | packets are dropped even if addresses and ports match. |
| 268 | |
| 269 | `ast_sockaddr_from_pj_sockaddr()` now checks whether the length fields |
| 270 | are available on the current platform and sets the values accordingly. |
| 271 | |
| 272 | Resolves: #505 |
| 273 | |
| 274 | #### Prequisites for ARI Outbound Websockets |
| 275 | Author: George Joseph |
| 276 | Date: 2025-04-16 |
| 277 | |
| 278 | stasis: |
| 279 | * Added stasis_app_is_registered(). |
| 280 | * Added stasis_app_control_mark_failed(). |
| 281 | * Added stasis_app_control_is_failed(). |
| 282 | * Fixed res_stasis_device_state so unsubscribe all works properly. |
| 283 | * Modified stasis_app_unregister() to unsubscribe from all event sources. |
| 284 | * Modified stasis_app_exec to return -1 if stasis_app_control_is_failed() |
| 285 | returns true. |
| 286 | |
| 287 | http: |
| 288 | * Added ast_http_create_basic_auth_header(). |
| 289 | |
| 290 | md5: |
| 291 | * Added define for MD5_DIGEST_LENGTH. |
| 292 | |
| 293 | tcptls: |
| 294 | * Added flag to ast_tcptls_session_args to suppress connection log messages |
| 295 | to give callers more control over logging. |
| 296 | |
| 297 | http_websocket: |
| 298 | * Add flag to ast_websocket_client_options to suppress connection log messages |
| 299 | to give callers more control over logging. |
| 300 | * Added username and password to ast_websocket_client_options to support |
| 301 | outbound basic authentication. |
| 302 | * Added ast_websocket_result_to_str(). |
| 303 | |
| 304 | |
| 305 | #### contrib: Add systemd service and timer files for malloc trim. |
| 306 | Author: Ben Ford |
| 307 | Date: 2025-04-16 |
| 308 | |
| 309 | Adds two files to the contrib/systemd/ directory that can be installed |
| 310 | to periodically run "malloc trim" on Asterisk. These files do nothing |
| 311 | unless they are explicitly moved to the correct location on the system. |
| 312 | Users who are experiencing Asterisk memory issues can use this service |
| 313 | to potentially help combat the problem. These files can also be |
| 314 | configured to change the start time and interval. See systemd.timer(5) |
| 315 | and systemd.time(7) for more information. |
| 316 | |
| 317 | UserNote: Service and timer files for systemd have been added to the |
| 318 | contrib/systemd/ directory. If you are experiencing memory issues, |
| 319 | install these files to have "malloc trim" periodically run on the |
| 320 | system. |
| 321 | |
| 322 | |
| 323 | #### action_redirect: remove after_bridge_goto_info |
| 324 | Author: Peter Jannesen |
| 325 | Date: 2025-03-13 |
| 326 | |
| 327 | Under certain circumstances the context/extens/prio are stored in the |
| 328 | after_bridge_goto_info. This info is used when the bridge is broken by |
| 329 | for hangup of the other party. In the situation that the bridge is |
| 330 | broken by an AMI Redirect this info is not used but also not removed. |
| 331 | With the result that when the channel is put back in a bridge and the |
| 332 | bridge is broken the execution continues at the wrong |
| 333 | context/extens/prio. |
| 334 | |
| 335 | Resolves: #1144 |
| 336 | |
| 337 | #### channel: Always provide cause code in ChannelHangupRequest. |
| 338 | Author: Joshua C. Colp |
| 339 | Date: 2025-04-16 |
| 340 | |
| 341 | When queueing a channel to be hung up a cause code can be |
| 342 | specified in one of two ways: |
| 343 | |
| 344 | 1. ast_queue_hangup_with_cause |
| 345 | This function takes in a cause code and queues it as part |
| 346 | of the hangup request, which ultimately results in it being |
| 347 | set on the channel. |
| 348 | |
| 349 | 2. ast_channel_hangupcause_set + ast_queue_hangup |
| 350 | This combination sets the hangup cause on the channel before |
| 351 | queueing the hangup instead of as part of that process. |
| 352 | |
| 353 | In the #2 case the ChannelHangupRequest event would not contain |
| 354 | the cause code. For consistency if a cause code has been set |
| 355 | on the channel it will now be added to the event. |
| 356 | |
| 357 | Resolves: #1197 |
| 358 | |
| 359 | #### Add log-caller-id-name option to log Caller ID Name in queue log |
| 360 | Author: phoneben |
| 361 | Date: 2025-02-28 |
| 362 | |
| 363 | Add log-caller-id-name option to log Caller ID Name in queue log |
| 364 | |
| 365 | This patch introduces a new global configuration option, log-caller-id-name, |
| 366 | to queues.conf to control whether the Caller ID name is logged when a call enters a queue. |
| 367 | |
| 368 | When log-caller-id-name=yes, the Caller ID name is logged |
| 369 | as parameter 4 in the queue log, provided it’s allowed by the |
| 370 | existing log_restricted_caller_id rules. If log-caller-id-name=no (the default), |
| 371 | the Caller ID name is omitted from the logs. |
| 372 | |
| 373 | Fixes: #1091 |
| 374 | |
| 375 | UserNote: This patch adds a global configuration option, log-caller-id-name, to queues.conf |
| 376 | to control whether the Caller ID name is logged as parameter 4 when a call enters a queue. |
| 377 | When log-caller-id-name=yes, the Caller ID name is included in the queue log, |
| 378 | Any '|' characters in the caller ID name will be replaced with '_'. |
| 379 | (provided it’s allowed by the existing log_restricted_caller_id rules). |
| 380 | When log-caller-id-name=no (the default), the Caller ID name is omitted. |
| 381 | |
| 382 | |
| 383 | #### asterisk.c: Add "pre-init" and "pre-module" capability to cli.conf. |
| 384 | Author: George Joseph |
| 385 | Date: 2025-04-10 |
| 386 | |
| 387 | Commands in the "[startup_commands]" section of cli.conf have historically run |
| 388 | after all core and module initialization has been completed and just before |
| 389 | "Asterisk Ready" is printed on the console. This meant that if you |
| 390 | wanted to debug initialization of a specific module, your only option |
| 391 | was to turn on debug for everything by setting "debug" in asterisk.conf. |
| 392 | |
| 393 | This commit introduces options to allow you to run CLI commands earlier in |
| 394 | the asterisk startup process. |
| 395 | |
| 396 | A command with a value of "pre-init" will run just after logger initialization |
| 397 | but before most core, and all module, initialization. |
| 398 | |
| 399 | A command with a value of "pre-module" will run just after all core |
| 400 | initialization but before all module initialization. |
| 401 | |
| 402 | A command with a value of "fully-booted" (or "yes" for backwards |
| 403 | compatibility) will run as they always have been...after all |
| 404 | initialization and just before "Asterisk Ready" is printed on the console. |
| 405 | |
| 406 | This means you could do this... |
| 407 | |
| 408 | ``` |
| 409 | [startup_commands] |
| 410 | core set debug 3 res_pjsip.so = pre-module |
| 411 | core set debug 0 res_pjsip.so = fully-booted |
| 412 | ``` |
| 413 | |
| 414 | This would turn debugging on for res_pjsip.so to catch any module |
| 415 | initialization debug messages then turn it off again after the module is |
| 416 | loaded. |
| 417 | |
| 418 | UserNote: In cli.conf, you can now define startup commands that run before |
| 419 | core initialization and before module initialization. |
| 420 | |
| 421 | |
| 422 | #### app_confbridge: Prevent crash when publishing channel-less event. |
| 423 | Author: Sean Bright |
| 424 | Date: 2025-04-07 |
| 425 | |
| 426 | Resolves: #1190 |
| 427 | |
| 428 | #### ari_websockets: Fix frack if ARI config fails to load. |
| 429 | Author: George Joseph |
| 430 | Date: 2025-04-02 |
| 431 | |
| 432 | ari_ws_session_registry_dtor() wasn't checking that the container was valid |
| 433 | before running ao2_callback on it to shutdown registered sessions. |
| 434 | |
| 435 | |
| 436 | #### ARI: REST over Websocket |
| 437 | Author: George Joseph |
| 438 | Date: 2025-03-12 |
| 439 | |
| 440 | This commit adds the ability to make ARI REST requests over the same |
| 441 | websocket used to receive events. |
| 442 | |
| 443 | For full details on how to use the new capability, visit... |
| 444 | |
| 445 | https://docs.asterisk.org/Configuration/Interfaces/Asterisk-REST-Interface-ARI/ARI-REST-over-WebSocket/ |
| 446 | |
| 447 | Changes: |
| 448 | |
| 449 | * Added utilities to http.c: |
| 450 | * ast_get_http_method_from_string(). |
| 451 | * ast_http_parse_post_form(). |
| 452 | * Added utilities to json.c: |
| 453 | * ast_json_nvp_array_to_ast_variables(). |
| 454 | * ast_variables_to_json_nvp_array(). |
| 455 | * Added definitions for new events to carry REST responses. |
| 456 | * Created res/ari/ari_websocket_requests.c to house the new request handlers. |
| 457 | * Moved non-event specific code out of res/ari/resource_events.c into |
| 458 | res/ari/ari_websockets.c |
| 459 | * Refactored res/res_ari.c to move non-http code out of ast_ari_callback() |
| 460 | (which is http specific) and into ast_ari_invoke() so it can be shared |
| 461 | between both the http and websocket transports. |
| 462 | |
| 463 | UpgradeNote: This commit adds the ability to make ARI REST requests over the same |
| 464 | websocket used to receive events. |
| 465 | See https://docs.asterisk.org/Configuration/Interfaces/Asterisk-REST-Interface-ARI/ARI-REST-over-WebSocket/ |
| 466 | |
| 467 | |
| 468 | #### audiohook.c: Add ability to adjust volume with float |
| 469 | Author: mkmer |
| 470 | Date: 2025-03-18 |
| 471 | |
| 472 | Add the capability to audiohook for float type volume adjustments. This allows for adjustments to volume smaller than 6dB. With INT adjustments, the first step is 2 which converts to ~6dB (or 1/2 volume / double volume depending on adjustment sign). 3dB is a typical adjustment level which can now be accommodated with an adjustment value of 1.41. |
| 473 | |
| 474 | This is accomplished by the following: |
| 475 | Convert internal variables to type float. |
| 476 | Always use ast_frame_adjust_volume_float() for adjustments. |
| 477 | Cast int to float in original functions ast_audiohook_volume_set(), and ast_volume_adjust(). |
| 478 | Cast float to int in ast_audiohook_volume_get() |
| 479 | Add functions ast_audiohook_volume_get_float, ast_audiohook_volume_set_float, and ast_audiohook_volume_adjust_float. |
| 480 | |
| 481 | This update maintains 100% backward compatibility. |
| 482 | |
| 483 | Resolves: #1171 |
| 484 | |
| 485 | #### audiosocket: added support for DTMF frames |
| 486 | Author: Florent CHAUVEAU |
| 487 | Date: 2025-02-28 |
| 488 | |
| 489 | Updated the AudioSocket protocol to allow sending DTMF frames. |
| 490 | AST_FRAME_DTMF frames are now forwarded to the server, in addition to |
| 491 | AST_FRAME_AUDIO frames. A new payload type AST_AUDIOSOCKET_KIND_DTMF |
| 492 | with value 0x03 was added to the protocol. The payload is a 1-byte |
| 493 | ascii representing the DTMF digit (0-9,*,#...). |
| 494 | |
| 495 | UserNote: The AudioSocket protocol now forwards DTMF frames with |
| 496 | payload type 0x03. The payload is a 1-byte ascii representing the DTMF |
| 497 | digit (0-9,*,#...). |
| 498 | |
| 499 | |
| 500 | #### asterisk/channel.h: fix documentation for 'ast_waitfor_nandfds()' |
| 501 | Author: Norm Harrison |
| 502 | Date: 2023-04-03 |
| 503 | |
| 504 | Co-authored-by: Florent CHAUVEAU <[email protected]> |
| 505 | |
| 506 | #### audiosocket: fix timeout, fix dialplan app exit, server address in logs |
| 507 | Author: Norm Harrison |
| 508 | Date: 2023-04-03 |
| 509 | |
| 510 | - Correct wait timeout logic in the dialplan application. |
| 511 | - Include server address in log messages for better traceability. |
| 512 | - Allow dialplan app to exit gracefully on hangup messages and socket closure. |
| 513 | - Optimize I/O by reducing redundant read()/write() operations. |
| 514 | |
| 515 | Co-authored-by: Florent CHAUVEAU <[email protected]> |
| 516 | |
| 517 | #### chan_pjsip: Add the same details as PJSIPShowContacts to the CLI via 'pjsip s.. |
| 518 | Author: Mark Murawski |
| 519 | Date: 2025-03-23 |
| 520 | |
| 521 | CLI 'pjsip show contact' does not show enough information. |
| 522 | One must telnet to AMI or write a script to ask Asterisk for example what the User-Agent is on a Contact |
| 523 | This feature adds the same details as PJSIPShowContacts to the CLI |
| 524 | |
| 525 | Resolves: #643 |
| 526 | |
| 527 | #### Update config.guess and config.sub |
| 528 | Author: Zhai Liangliang |
| 529 | Date: 2025-03-26 |
| 530 | |
| 531 | |
| 532 | #### chan_pjsip: set correct Endpoint Device State on multiple channels |
| 533 | Author: Alexei Gradinari |
| 534 | Date: 2025-03-25 |
| 535 | |
| 536 | 1. When one channel is placed on hold, the device state is set to ONHOLD |
| 537 | without checking other channels states. |
| 538 | In case of AST_CONTROL_HOLD set the device state as AST_DEVICE_UNKNOWN |
| 539 | to calculate aggregate device state of all active channels. |
| 540 | |
| 541 | 2. The current implementation incorrectly classifies channels in use. |
| 542 | The only channels that has the states: UP, RING and BUSY are considered as "in use". |
| 543 | A channel should be considered "in use" if its state is anything other than |
| 544 | DOWN or RESERVED. |
| 545 | |
| 546 | 3. Currently, if the number of channels "in use" is greater than device_state_busy_at, |
| 547 | the system does not set the state to BUSY. Instead, it incorrectly assigns an aggregate |
| 548 | device state. |
| 549 | The endpoint device state should be BUSY if the number of channels "in use" is greater |
| 550 | than or equal to device_state_busy_at. |
| 551 | |
| 552 | Fixes: #1181 |
| 553 | |
| 554 | #### file.c: missing "custom" sound files should not generate warning logs |
| 555 | Author: Allan Nathanson |
| 556 | Date: 2025-03-18 |
| 557 | |
| 558 | With `sounds_search_custom_dir = yes` we first look to see if a sound file |
| 559 | is present in the "custom" sound directory before looking in the standard |
| 560 | sound directories. We should not be issuing a WARNING log message if a |
| 561 | sound cannot be found in the "custom" directory. |
| 562 | |
| 563 | Resolves: https://github.com/asterisk/asterisk/issues/1170 |
| 564 |