Debian Codegraph @

ChangeLogs/ChangeLog-22.5.0.md

raw symbols SCIP
1
2 ## Change Log for Release asterisk-22.5.0
3
4 ### Links:
5
6 - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.5.0.html)
7 - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.4.1...22.5.0)
8 - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.5.0.tar.gz)
9 - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk)
10
11 ### Summary:
12
13 - Commits: 29
14 - Commit Authors: 14
15 - Issues Resolved: 19
16 - Security Advisories Resolved: 1
17 - [GHSA-c7p6-7mvq-8jq2](https://github.com/asterisk/asterisk/security/advisories/GHSA-c7p6-7mvq-8jq2): cli_permissions.conf: deny option does not work for disallowing shell commands
18
19 ### User Notes:
20
21 - #### res_stir_shaken.so: Handle X5U certificate chains.
22 The STIR/SHAKEN verification process will now load a full
23 certificate chain retrieved via the X5U URL instead of loading only
24 the end user cert.
25
26 - #### res_stir_shaken: Add "ignore_sip_date_header" config option.
27 A new STIR/SHAKEN verification option "ignore_sip_date_header" has
28 been added that when set to true, will cause the verification process to
29 not consider a missing or invalid SIP "Date" header to be a failure. This
30 will make the IAT the sole "truth" for Date in the verification process.
31 The option can be set in the "verification" and "profile" sections of
32 stir_shaken.conf.
33 Also fixed a bug in the port match logic.
34 Resolves: #1251
35 Resolves: #1271
36
37 - #### app_record: Add RECORDING_INFO function.
38 The RECORDING_INFO function can now be used
39 to retrieve the duration of a recording.
40
41 - #### app_queue: queue rules – Add support for QUEUE_RAISE_PENALTY=rN to raise penal..
42 This change introduces QUEUE_RAISE_PENALTY=rN, allowing selective penalty raises
43 only for members whose current penalty is within the [min_penalty, max_penalty] range.
44 Members with lower or higher penalties are unaffected.
45 This behavior is backward-compatible with existing queue rule configurations.
46
47 - #### res_odbc: cache_size option to limit the cached connections.
48 New cache_size option for res_odbc to on a per class basis limit the
49 number of cached connections. Please reference the sample configuration
50 for details.
51
52 - #### res_odbc: cache_type option for res_odbc.
53 When using res_odbc it should be noted that back-end
54 connections to the underlying database can now be configured to re-use
55 the cached connections in a round-robin manner rather than repeatedly
56 re-using the same connection. This helps to keep connections alive, and
57 to purge dead connections from the system, thus more dynamically
58 adjusting to actual load. The downside is that one could keep too many
59 connections active for a longer time resulting in resource also begin
60 consumed on the database side.
61
62 - #### ARI Outbound Websockets
63 Asterisk can now establish websocket sessions _to_ your ARI applications
64 as well as accepting websocket sessions _from_ them.
65 Full details: http://s.asterisk.net/ari-outbound-ws
66
67 - #### res_websocket_client: Create common utilities for websocket clients.
68 A new module "res_websocket_client" and config file
69 "websocket_client.conf" have been added to support several upcoming new
70 capabilities that need common websocket client configuration.
71
72 - #### asterisk.c: Add option to restrict shell access from remote consoles.
73 A new asterisk.conf option 'disable_remote_console_shell' has
74 been added that, when set, will prevent remote consoles from executing
75 shell commands using the '!' prefix.
76 Resolves: #GHSA-c7p6-7mvq-8jq2
77
78 - #### sig_analog: Add Call Waiting Deluxe support.
79 Call Waiting Deluxe can now be enabled for FXS channels
80 by enabling its corresponding option.
81
82
83 ### Upgrade Notes:
84
85 - #### jansson: Upgrade version to jansson 2.14.1
86 jansson has been upgraded to 2.14.1. For more
87 information visit jansson Github page: https://github.com/akheron/jansson/releases/tag/v2.14.1
88 Resolves: #1178
89
90 - #### Alternate Channel Storage Backends
91 With this release, you can now select an alternate channel
92 storage backend based on C++ Maps. Using the new backend may increase
93 performance and reduce the chances of deadlocks on heavily loaded systems.
94 For more information, see http://s.asterisk.net/dc679ec3
95
96
97 ### Commit Authors:
98
99 - George Joseph: (10)
100 - Itzanh: (1)
101 - Jaco Kroon: (2)
102 - Joe Searle: (1)
103 - Michal Hajek: (1)
104 - Mike Bradeen: (2)
105 - Mkmer: (1)
106 - Nathan Monfils: (1)
107 - Naveen Albert: (3)
108 - Phoneben: (1)
109 - Sean Bright: (2)
110 - Stanislav Abramenkov: (1)
111 - Sven Kube: (2)
112 - Thomas B. Clark: (1)
113
114 ## Issue and Commit Detail:
115
116 ### Closed Issues:
117
118 - !GHSA-c7p6-7mvq-8jq2: cli_permissions.conf: deny option does not work for disallowing shell commands
119 - 271: [new-feature]: sig_analog: Add Call Waiting Deluxe support.
120 - 548: [improvement]: Get Record() audio duration/length
121 - 1088: [bug]: app_sms: Compilation failure in DEVMODE due to stringop-overflow error in GCC 15 pre-release
122 - 1141: [bug]: res_pjsip: Contact header set incorrectly for call redirect (302 Moved temp.) when external_* set
123 - 1178: [improvement]: jansson: Upgrade version to jansson 2.14.1
124 - 1230: [bug]: ast_frame_adjust_volume and ast_frame_adjust_volume_float crash on interpolated frames
125 - 1234: [bug]: Set CalllerID lost on DTMF attended transfer
126 - 1240: [bug]: WebRTC invites failing on Chrome 136
127 - 1243: [bug]: make menuconfig fails due to changes in GTK callbacks
128 - 1251: [improvement]: PJSIP shouldn't require SIP Date header to process full shaken passport which includes iat
129 - 1254: [bug]: ActiveChannels not reported when using AMI command PJSIPShowEndpoint
130 - 1271: [bug]: STIR/SHAKEN not accepting port 8443 in certificate URLs
131 - 1272: [improvement]: STIR/SHAKEN handle X5U certificate chains
132 - 1276: MixMonitor produces broken recordings in bridged calls with asymmetric codecs (e.g., alaw vs G.722)
133 - 1279: [bug]: regression: 20.12.0 downgrades quality of wav16 recordings
134 - 1282: [bug]: Alternate Channel Storage Backends menuselect not enabling it
135 - 1287: [bug]: channelstorage.c: Compilation failure with DEBUG_FD_LEAKS
136 - 1288: [bug]: Crash when destroying channel with C++ alternative storage backend enabled
137 - ASTERISK-30373: sig_analog: Add Call Waiting Deluxe options
138
139 ### Commits By Author:
140
141 - #### George Joseph (10):
142 - Alternate Channel Storage Backends
143 - lock.h: Add include for string.h when DEBUG_THREADS is defined.
144 - asterisk.c: Add option to restrict shell access from remote consoles.
145 - res_websocket_client: Create common utilities for websocket clients.
146 - ARI Outbound Websockets
147 - res_websocket_client: Add more info to the XML documentation.
148 - res_stir_shaken: Add "ignore_sip_date_header" config option.
149 - res_stir_shaken.so: Handle X5U certificate chains.
150 - channelstorage_cpp_map_name_id: Fix callback returning non-matching channels.
151 - channelstorage: Rename callbacks that conflict with DEBUG_FD_LEAKS.
152
153 - #### Itzanh (1):
154 - app_sms.c: Fix sending and receiving SMS messages in protocol 2
155
156 - #### Jaco Kroon (2):
157 - res_odbc: cache_type option for res_odbc.
158 - res_odbc: cache_size option to limit the cached connections.
159
160 - #### Joe Searle (1):
161 - pjproject: Increase maximum SDP formats and attribute limits
162
163 - #### Michal Hajek (1):
164 - audiohook.c: Improve frame pairing logic to avoid MixMonitor breakage with mix..
165
166 - #### Mike Bradeen (2):
167 - chan_pjsip: Serialize INVITE creation on DTMF attended transfer
168 - res_pjsip_nat.c: Do not overwrite transfer host
169
170 - #### Nathan Monfils (1):
171 - manager.c: Invalid ref-counting when purging events
172
173 - #### Naveen Albert (3):
174 - app_sms: Ignore false positive vectorization warning.
175 - sig_analog: Add Call Waiting Deluxe support.
176 - app_record: Add RECORDING_INFO function.
177
178 - #### Sean Bright (2):
179 - res_pjsip: Fix empty `ActiveChannels` property in AMI responses.
180 - channelstorage_makeopts.xml: Remove errant XML character.
181
182 - #### Stanislav Abramenkov (1):
183 - jansson: Upgrade version to jansson 2.14.1
184
185 - #### Sven Kube (2):
186 - res_audiosocket.c: Set the TCP_NODELAY socket option
187 - res_audiosocket.c: Add retry mechanism for reading data from AudioSocket
188
189 - #### Thomas B. Clark (1):
190 - menuselect: Fix GTK menu callbacks for Fedora 42 compatibility
191
192 - #### mkmer (1):
193 - frame.c: validate frame data length is less than samples when adjusting volume
194
195 - #### phoneben (1):
196 - app_queue: queue rules – Add support for QUEUE_RAISE_PENALTY=rN to raise penal..
197
198
199 ### Commit List:
200
201 - channelstorage: Rename callbacks that conflict with DEBUG_FD_LEAKS.
202 - channelstorage_cpp_map_name_id: Fix callback returning non-matching channels.
203 - channelstorage_makeopts.xml: Remove errant XML character.
204 - res_stir_shaken.so: Handle X5U certificate chains.
205 - res_stir_shaken: Add "ignore_sip_date_header" config option.
206 - app_record: Add RECORDING_INFO function.
207 - app_sms.c: Fix sending and receiving SMS messages in protocol 2
208 - res_websocket_client: Add more info to the XML documentation.
209 - res_odbc: cache_size option to limit the cached connections.
210 - res_odbc: cache_type option for res_odbc.
211 - res_pjsip: Fix empty `ActiveChannels` property in AMI responses.
212 - ARI Outbound Websockets
213 - res_websocket_client: Create common utilities for websocket clients.
214 - asterisk.c: Add option to restrict shell access from remote consoles.
215 - frame.c: validate frame data length is less than samples when adjusting volume
216 - res_audiosocket.c: Add retry mechanism for reading data from AudioSocket
217 - res_audiosocket.c: Set the TCP_NODELAY socket option
218 - menuselect: Fix GTK menu callbacks for Fedora 42 compatibility
219 - jansson: Upgrade version to jansson 2.14.1
220 - pjproject: Increase maximum SDP formats and attribute limits
221 - manager.c: Invalid ref-counting when purging events
222 - res_pjsip_nat.c: Do not overwrite transfer host
223 - chan_pjsip: Serialize INVITE creation on DTMF attended transfer
224 - sig_analog: Add Call Waiting Deluxe support.
225 - app_sms: Ignore false positive vectorization warning.
226 - lock.h: Add include for string.h when DEBUG_THREADS is defined.
227 - Alternate Channel Storage Backends
228
229 ### Commit Details:
230
231 #### channelstorage: Rename callbacks that conflict with DEBUG_FD_LEAKS.
232 Author: George Joseph
233 Date: 2025-07-08
234
235 DEBUG_FD_LEAKS replaces calls to "open" and "close" with functions that keep
236 track of file descriptors, even when those calls are actually callbacks
237 defined in structures like ast_channelstorage_instance->open and don't touch
238 file descriptors. This causes compilation failures. Those callbacks
239 have been renamed to "open_instance" and "close_instance" respectively.
240
241 Resolves: #1287
242
243 #### channelstorage_cpp_map_name_id: Fix callback returning non-matching channels.
244 Author: George Joseph
245 Date: 2025-07-09
246
247 When the callback() API was invoked but no channel passed the test, callback
248 would return the last channel tested instead of NULL. It now correctly
249 returns NULL when no channel matches.
250
251 Resolves: #1288
252
253 #### audiohook.c: Improve frame pairing logic to avoid MixMonitor breakage with mix..
254 Author: Michal Hajek
255 Date: 2025-05-21
256
257 This patch adjusts the read/write synchronization logic in audiohook_read_frame_both()
258 to better handle calls where participants use different codecs or sample sizes
259 (e.g., alaw vs G.722). The previous hard threshold of 2 * samples caused MixMonitor
260 recordings to break or stutter when frames were not aligned between both directions.
261
262 The new logic uses a more tolerant limit (1.5 * samples), which prevents audio tearing
263 without causing excessive buffer overruns. This fix specifically addresses issues
264 with MixMonitor when recording directly on a channel in a bridge using mixed codecs.
265
266 Reported-by: Michal Hajek <[email protected]>
267
268 Resolves: #1276
269 Resolves: #1279
270
271 #### channelstorage_makeopts.xml: Remove errant XML character.
272 Author: Sean Bright
273 Date: 2025-06-30
274
275 Resolves: #1282
276
277 #### res_stir_shaken.so: Handle X5U certificate chains.
278 Author: George Joseph
279 Date: 2025-06-18
280
281 The verification process will now load a full certificate chain retrieved
282 via the X5U URL instead of loading only the end user cert.
283
284 * Renamed crypto_load_cert_from_file() and crypto_load_cert_from_memory()
285 to crypto_load_cert_chain_from_file() and crypto_load_cert_chain_from_memory()
286 respectively.
287
288 * The two load functions now continue to load certs from the file or memory
289 PEMs and store them in a separate stack of untrusted certs specific to the
290 current verification context.
291
292 * crypto_is_cert_trusted() now uses the stack of untrusted certs that were
293 extracted from the PEM in addition to any untrusted certs that were passed
294 in from the configuration (and any CA certs passed in from the config of
295 course).
296
297 Resolves: #1272
298
299 UserNote: The STIR/SHAKEN verification process will now load a full
300 certificate chain retrieved via the X5U URL instead of loading only
301 the end user cert.
302
303
304 #### res_stir_shaken: Add "ignore_sip_date_header" config option.
305 Author: George Joseph
306 Date: 2025-06-15
307
308 UserNote: A new STIR/SHAKEN verification option "ignore_sip_date_header" has
309 been added that when set to true, will cause the verification process to
310 not consider a missing or invalid SIP "Date" header to be a failure. This
311 will make the IAT the sole "truth" for Date in the verification process.
312 The option can be set in the "verification" and "profile" sections of
313 stir_shaken.conf.
314
315 Also fixed a bug in the port match logic.
316
317 Resolves: #1251
318 Resolves: #1271
319
320 #### app_record: Add RECORDING_INFO function.
321 Author: Naveen Albert
322 Date: 2024-01-22
323
324 Add a function that can be used to retrieve info
325 about a previous recording, such as its duration.
326
327 This is being added as a function to avoid possibly
328 trampling on dialplan variables, and could be extended
329 to provide other information in the future.
330
331 Resolves: #548
332
333 UserNote: The RECORDING_INFO function can now be used
334 to retrieve the duration of a recording.
335
336
337 #### app_sms.c: Fix sending and receiving SMS messages in protocol 2
338 Author: Itzanh
339 Date: 2025-04-06
340
341 This fixes bugs in SMS messaging to SMS-capable analog phones that prevented app_sms.c from talking to phones using SMS protocol 2.
342
343 - Fix MORX message reception (from phone to Asterisk) in SMS protocol 2
344 - Fix MTTX message transmission (from Asterisk to phone) in SMS protocol 2
345
346 One of the bugs caused messages to have random characters and junk appended at the end up to the character limit. Another bug prevented Asterisk from sending messages from Asterisk to the phone at all. A final bug caused the transmission from Asterisk to the phone to take a long time because app_sms.c did not hang up after correctly sending the message, causing the phone to have to time out and hang up in order to complete the message transmission.
347
348 This was tested with a Linksys PAP2T and with a GrandStream HT814, sending and receiving messages with Telefónica DOMO Mensajes phones from Telefónica Spain. I had to play with both the network jitter buffer and the dB gain to get it to work. One of my phones required the gain to be set to +3dB for it to work, while another required it to be set to +6dB.
349
350 Only MORX and MTTX were tested, I did not test sending and receiving messages to a TelCo SMSC.
351
352
353 #### app_queue: queue rules – Add support for QUEUE_RAISE_PENALTY=rN to raise penal..
354 Author: phoneben
355 Date: 2025-05-26
356
357 This update adds support for a new QUEUE_RAISE_PENALTY format: rN
358
359 When QUEUE_RAISE_PENALTY is set to rN (e.g., r4), only members whose current penalty
360 is greater than or equal to the defined min_penalty and less than or equal to max_penalty
361 will have their penalty raised to N.
362
363 Members with penalties outside the min/max range remain unchanged.
364
365 Example behaviors:
366
367 QUEUE_RAISE_PENALTY=4 → Raise all members with penalty < 4 (existing behavior)
368 QUEUE_RAISE_PENALTY=r4 → Raise only members with penalty in [min_penalty, max_penalty] to 4
369
370 Implementation details:
371
372 Adds parsing logic to detect the r prefix and sets the raise_respect_min flag
373
374 Modifies the raise logic to skip members outside the defined penalty range when the flag is active
375
376 UserNote: This change introduces QUEUE_RAISE_PENALTY=rN, allowing selective penalty raises
377 only for members whose current penalty is within the [min_penalty, max_penalty] range.
378 Members with lower or higher penalties are unaffected.
379 This behavior is backward-compatible with existing queue rule configurations.
380
381
382 #### res_websocket_client: Add more info to the XML documentation.
383 Author: George Joseph
384 Date: 2025-06-05
385
386 Added "see-also" links to chan_websocket and ARI Outbound WebSocket and
387 added an example configuration for each.
388
389
390 #### res_odbc: cache_size option to limit the cached connections.
391 Author: Jaco Kroon
392 Date: 2024-12-13
393
394 Signed-off-by: Jaco Kroon <[email protected]>
395
396 UserNote: New cache_size option for res_odbc to on a per class basis limit the
397 number of cached connections. Please reference the sample configuration
398 for details.
399
400
401 #### res_odbc: cache_type option for res_odbc.
402 Author: Jaco Kroon
403 Date: 2024-12-10
404
405 This enables setting cache_type classes to a round-robin queueing system
406 rather than the historic stack mechanism.
407
408 This should result in lower risk of connection drops due to shorter idle
409 times (the first connection to go onto the stack could in theory never
410 be used again, ever, but sit there consuming resources, there could be
411 multiple of these).
412
413 And with a queue rather than a stack, dead connections are guaranteed to
414 be detected and purged eventually.
415
416 This should end up better balancing connection_cnt with actual load
417 over time, assuming the database doesn't keep connections open
418 excessively long from it's side.
419
420 Signed-off-by: Jaco Kroon <[email protected]>
421
422 UserNote: When using res_odbc it should be noted that back-end
423 connections to the underlying database can now be configured to re-use
424 the cached connections in a round-robin manner rather than repeatedly
425 re-using the same connection. This helps to keep connections alive, and
426 to purge dead connections from the system, thus more dynamically
427 adjusting to actual load. The downside is that one could keep too many
428 connections active for a longer time resulting in resource also begin
429 consumed on the database side.
430
431
432 #### res_pjsip: Fix empty `ActiveChannels` property in AMI responses.
433 Author: Sean Bright
434 Date: 2025-05-27
435
436 The logic appears to have been reversed since it was introduced in
437 05cbf8df.
438
439 Resolves: #1254
440
441 #### ARI Outbound Websockets
442 Author: George Joseph
443 Date: 2025-03-28
444
445 Asterisk can now establish websocket sessions _to_ your ARI applications
446 as well as accepting websocket sessions _from_ them.
447 Full details: http://s.asterisk.net/ari-outbound-ws
448
449 Code change summary:
450 * Added an ast_vector_string_join() function,
451 * Added ApplicationRegistered and ApplicationUnregistered ARI events.
452 * Converted res/ari/config.c to use sorcery to process ari.conf.
453 * Added the "outbound-websocket" ARI config object.
454 * Refactored res/ari/ari_websockets.c to handle outbound websockets.
455 * Refactored res/ari/cli.c for the sorcery changeover.
456 * Updated res/res_stasis.c for the sorcery changeover.
457 * Updated apps/app_stasis.c to allow initiating per-call outbound websockets.
458 * Added CLI commands to manage ARI websockets.
459 * Added the new "outbound-websocket" object to ari.conf.sample.
460 * Moved the ARI XML documentation out of res_ari.c into res/ari/ari_doc.xml
461
462 UserNote: Asterisk can now establish websocket sessions _to_ your ARI applications
463 as well as accepting websocket sessions _from_ them.
464 Full details: http://s.asterisk.net/ari-outbound-ws
465
466
467 #### res_websocket_client: Create common utilities for websocket clients.
468 Author: George Joseph
469 Date: 2025-05-02
470
471 Since multiple Asterisk capabilities now need to create websocket clients
472 it makes sense to create a common set of utilities rather than making
473 each of those capabilities implement their own.
474
475 * A new configuration file "websocket_client.conf" is used to store common
476 client parameters in named configuration sections.
477 * APIs are provided to list and retrieve ast_websocket_client objects created
478 from the named configurations.
479 * An API is provided that accepts an ast_websocket_client object, connects
480 to the remote server with retries and returns an ast_websocket object. TLS is
481 supported as is basic authentication.
482 * An observer can be registered to receive notification of loaded or reloaded
483 client objects.
484 * An API is provided to compare an existing client object to one just
485 reloaded and return the fields that were changed. The caller can then decide
486 what action to take based on which fields changed.
487
488 Also as part of thie commit, several sorcery convenience macros were created
489 to make registering common object fields easier.
490
491 UserNote: A new module "res_websocket_client" and config file
492 "websocket_client.conf" have been added to support several upcoming new
493 capabilities that need common websocket client configuration.
494
495
496 #### asterisk.c: Add option to restrict shell access from remote consoles.
497 Author: George Joseph
498 Date: 2025-05-19
499
500 UserNote: A new asterisk.conf option 'disable_remote_console_shell' has
501 been added that, when set, will prevent remote consoles from executing
502 shell commands using the '!' prefix.
503
504 Resolves: #GHSA-c7p6-7mvq-8jq2
505
506 #### frame.c: validate frame data length is less than samples when adjusting volume
507 Author: mkmer
508 Date: 2025-05-12
509
510 Resolves: #1230
511
512 #### res_audiosocket.c: Add retry mechanism for reading data from AudioSocket
513 Author: Sven Kube
514 Date: 2025-05-13
515
516 The added retry mechanism addresses an issue that arises when fragmented TCP
517 packets are received, each containing only a portion of an AudioSocket packet.
518 This situation can occur if the external service sending the AudioSocket data
519 has Nagle's algorithm enabled.
520
521
522 #### res_audiosocket.c: Set the TCP_NODELAY socket option
523 Author: Sven Kube
524 Date: 2025-05-13
525
526 Disable Nagle's algorithm by setting the TCP_NODELAY socket option.
527 This reduces latency by preventing delays caused by packet buffering.
528
529
530 #### menuselect: Fix GTK menu callbacks for Fedora 42 compatibility
531 Author: Thomas B. Clark
532 Date: 2025-05-12
533
534 This patch resolves a build failure in `menuselect_gtk.c` when running
535 `make menuconfig` on Fedora 42. The new version of GTK introduced stricter
536 type checking for callback signatures.
537
538 Changes include:
539 - Add wrapper functions to match the expected `void (*)(void)` signature.
540 - Update `menu_items` array to use these wrappers.
541
542 Fixes: #1243
543
544 #### jansson: Upgrade version to jansson 2.14.1
545 Author: Stanislav Abramenkov
546 Date: 2025-03-24
547
548 UpgradeNote: jansson has been upgraded to 2.14.1. For more
549 information visit jansson Github page: https://github.com/akheron/jansson/releases/tag/v2.14.1
550
551 Resolves: #1178
552
553 #### pjproject: Increase maximum SDP formats and attribute limits
554 Author: Joe Searle
555 Date: 2025-05-15
556
557 Since Chrome 136, using Windows, when initiating a video call the INVITE SDP exceeds the maximum number of allowed attributes, resulting in the INVITE being rejected. This increases the attribute limit and the number of formats allowed when using bundled pjproject.
558
559 Fixes: #1240
560
561 #### manager.c: Invalid ref-counting when purging events
562 Author: Nathan Monfils
563 Date: 2025-05-05
564
565 We have a use-case where we generate a *lot* of events on the AMI, and
566 then when doing `manager show eventq` we would see some events which
567 would linger for hours or days in there. Obviously something was leaking.
568 Testing allowed us to track down this logic bug in the ref-counting on
569 the event purge.
570
571 Reproducing the bug was not super trivial, we managed to do it in a
572 production-like load testing environment with multiple AMI consumers.
573
574 The race condition itself:
575
576 1. something allocates and links `session`
577 2. `purge_sessions` iterates over that `session` (takes ref)
578 3. `purge_session` correctly de-referencess that session
579 4. `purge_session` re-evaluates the while() loop, taking a reference
580 5. `purge_session` exits (`n_max > 0` is false)
581 6. whatever allocated the `session` deallocates it, but a reference is
582 now lost since we exited the `while` loop before de-referencing.
583 7. since the destructor is never called, the session->last_ev->usecount
584 is never decremented, leading to events lingering in the queue
585
586 The impact of this bug does not seem major. The events are small and do
587 not seem, from our testing, to be causing meaningful additional CPU
588 usage. Mainly we wanted to fix this issue because we are internally
589 adding prometheus metrics to the eventq and those leaked events were
590 causing the metrics to show garbage data.
591
592
593 #### res_pjsip_nat.c: Do not overwrite transfer host
594 Author: Mike Bradeen
595 Date: 2025-05-08
596
597 When a call is transfered via dialplan behind a NAT, the
598 host portion of the Contact header in the 302 will no longer
599 be over-written with the external NAT IP and will retain the
600 hostname.
601
602 Fixes: #1141
603
604 #### chan_pjsip: Serialize INVITE creation on DTMF attended transfer
605 Author: Mike Bradeen
606 Date: 2025-05-05
607
608 When a call is transfered via DTMF feature code, the Transfer Target and
609 Transferer are bridged immediately. This opens the possibilty of a race
610 condition between the creation of an INVITE and the bridge induced colp
611 update that can result in the set caller ID being over-written with the
612 transferer's default info.
613
614 Fixes: #1234
615
616 #### sig_analog: Add Call Waiting Deluxe support.
617 Author: Naveen Albert
618 Date: 2023-08-24
619
620 Adds support for Call Waiting Deluxe options to enhance
621 the current call waiting feature.
622
623 As part of this change, a mechanism is also added that
624 allows a channel driver to queue an audio file for Dial()
625 to play, which is necessary for the announcement function.
626
627 ASTERISK-30373 #close
628
629 Resolves: #271
630
631 UserNote: Call Waiting Deluxe can now be enabled for FXS channels
632 by enabling its corresponding option.
633
634
635 #### app_sms: Ignore false positive vectorization warning.
636 Author: Naveen Albert
637 Date: 2025-01-24
638
639 Ignore gcc warning about writing 32 bytes into a region of size 6,
640 since we check that we don't go out of bounds for each byte.
641 This is due to a vectorization bug in gcc 15, stemming from
642 gcc commit 68326d5d1a593dc0bf098c03aac25916168bc5a9.
643
644 Resolves: #1088
645
646 #### lock.h: Add include for string.h when DEBUG_THREADS is defined.
647 Author: George Joseph
648 Date: 2025-05-02
649
650 When DEBUG_THREADS is defined, lock.h uses strerror(), which is defined
651 in the libc string.h file, to print warning messages. If the including
652 source file doesn't include string.h then strerror() won't be found and
653 and compile errors will be thrown. Since lock.h depends on this, string.h
654 is now included from there if DEBUG_THREADS is defined. This way, including
655 source files don't have to worry about it.
656
657
658 #### Alternate Channel Storage Backends
659 Author: George Joseph
660 Date: 2024-12-31
661
662 Full details: http://s.asterisk.net/dc679ec3
663
664 The previous proof-of-concept showed that the cpp_map_name_id alternate
665 storage backed performed better than all the others so this final PR
666 adds only that option. You still need to enable it in menuselect under
667 the "Alternate Channel Storage Backends" category.
668
669 To select which one is used at runtime, set the "channel_storage_backend"
670 option in asterisk.conf to one of the values described in
671 asterisk.conf.sample. The default remains "ao2_legacy".
672
673 UpgradeNote: With this release, you can now select an alternate channel
674 storage backend based on C++ Maps. Using the new backend may increase
675 performance and reduce the chances of deadlocks on heavily loaded systems.
676 For more information, see http://s.asterisk.net/dc679ec3
677