Debian Codegraph @

ChangeLogs/ChangeLog-22.5.0.html

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