Debian Codegraph @

ChangeLogs/ChangeLog-22.10.0.html

raw symbols SCIP
1 <html><head><title>ChangeLog for asterisk-22.10.0</title></head><body>
2 <h2>Change Log for Release asterisk-22.10.0</h2>
3 <h3>Links:</h3>
4 <ul>
5 <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.10.0.html">Full ChangeLog</a> </li>
6 <li><a href="https://github.com/asterisk/asterisk/compare/22.9.0...22.10.0">GitHub Diff</a> </li>
7 <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.10.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: 53</li>
13 <li>Commit Authors: 24</li>
14 <li>Issues Resolved: 43</li>
15 <li>Security Advisories Resolved: 0</li>
16 </ul>
17 <h3>User Notes:</h3>
18 <ul>
19 <li>
20 <h4>res ari: Add attachable states to Channels and Bridges</h4>
21 Bridge variables now can be set and retrieved via the following paths:
22 <code>/bridges/{bridgeId}/variable</code>
23 <code>/bridges/{bridgeId}/variables</code>
24 Both Bridge and Channel variables can now be set with an optional 'report_events'
25 boolean flag that will cause those variables to be included on all events on that
26 object. The 'report_events' flag will default to False if not set to maintain
27 backwards capability.
28 To allow this, variables can now be either name value pairs (the current format):
29 <code>&lt;variable_name&gt;: '&lt;value_string&gt;'</code></li>
30 <li>
31 <p>or -
32 <code>&lt;variable_name&gt;: {value: '&lt;value_string&gt;', report_events: [true|false]}</code></p>
33 </li>
34 <li>
35 <h4>ARI: Added paths to get and set multiple channel variables.</h4>
36 <p>Added new ARI paths for getting and setting multiple channel
37 variables at a time. For GET, this takes in a single string of
38 comma-separated variable names, while POST takes in a dictionary of key
39 value pairs. The behavior is the same as passing in variables when
40 originating a channel.</p>
41 </li>
42 <li>
43 <h4>res_rtp_asterisk: Add option to control stun host resolution when TTL = 0</h4>
44 <p>A new <code>stunaddr_reresolve_ttl_0</code> parameter has been added to rtp.conf
45 that allows control over what happens when a STUN server hostname lookup
46 returns a TTL of 0. The values can be set as follows:</p>
47 </li>
48 <li>'no': This is the historical (and current default) behavior of not doing
49 any further lookups and continuing to use the last successful result until
50 Asterisk is restarted or rtp.conf is reloaded.</li>
51 <li>'yes': Use the last cached result for the current call but trigger
52 re-resolution in the background for the benefit of future calls.
53 If the result of the background lookup is a ttl &gt; 0, periodic resolution
54 will be restarted otherwise the next call will use the new cached value
55 and will trigger a background lookup again.
56 A new CLI command <code>rtp resolve stun hostname</code> has been added</li>
57 <li>
58 <h4>app_dial: Properly handle callee hangup while sending digits.</h4>
59 <p>If a called channel sends progress or wink and the caller begins
60 sending digits but the callee answers and then hangs up before digit
61 sending can finish, the call is now answered before being disconnected.
62 If the callee hangs up without answering, the call now continues in
63 the dialplan.</p>
64 </li>
65 <li>
66 <h4>Upgrade bundled pjproject to 2.17.</h4>
67 <p>Bundled pjproject has been upgraded to 2.17. For more
68 information about what is included in this release, see the
69 pjproject Github page: https://github.com/pjsip/pjproject/releases/tag/2.17</p>
70 </li>
71 <li>
72 <h4>res_pjsip: Add per-endpoint RTP port range configuration</h4>
73 <p>PJSIP endpoints now support rtp_port_start and
74 rtp_port_end options to configure a dedicated RTP port range per
75 endpoint, overriding the global rtp.conf setting.</p>
76 </li>
77 <li>
78 <h4>stasis_broadcast: Add optional ARI broadcast with first-claim-wins</h4>
79 <p>New optional modules res_stasis_broadcast.so and
80 app_stasis_broadcast.so enable broadcasting an incoming channel to multiple
81 ARI applications. The first application to successfully claim (via
82 POST /ari/events/claim) wins channel control. StasisBroadcast() dialplan
83 application initiates broadcasts. CallBroadcast and CallClaimed events notify
84 applications. When modules are not loaded, behavior is unchanged.</p>
85 </li>
86 <li>
87 <h4>chan_iax2: Add CHANNEL getter to retrieve auth method.</h4>
88 <p>CHANNEL(auth_method) can now be used to retrieve the
89 auth method negotiated for a call on IAX2 channels.</p>
90 </li>
91 <li>
92 <h4>res_pjsip_maintenance: Add PJSIP endpoint maintenance mode</h4>
93 <p>New module res_pjsip_maintenance adds runtime maintenance
94 mode for PJSIP endpoints. Use "pjsip set maintenance <on|off>
95 <endpoint|all>" to enable or disable, and "pjsip show maintenance"
96 to list affected endpoints. AMI actions PJSIPSetMaintenance and
97 PJSIPShowMaintenance provide programmatic access. No configuration
98 file changes required.</p>
99 </li>
100 </ul>
101 <h3>Upgrade Notes:</h3>
102 <ul>
103 <li>
104 <h4>jansson: Upgrade version to jansson 2.15.0</h4>
105 <p>jansson has been upgraded to 2.15.0. For more
106 information visit jansson Github page: https://github.com/akheron/jansson/releases/tag/v2.15.0</p>
107 </li>
108 <li>
109 <h4>res_pjsip: Add per-endpoint RTP port range configuration</h4>
110 <p>An alembic database migration has been added to add
111 the rtp_port_start and rtp_port_end columns to the ps_endpoints
112 table. Run "alembic upgrade head" to apply the schema change.</p>
113 </li>
114 </ul>
115 <h3>Developer Notes:</h3>
116 <ul>
117 <li>
118 <h4>res_pjsip: Add per-endpoint RTP port range configuration</h4>
119 <p>New public API: ast_rtp_instance_new_with_port_range()
120 creates an RTP instance with a per-instance port range.
121 ast_rtp_instance_get_port_start() and ast_rtp_instance_get_port_end()
122 allow RTP engines to query the override. Third-party RTP engines can
123 use these getters to support per-instance port ranges.</p>
124 </li>
125 <li>
126 <h4>stasis_broadcast: Add optional ARI broadcast with first-claim-wins</h4>
127 <p>New public APIs in stasis_app_broadcast.h:
128 stasis_app_broadcast_channel(), stasis_app_claim_channel(),
129 stasis_app_broadcast_winner(), and stasis_app_broadcast_wait(). New ARI event
130 types (CallBroadcast, CallClaimed) added to events.json. All code is isolated;
131 no existing ABI modified.</p>
132 </li>
133 <li>
134 <h4>res_pjsip_maintenance: Add PJSIP endpoint maintenance mode</h4>
135 <p>ast_sip_session_supplement gains a new optional
136 callback - int (<em>session_create)(struct ast_sip_endpoint </em>endpoint,
137 const char *destination). It is called from the global supplement
138 list (not per-session) at the start of ast_sip_session_create_outgoing()
139 via ast_sip_session_check_supplement_create(). Returning non-zero
140 blocks the outgoing session. Modules that need to gate outbound
141 SIP session creation should register a supplement with this callback
142 set rather than hooking into chan_pjsip directly.</p>
143 </li>
144 <li>
145 <h4>build: remove pjsua, pjsystest, Python bindings and asterisk_malloc_debug stubs from pjproject dev build</h4>
146 <p>The pjsua and pjsystest application binaries, the deprecated
147 Python pjsua bindings (<code>_pjsua.so</code>), and the <code>asterisk_malloc_debug.c</code> stub
148 implementations are no longer built or installed as part of the bundled
149 pjproject dev mode build. The <code>PYTHONDEV</code> (python2.7-dev) build dependency
150 is also removed. Developers who relied on the pjsua binary for Test Suite
151 SIP simulation should use SIPp instead, which is the current Asterisk Test
152 Suite standard.
153 Fixes: #1840</p>
154 </li>
155 </ul>
156 <h3>Commit Authors:</h3>
157 <ul>
158 <li>Alexander Bakker: (1)</li>
159 <li>Alexei Gradinari: (1)</li>
160 <li>Ben Ford: (1)</li>
161 <li>Bernd Kuhls: (2)</li>
162 <li>Charles Langlois: (1)</li>
163 <li>Daniel Donoghue: (2)</li>
164 <li>George Joseph: (14)</li>
165 <li>Jaco Kroon: (1)</li>
166 <li>Joshua C. Colp: (1)</li>
167 <li>Maximilian Fridrich: (1)</li>
168 <li>Mike Bradeen: (3)</li>
169 <li>Milan Kyselica: (1)</li>
170 <li>Naveen Albert: (3)</li>
171 <li>Peter Krall: (1)</li>
172 <li>Sean Bright: (4)</li>
173 <li>Sebastian Denz: (1)</li>
174 <li>Sebastian Jennen: (2)</li>
175 <li>Stanislav Abramenkov: (2)</li>
176 <li>Sven Kube: (1)</li>
177 <li>UpBeta: (1)</li>
178 <li>mattia: (1)</li>
179 <li>mikhail_grishak: (1)</li>
180 <li>phoneben: (5)</li>
181 <li>smtcbn: (2)</li>
182 </ul>
183 <h2>Issue and Commit Detail:</h2>
184 <h3>Closed Issues:</h3>
185 <ul>
186 <li>1217: [bug]: INSERT INTO cdr query prepare statement issue on cdr_adaptive_odbc to control statement preparation manually</li>
187 <li>1357: [bug]: MessageSend WARNING “not a valid SIP/SIPS URI” when using endpoint not URI</li>
188 <li>1653: [bug]: Asterisk ODBC Voicemail Crash Caused by Voicemail Re-entry Loop and Unsafe BLOB Retrieval</li>
189 <li>1736: app_queue: update_queue() may double-increment member-&gt;calls with shared_lastcall=yes (regression observed after 20.17; impacts fewestcalls routing)</li>
190 <li>1761: func_talkdetect.c: TALK_DETECT docs wording mistake</li>
191 <li>1762: [bug]: 100% CPU usage when entering BridgeWait after JITTERBUFFER(disabled)=</li>
192 <li>1807: [new-feature]: translate.c: implement different types of sample frame inputs</li>
193 <li>1812: [new-feature]: add tests/test_codec_translations.c</li>
194 <li>1818: [bug]: func_odbc: possible use-after-free crash during reload with active calls</li>
195 <li>1839: Crash in MDMF Caller ID parser due to signed char length field on DAHDI channels</li>
196 <li>1840: [bug]: Asterisk fails to compile with --enable-dev-mode=yes due to INIT_RETURN undeclared in bundled pjproject Python bindings</li>
197 <li>1855: [bug]: core reload deadlocks Asterisk (pjsip, CLI, etc.)</li>
198 <li>1858: [bug]: DNS records with a TTL of zero are permanently cached</li>
199 <li>1859: [bug]: res_pjsip_outbound_registration: No expires header set when triggered via CLI</li>
200 <li>1861: [bug]: Possible heap corruption in audiohook/translate write path during bridged media</li>
201 <li>1862: [bug]: Build fails with Building Documentation: line 210: /tmp/xmldoc.tmp.xml: Permission denied</li>
202 <li>1865: [bug]: chan_iax2: Another code path that causes crashes on negative data lengths</li>
203 <li>1867: [bug]: Massive [eventpoll] file-descriptor leak (hundreds of epoll fds) when TURN is enabled in rtp.conf</li>
204 <li>1872: [bug]: Deadlock in chan_pjsip_new when endpoint set_var invokes PJSIP_HEADER</li>
205 <li>1878: [new-feature]: chan_iax2: Allow retrieving the auth method using the CHANNEL function</li>
206 <li>1883: [bug]: fix: stdatomic.h false positive on GCC 4.8</li>
207 <li>1885: [bug]: cdrel_custom :SQLite version too old: sqlite3_prepare_v3 / SQLITE_PREPARE_PERSISTENT undeclared</li>
208 <li>1888: [improvement]: pjsip: Upgrade bundled version to pjproject 2.17</li>
209 <li>1892: [bug]: Build failure with bundled pjproject on OpenSSL 1.0.x: undefined reference to TLS_method and SSL_CTX_set_ciphersuites</li>
210 <li>1894: [bug]: Outbound ARI websockets don't always clean up completely</li>
211 <li>1896: [bug]: asterisk.c fails to compile when HAVE_LIBEDIT_IS_UNICODE isn't defined</li>
212 <li>1901: [bug]: QUEUE_RAISE_PENALTY=rN ignored when set via queue rules</li>
213 <li>1903: [bug]: g++ 16 no longer defines <strong>STDC_VERSION</strong> causing channelstorage_cpp_map_name_id.cc to fail</li>
214 <li>1907: [bug]: Deadlock between bridge and setting of RTP stats variables at hangup</li>
215 <li>1910: [improvement]: Add attachable state variables to Channels and Bridges.</li>
216 <li>1915: [bug]: app_dial: Channel not handled properly if callee disconnects while caller is sending it digits prior to answer</li>
217 <li>1921: [bug]: Memory error in crypto_get_cert_subject when using malloc_debug</li>
218 <li>1928: [bug]: Calling ast_softhangup with channel lock held can cause deadlock</li>
219 <li>1931: [improvement]: jansson: Upgrade version to jansson 2.15.0</li>
220 <li>1936: [bug]: Calling set_variable on PJSIP channel when originating with ARI with PJSIP_HEADER can result in deadlock</li>
221 <li>1938: [bug]: res_rtp_asterisk: Copy/paste error in ast_rtp_get_stat()</li>
222 <li>1941: [bug]: chan_websocket doesn't handle CONTINUATION websocket frames</li>
223 <li>1947: [bug]: chan_dahdi fails to build with gcc-16 when openr2 is installed</li>
224 <li>1950: [bug]: app_record does not detect channel hangup during beep playback</li>
225 <li>1952: [bug]: OpenSSL 4.0.0</li>
226 <li>1957: [bug]: Calendar module fails to build with libical 4.X</li>
227 <li>1970: [bug]: Startup or shutdown segfault in res_ari_model under certain conditions with DEVMODE and persistent outbound websockets.</li>
228 </ul>
229 <h3>Commits By Author:</h3>
230 <ul>
231 <li>
232 <h4>Alexander Bakker (1):</h4>
233 </li>
234 <li>
235 <p>abstract_jb.c: Remove timerfd from channel when disabling jitter buffer</p>
236 </li>
237 <li>
238 <h4>Alexei Gradinari (1):</h4>
239 </li>
240 <li>
241 <p>build: remove pjsua, pjsystest, Python bindings and asterisk_malloc_debug stubs from pjproject dev build</p>
242 </li>
243 <li>
244 <h4>Ben Ford (1):</h4>
245 </li>
246 <li>
247 <p>ARI: Added paths to get and set multiple channel variables.</p>
248 </li>
249 <li>
250 <h4>Bernd Kuhls (2):</h4>
251 </li>
252 <li>res_stir_shaken: avoid direct ASN1_STRING accesses</li>
253 <li>
254 <p>tcptls.c: fix build with OpenSSL 4</p>
255 </li>
256 <li>
257 <h4>Charles Langlois (1):</h4>
258 </li>
259 <li>
260 <p>chan_pjsip: Fix deadlock when endpoint set_var uses PJSIP_HEADER</p>
261 </li>
262 <li>
263 <h4>Daniel Donoghue (2):</h4>
264 </li>
265 <li>stasis_broadcast: Add optional ARI broadcast with first-claim-wins</li>
266 <li>
267 <p>res_pjsip_maintenance: Add PJSIP endpoint maintenance mode</p>
268 </li>
269 <li>
270 <h4>George Joseph (14):</h4>
271 </li>
272 <li>res_ari: Add res_ari_model as an optional_module.</li>
273 <li>Ensure channel locks aren't held while calling ast_set_variables.</li>
274 <li>chan_dahdi: Fix set but not used in mfcr2_show_links_of().</li>
275 <li>chan_websocket: Handle incoming CONTINUATION frames.</li>
276 <li>res_rtp_asterisk: Fix incorrect reference in ast_rtp_get_stat().</li>
277 <li>channel.c: Move setting RTP stats from ast_softhangup to ast_ari_channels_hangup.</li>
278 <li>res_rtp_asterisk: Add option to control stun host resolution when TTL = 0</li>
279 <li>channel.c: Don't lock the channel in ast_softhangup while setting rtp instance vars</li>
280 <li>ari_websockets: Fix two issues in the cleanup of outbound websockets.</li>
281 <li>compat.h: Ensure check for <code>__STDC_VERSION__</code> is not attempted for c++.</li>
282 <li>asterisk.c: Fix #if HAVE_LIBEDIT_IS_UNICODE.</li>
283 <li>pbx_functions: Save module pointer before calling read and write callbacks.</li>
284 <li>res_rtp_asterisk: Destroy ioqueue in rtp_ioqueue_thread_destroy.</li>
285 <li>
286 <p>res_pjsip_config_wizard: Trigger reloads from a pjsip servant thread</p>
287 </li>
288 <li>
289 <h4>Jaco Kroon (1):</h4>
290 </li>
291 <li>
292 <p>pjsip_configuration: Show actual dtls_verify config.</p>
293 </li>
294 <li>
295 <h4>Joshua C. Colp (1):</h4>
296 </li>
297 <li>
298 <p>manager: Eliminate unnecessary code, simplify sessions in stasis callbacks</p>
299 </li>
300 <li>
301 <h4>Maximilian Fridrich (1):</h4>
302 </li>
303 <li>
304 <p>res_pjsip_messaging: Update To URI only if it is a SIP(S) URI</p>
305 </li>
306 <li>
307 <h4>Mike Bradeen (3):</h4>
308 </li>
309 <li>res ari: Add attachable states to Channels and Bridges</li>
310 <li>res_stir_shaken: fix memory free crash when Asterisk is built with malloc_debug</li>
311 <li>
312 <p>res_pjsip_outbound_registration: only update the Expires header if the value has changed</p>
313 </li>
314 <li>
315 <h4>Milan Kyselica (1):</h4>
316 </li>
317 <li>
318 <p>callerid: fix signed char causing crash in MDMF parser</p>
319 </li>
320 <li>
321 <h4>Naveen Albert (3):</h4>
322 </li>
323 <li>app_dial: Properly handle callee hangup while sending digits.</li>
324 <li>chan_iax2: Add CHANNEL getter to retrieve auth method.</li>
325 <li>
326 <p>chan_iax2: Add another check to abort frame handling if datalen &lt; 0.</p>
327 </li>
328 <li>
329 <h4>Peter Krall (1):</h4>
330 </li>
331 <li>
332 <p>res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup</p>
333 </li>
334 <li>
335 <h4>Sean Bright (4):</h4>
336 </li>
337 <li>res_pjsip: Don't allow a leading period when wildcard matching</li>
338 <li>install_prereq: Add a 'minimal' mode for basic build dependencies</li>
339 <li>func_talkdetect.c: Clarify dsp_talking_threshold documentation.</li>
340 <li>
341 <p>make_xml_documentation: Remove temporary file on script exit.</p>
342 </li>
343 <li>
344 <h4>Sebastian Denz (1):</h4>
345 </li>
346 <li>
347 <p>res_pjsip_outbound_publish.c: Add more verbose documentation for outbound_proxy usage</p>
348 </li>
349 <li>
350 <h4>Sebastian Jennen (2):</h4>
351 </li>
352 <li>tests: add tests/test_codec_translations.c</li>
353 <li>
354 <p>translate.c: implement different sample_types for translation computation.</p>
355 </li>
356 <li>
357 <h4>Stanislav Abramenkov (2):</h4>
358 </li>
359 <li>jansson: Upgrade version to jansson 2.15.0</li>
360 <li>
361 <p>Upgrade bundled pjproject to 2.17.</p>
362 </li>
363 <li>
364 <h4>Sven Kube (1):</h4>
365 </li>
366 <li>
367 <p>res_audiosocket: Tolerate non-audio frame types</p>
368 </li>
369 <li>
370 <h4>UpBeta (1):</h4>
371 </li>
372 <li>
373 <p>app_record: Fix hangup handling during beep playback</p>
374 </li>
375 <li>
376 <h4>mattia (1):</h4>
377 </li>
378 <li>
379 <p>res_pjsip: Add per-endpoint RTP port range configuration</p>
380 </li>
381 <li>
382 <h4>mikhail_grishak (1):</h4>
383 </li>
384 <li>
385 <p>res_calendar: Fix build with libical 4.X</p>
386 </li>
387 <li>
388 <h4>phoneben (5):</h4>
389 </li>
390 <li>app_queue: Fix raise_respect_min lost in copy_rules() breaking rN queue rules</li>
391 <li>app_voicemail_odbc: fix msgnum race and crash on failed STORE</li>
392 <li>pjproject: Backport fix for OpenSSL &lt; 1.1.0 build failure in ssl_sock_ossl.c</li>
393 <li>cdrel_custom: fix SQLite compatibility for versions &lt; 3.20.0</li>
394 <li>
395 <p>fix: backport pjproject stdatomic.h GCC 4.8 build failure patch</p>
396 </li>
397 <li>
398 <h4>smtcbn (2):</h4>
399 </li>
400 <li>odbc: Don't use prepared statements for distinct SQL statements</li>
401 <li>app_queue: fix double increment of member-&gt;calls with shared_lastcall</li>
402 </ul>
403 <h3>Commit List:</h3>
404 <ul>
405 <li>res_ari: Add res_ari_model as an optional_module.</li>
406 <li>res ari: Add attachable states to Channels and Bridges</li>
407 <li>ARI: Added paths to get and set multiple channel variables.</li>
408 <li>res_stir_shaken: avoid direct ASN1_STRING accesses</li>
409 <li>tcptls.c: fix build with OpenSSL 4</li>
410 <li>res_calendar: Fix build with libical 4.X</li>
411 <li>app_record: Fix hangup handling during beep playback</li>
412 <li>odbc: Don't use prepared statements for distinct SQL statements</li>
413 <li>abstract_jb.c: Remove timerfd from channel when disabling jitter buffer</li>
414 <li>res_pjsip: Don't allow a leading period when wildcard matching</li>
415 <li>Ensure channel locks aren't held while calling ast_set_variables.</li>
416 <li>app_queue: fix double increment of member-&gt;calls with shared_lastcall</li>
417 <li>chan_dahdi: Fix set but not used in mfcr2_show_links_of().</li>
418 <li>tests: add tests/test_codec_translations.c</li>
419 <li>install_prereq: Add a 'minimal' mode for basic build dependencies</li>
420 <li>chan_websocket: Handle incoming CONTINUATION frames.</li>
421 <li>res_rtp_asterisk: Fix incorrect reference in ast_rtp_get_stat().</li>
422 <li>jansson: Upgrade version to jansson 2.15.0</li>
423 <li>channel.c: Move setting RTP stats from ast_softhangup to ast_ari_channels_hangup.</li>
424 <li>res_rtp_asterisk: Add option to control stun host resolution when TTL = 0</li>
425 <li>pjsip_configuration: Show actual dtls_verify config.</li>
426 <li>app_dial: Properly handle callee hangup while sending digits.</li>
427 <li>res_pjsip_messaging: Update To URI only if it is a SIP(S) URI</li>
428 <li>Upgrade bundled pjproject to 2.17.</li>
429 <li>res_stir_shaken: fix memory free crash when Asterisk is built with malloc_debug</li>
430 <li>manager: Eliminate unnecessary code, simplify sessions in stasis callbacks</li>
431 <li>res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup</li>
432 <li>res_pjsip_outbound_publish.c: Add more verbose documentation for outbound_proxy usage</li>
433 <li>channel.c: Don't lock the channel in ast_softhangup while setting rtp instance vars</li>
434 <li>chan_pjsip: Fix deadlock when endpoint set_var uses PJSIP_HEADER</li>
435 <li>res_pjsip: Add per-endpoint RTP port range configuration</li>
436 <li>app_queue: Fix raise_respect_min lost in copy_rules() breaking rN queue rules</li>
437 <li>app_voicemail_odbc: fix msgnum race and crash on failed STORE</li>
438 <li>ari_websockets: Fix two issues in the cleanup of outbound websockets.</li>
439 <li>compat.h: Ensure check for <code>__STDC_VERSION__</code> is not attempted for c++.</li>
440 <li>pjproject: Backport fix for OpenSSL &lt; 1.1.0 build failure in ssl_sock_ossl.c</li>
441 <li>asterisk.c: Fix #if HAVE_LIBEDIT_IS_UNICODE.</li>
442 <li>cdrel_custom: fix SQLite compatibility for versions &lt; 3.20.0</li>
443 <li>translate.c: implement different sample_types for translation computation.</li>
444 <li>stasis_broadcast: Add optional ARI broadcast with first-claim-wins</li>
445 <li>res_audiosocket: Tolerate non-audio frame types</li>
446 <li>pbx_functions: Save module pointer before calling read and write callbacks.</li>
447 <li>chan_iax2: Add CHANNEL getter to retrieve auth method.</li>
448 <li>fix: backport pjproject stdatomic.h GCC 4.8 build failure patch</li>
449 <li>res_rtp_asterisk: Destroy ioqueue in rtp_ioqueue_thread_destroy.</li>
450 <li>res_pjsip_maintenance: Add PJSIP endpoint maintenance mode</li>
451 <li>chan_iax2: Add another check to abort frame handling if datalen &lt; 0.</li>
452 <li>res_pjsip_outbound_registration: only update the Expires header if the value has changed</li>
453 <li>func_talkdetect.c: Clarify dsp_talking_threshold documentation.</li>
454 <li>make_xml_documentation: Remove temporary file on script exit.</li>
455 <li>res_pjsip_config_wizard: Trigger reloads from a pjsip servant thread</li>
456 <li>build: remove pjsua, pjsystest, Python bindings and asterisk_malloc_debug stubs from pjproject dev build</li>
457 <li>callerid: fix signed char causing crash in MDMF parser</li>
458 </ul>
459 <h3>Commit Details:</h3>
460 <h4>res_ari: Add res_ari_model as an optional_module.</h4>
461 <p>Author: George Joseph
462 Date: 2026-06-03</p>
463 <p>Under certain timing/load conditions, res_ari_model may not load until after
464 res_ari on startup or it might unload before res_ari on shutdown. This can
465 cause a segfault when DEVMODE is enabled and there are persistent outbound
466 websocket connections because DEVMODE forces validation of outgoing events
467 against the models. To prevent this, res_ari_model has been added as an
468 "optional_module" to res_ari's NODULE_INFO. This will enforce load/unload
469 order but not make res_ari dependent on res_ari_model. However, if
470 Asterisk is configured with --enable-dev-mode, res_ari will fail to
471 load if res_ari_model isn't available.</p>
472 <p>Resolves: #1970</p>
473 <h4>res ari: Add attachable states to Channels and Bridges</h4>
474 <p>Author: Mike Bradeen
475 Date: 2026-03-31</p>
476 <p>Adds the ability to attach multiple states to both Channels and Bridges in the form
477 of variables that are included in all events on the associated object.</p>
478 <p>First, this adds an optional boolean field to channel variables 'report_events'
479 that causes the variable to automatically be included in all events on that channel.</p>
480 <p>To allow this, variables can now be either name value pairs (the current format):
481 <code>&lt;variable_name&gt;: '&lt;value_string&gt;'</code>
482 - or -
483 <code>&lt;variable_name&gt;: {value: '&lt;value_string&gt;', report_events: [true|false]}</code></p>
484 <p>If the old format is used or 'report_events' is not included, it will default to
485 false and retain current behavior.</p>
486 <p>Second, this extends both reported and unreported variables to Bridges so they too
487 may have stateful information.</p>
488 <p>Resolves: #1910</p>
489 <p>UserNote: Bridge variables now can be set and retrieved via the following paths:
490 <code>/bridges/{bridgeId}/variable</code>
491 <code>/bridges/{bridgeId}/variables</code>
492 Both Bridge and Channel variables can now be set with an optional 'report_events'
493 boolean flag that will cause those variables to be included on all events on that
494 object. The 'report_events' flag will default to False if not set to maintain
495 backwards capability.
496 To allow this, variables can now be either name value pairs (the current format):
497 <code>&lt;variable_name&gt;: '&lt;value_string&gt;'</code>
498 - or -
499 <code>&lt;variable_name&gt;: {value: '&lt;value_string&gt;', report_events: [true|false]}</code></p>
500 <h4>ARI: Added paths to get and set multiple channel variables.</h4>
501 <p>Author: Ben Ford
502 Date: 2026-04-15</p>
503 <p>Two new paths exist for ARI to get and set multiple channel variables at
504 the same time. This is done via GET and POST like the single get and set
505 variable equivalents. Leading and trailing whitespace will be stripped
506 from the variable names for both paths. When setting variables, the
507 values will be read as-is, whitespace included. GET takes in a single
508 string with comma-separated values, while POST takes in a dictionary of
509 key value pairs. The code follows the same paths as when setting
510 multiple variables when originating a channel via ARI.</p>
511 <p>UserNote: Added new ARI paths for getting and setting multiple channel
512 variables at a time. For GET, this takes in a single string of
513 comma-separated variable names, while POST takes in a dictionary of key
514 value pairs. The behavior is the same as passing in variables when
515 originating a channel.</p>
516 <h4>res_stir_shaken: avoid direct ASN1_STRING accesses</h4>
517 <p>Author: Bernd Kuhls
518 Date: 2026-05-02</p>
519 <p>https://github.com/openssl/openssl/issues/29117</p>
520 <p>Signed-off-by: Bernd Kuhls <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#98;&#101;&#114;&#110;&#100;&#64;&#107;&#117;&#104;&#108;&#115;&#46;&#110;&#101;&#116;">&#98;&#101;&#114;&#110;&#100;&#64;&#107;&#117;&#104;&#108;&#115;&#46;&#110;&#101;&#116;</a></p>
521 <p>Resolves: #1952</p>
522 <h4>tcptls.c: fix build with OpenSSL 4</h4>
523 <p>Author: Bernd Kuhls
524 Date: 2026-05-02</p>
525 <p>tcptls.c: In function '__ssl_setup':
526 tcptls.c:417:52: error: implicit declaration of function 'SSLv3_client_method';
527 did you mean 'SSLv23_client_method'? [-Wimplicit-function-declaration]
528 417 | cfg-&gt;ssl_ctx = SSL_CTX_new(SSLv3_client_method());</p>
529 <p>SSLv3_client_method was removed from OpenSSL 4.0.0:
530 https://github.com/openssl/openssl/blob/openssl-4.0.0/doc/man7/ossl-removed-api.pod?plain=1#L440</p>
531 <p>Signed-off-by: Bernd Kuhls <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#98;&#101;&#114;&#110;&#100;&#64;&#107;&#117;&#104;&#108;&#115;&#46;&#110;&#101;&#116;">&#98;&#101;&#114;&#110;&#100;&#64;&#107;&#117;&#104;&#108;&#115;&#46;&#110;&#101;&#116;</a></p>
532 <p>Resolves: #1952</p>
533 <h4>res_calendar: Fix build with libical 4.X</h4>
534 <p>Author: mikhail_grishak
535 Date: 2026-05-26</p>
536 <p>libical 4.0 removed the icaltime_add() function in favor of icaltime_adjust(). Additionally, the callback signature for icalcomponent_foreach_recurrence() was updated to use a const pointer for the icaltime_span argument.</p>
537 <p>This commit adds conditional compilation using ICAL_MAJOR_VERSION to support both libical 3.X and the new 4.X API, ensuring backward compatibility.</p>
538 <p>Fixes: #1957</p>
539 <h4>app_record: Fix hangup handling during beep playback</h4>
540 <p>Author: UpBeta
541 Date: 2026-05-23</p>
542 <p>When a hangup occurs while app_record is playing the initial beep,
543 the application does not detect the hangup and continues running
544 until the maxduration timeout expires.</p>
545 <p>Replace the manual ast_streamfile() + ast_waitstream() sequence with
546 ast_stream_and_wait(), which properly detects hangup and returns
547 non-zero, allowing the application to exit immediately with
548 RECORD_STATUS set to HANGUP.</p>
549 <p>Resolves: #1950</p>
550 <h4>odbc: Don't use prepared statements for distinct SQL statements</h4>
551 <p>Author: smtcbn
552 Date: 2025-04-25</p>
553 <p>Avoids unnecessary prepare for simple INSERT statements that cause
554 issues with ProxySQL (prepared statement counter overflow).</p>
555 <p>Resolves: #1217</p>
556 <h4>abstract_jb.c: Remove timerfd from channel when disabling jitter buffer</h4>
557 <p>Author: Alexander Bakker
558 Date: 2026-05-20</p>
559 <p>Previously, the lingering timerfd would cause a tight loop if the
560 channel enters a BridgeWait after the jitter buffer was disabled.</p>
561 <p>Fixes: #1762</p>
562 <h4>res_pjsip: Don't allow a leading period when wildcard matching</h4>
563 <p>Author: Sean Bright
564 Date: 2026-05-26</p>
565 <p>The reference identifier (what the client provides - in this case a
566 hostname) must start with a domain label, not a <code>.</code>.</p>
567 <p>The current implementation will match <code>.seanbright.com</code> against
568 <code>*.seanbright.com</code> which is incorrect.</p>
569 <h4>Ensure channel locks aren't held while calling ast_set_variables.</h4>
570 <p>Author: George Joseph
571 Date: 2026-05-20</p>
572 <p>If the channel is locked when calling ast_set_variables and any of the
573 variables contained dialplan functions, there's a possiblilty of a deadlock.
574 To prevent this, either the explicit locks were removed or the call to
575 ast_set_variables moved out of the lock scope. A warning to not hold
576 channel locks is also added to the documentation for ast_set_variables.</p>
577 <p>Resolves: #1936</p>
578 <h4>app_queue: fix double increment of member-&gt;calls with shared_lastcall</h4>
579 <p>Author: smtcbn
580 Date: 2026-01-23</p>
581 <p>Under high concurrency, update_queue() may be invoked multiple times
582 for the same call, causing member-&gt;calls and queue-level counters to
583 be incremented more than once.</p>
584 <p>The existing starttime check is not atomic and allows concurrent
585 execution paths to pass. Treat member-&gt;starttime as a single-use token
586 and consume it via CAS to ensure the call is counted exactly once.</p>
587 <p>This also prevents incorrect call distribution when using strategies
588 such as fewestcalls.</p>
589 <p>Observed as a regression after upgrading to 20.17.</p>
590 <p>Resolves: #1736</p>
591 <h4>chan_dahdi: Fix set but not used in mfcr2_show_links_of().</h4>
592 <p>Author: George Joseph
593 Date: 2026-05-21</p>
594 <p>When openr2 is installed mfcr2_show_links_of() is no longer ifdeffed out
595 which makes gcc-16 complain with 'variable ‘x’ set but not used'.</p>
596 <p>Resolves: #1947</p>
597 <h4>tests: add tests/test_codec_translations.c</h4>
598 <p>Author: Sebastian Jennen
599 Date: 2026-03-06</p>
600 <p>This tests checks [slin -&gt; codec -&gt; slin] and then compares slin in vs out
601 regarding signal noise ratio and delay.</p>
602 <p>Near-lossless codecs (ulaw, alaw) are checked with a maximum per-sample
603 error bound. Lossy codecs are checked with a per-codec SNR threshold.
604 Cross-correlation alignment compensates for algorithmic delay in codecs
605 like speex and opus.</p>
606 <p>Covered codecs: ulaw, alaw, adpcm, g726, g726aal2, gsm, speex,
607 speex16, speex32, ilbc, codec2, lpc10, g722, opus.</p>
608 <p>Resolves: #1812</p>
609 <h4>install_prereq: Add a 'minimal' mode for basic build dependencies</h4>
610 <p>Author: Sean Bright
611 Date: 2026-05-20</p>
612 <h4>chan_websocket: Handle incoming CONTINUATION frames.</h4>
613 <p>Author: George Joseph
614 Date: 2026-05-20</p>
615 <p>chan_websocket now tells res_http_websocket to accumulate incoming CONTINUATION
616 frames into 1024 byte TEXT or BINARY frames.</p>
617 <p>Resolves: #1941</p>
618 <h4>res_rtp_asterisk: Fix incorrect reference in ast_rtp_get_stat().</h4>
619 <p>Author: George Joseph
620 Date: 2026-05-19</p>
621 <p><code>AST_RTP_STAT_SET(AST_RTP_INSTANCE_STAT_LOCAL_STDEVMES, \
622 AST_RTP_INSTANCE_STAT_COMBINED_MES, stats-&gt;local_stdevmes, \
623 rtp-&gt;rtcp-&gt;stdev_rxjitter);</code></p>
624 <p>Should have been</p>
625 <p><code>AST_RTP_STAT_SET(AST_RTP_INSTANCE_STAT_LOCAL_STDEVMES, \
626 AST_RTP_INSTANCE_STAT_COMBINED_MES, stats-&gt;local_stdevmes, \
627 rtp-&gt;rtcp-&gt;stdev_rxmes);</code></p>
628 <p>Note the last macro parameter name.</p>
629 <p>Resolves: #1938</p>
630 <h4>jansson: Upgrade version to jansson 2.15.0</h4>
631 <p>Author: Stanislav Abramenkov
632 Date: 2026-05-13</p>
633 <p>UpgradeNote: jansson has been upgraded to 2.15.0. For more
634 information visit jansson Github page: https://github.com/akheron/jansson/releases/tag/v2.15.0</p>
635 <p>Resolves: #1931</p>
636 <h4>channel.c: Move setting RTP stats from ast_softhangup to ast_ari_channels_hangup.</h4>
637 <p>Author: George Joseph
638 Date: 2026-05-12</p>
639 <p>The original trigger for setting the RTP stats in ast_softhangup() came from
640 an ARI issue where stats weren't being set in time to be reported on STASIS_END
641 events. The thought was that setting them in a common place like ast_softhangup()
642 would ensure the stats were set in possibly other scenarios. Unfortunately,
643 setting the RTP stats variables in ast_softhangup() broke ABI as it required
644 that no channel locks be held which was not the case earlier.</p>
645 <p>Given that the original issue was ARI, we can move setting the stats to
646 ast_ari_channels_hangup() in resource_channels just before it calls
647 ast_softhangup(). This might not catch all cases of the stats not being set,
648 but it won't break ABI or deadlock either.</p>
649 <p>Resolves: #1928</p>
650 <h4>res_rtp_asterisk: Add option to control stun host resolution when TTL = 0</h4>
651 <p>Author: George Joseph
652 Date: 2026-05-05</p>
653 <p>If a hostname is specified for stunaddr in rtp.conf, periodic DNS resolution
654 is enabled based on the TTL returned in the DNS results. If the TTL returned
655 is 0, it means that the next time the IP address is needed, it must be
656 looked up again. I.E. Don't cache. Historically (and incorrectly) however,
657 res_rtp_asterisk stopped the periodic resolution and never re-resolved the
658 hostname again.</p>
659 <p>Besides what's mentioned in the user notes...
660 * Additional debugging was added in various STUN/DNS functions.
661 * The <code>rtp show settings</code> CLI command shows more detailed STUN info.
662 * Some debugging was added to dns_core.c and dns_recurring.c.</p>
663 <p>UserNote: A new <code>stunaddr_reresolve_ttl_0</code> parameter has been added to rtp.conf
664 that allows control over what happens when a STUN server hostname lookup
665 returns a TTL of 0. The values can be set as follows:
666 - 'no': This is the historical (and current default) behavior of not doing
667 any further lookups and continuing to use the last successful result until
668 Asterisk is restarted or rtp.conf is reloaded.
669 - 'yes': Use the last cached result for the current call but trigger
670 re-resolution in the background for the benefit of future calls.
671 If the result of the background lookup is a ttl &gt; 0, periodic resolution
672 will be restarted otherwise the next call will use the new cached value
673 and will trigger a background lookup again.</p>
674 <p>UserNote: A new CLI command <code>rtp resolve stun hostname</code> has been added
675 that will force a resolution of the STUN hostname and (re)start periodic
676 resolution if the result has a TTL &gt; 0.</p>
677 <p>Resolves: #1858</p>
678 <h4>pjsip_configuration: Show actual dtls_verify config.</h4>
679 <p>Author: Jaco Kroon
680 Date: 2026-05-07</p>
681 <p>Rather than merely showing</p>
682 <p>dtls_verify : Yes/No</p>
683 <p>in pjsip show endpoint xxx it will now be shown what exactly is being
684 checked, ie, one of:</p>
685 <p>dtls_verify : No
686 dtls_verify : Fingerprint
687 dtls_verify : Certificate
688 dtls_verify : Yes</p>
689 <p>Where Yes implies both Fingerprint and Certificate.</p>
690 <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>
691 <h4>app_dial: Properly handle callee hangup while sending digits.</h4>
692 <p>Author: Naveen Albert
693 Date: 2026-05-05</p>
694 <p>If we are sending digits (either DTMF, MF, or SF) to the called channel
695 after receiving progress or a wink, and the callee hangs up before we
696 have finished sending it digits, there are several problems that can ensue:</p>
697 <ul>
698 <li>If the callee hung up without answering, the calling channel would
699 hang up and not continue in the dialplan.</li>
700 <li>If the callee <em>did</em> answer before hanging up, the answer was never
701 passed through to the caller, since this gets "eaten" by the various
702 digit streaming functions and is never processed by app_dial.</li>
703 </ul>
704 <p>This is generally an edge case that occurs due to some kind of signaling
705 failure, but to better handle this:</p>
706 <ul>
707 <li>Set to_answer to 0 to prevent hangup on the exit path, just like other
708 parts of wait_for_answer.</li>
709 <li>Better document this usage of to_answer.</li>
710 <li>If the channel did answer while it was receiving digits, manually
711 answer the calling channel before we abort. The call would not continue
712 in the dialplan anyways (either before or after this fix), but technically
713 the call was answered, so the CDRs should probably reflect that, and this
714 mirrors the behavior of calls which normally do not continue.</li>
715 </ul>
716 <p>Resolves: #1915</p>
717 <p>UserNote: If a called channel sends progress or wink and the caller begins
718 sending digits but the callee answers and then hangs up before digit
719 sending can finish, the call is now answered before being disconnected.
720 If the callee hangs up without answering, the call now continues in
721 the dialplan.</p>
722 <h4>res_pjsip_messaging: Update To URI only if it is a SIP(S) URI</h4>
723 <p>Author: Maximilian Fridrich
724 Date: 2026-05-07</p>
725 <p>When a message is sent via ARI, the ARI endpoint only provides a To
726 field which is also used as destination field. This means that the To
727 field might not necessarily contain a SIP URI but might instead specify
728 an Asterisk endpoint (in MessageDestinationInfo format). This led to
729 many warnings even though the message was sent correctly.</p>
730 <p>The fix is to only call <code>ast_sip_update_to_uri</code> if the To field starts
731 with the sip: or sips: scheme.</p>
732 <p>Resolves: #1357</p>
733 <h4>Upgrade bundled pjproject to 2.17.</h4>
734 <p>Author: Stanislav Abramenkov
735 Date: 2026-04-27</p>
736 <p>Resolves: #1888</p>
737 <p>UserNote: Bundled pjproject has been upgraded to 2.17. For more
738 information about what is included in this release, see the
739 pjproject Github page: https://github.com/pjsip/pjproject/releases/tag/2.17</p>
740 <h4>res_stir_shaken: fix memory free crash when Asterisk is built with malloc_debug</h4>
741 <p>Author: Mike Bradeen
742 Date: 2026-05-06</p>
743 <p>crypto_utils uses ast_asprintf to allocate the search string when checking the
744 certificate subject, but was not using ast_free to free it. This caused a crash
745 when Asterisk was built with malloc_debug</p>
746 <p>Resolves: #1921</p>
747 <h4>manager: Eliminate unnecessary code, simplify sessions in stasis callbacks</h4>
748 <p>Author: Joshua C. Colp
749 Date: 2026-05-04</p>
750 <p>Due to stasis filtering the stasis callback for AMI type messages is
751 guaranteed to only receive messages that can be turned into AMI events,
752 so remove the check done in the callback.</p>
753 <p>The sessions container usage for the stasis callbacks has also been
754 simplified by having a reference on the message router subscription
755 instead of having to acquire the sessions from the global object each
756 time.</p>
757 <h4>res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup</h4>
758 <p>Author: Peter Krall
759 Date: 2026-04-17</p>
760 <p>Modified the bridge playback teardown so the worker thread removes only the
761 playback control, while the after-bridge callback removes the playback
762 wrapper once the announcer has actually left the bridge.</p>
763 <p>This avoids a stale window where a new playback request could create a
764 replacement announcer before the old announcer had fully exited the holding
765 bridge.</p>
766 <p>Also replaced the flexible trailing bridge_id storage in the shared worker
767 thread data with an optional bridge_id pointer, since recording paths use the
768 same structure without a bridge id.</p>
769 <p>Fixes: #1861</p>
770 <h4>res_pjsip_outbound_publish.c: Add more verbose documentation for outbound_proxy usage</h4>
771 <p>Author: Sebastian Denz
772 Date: 2026-03-26</p>
773 <h4>channel.c: Don't lock the channel in ast_softhangup while setting rtp instance vars</h4>
774 <p>Author: George Joseph
775 Date: 2026-05-05</p>
776 <p>ast_softhangup() was locking the channel before calling ast_rtp_instance_set_stats_vars()
777 which, if the channel was in a bridge, then locked the bridge peer channel. If another
778 thread attempted to set bridge variables on the peer, it would lock that channel first,
779 then this channel causing a lock inversion. ast_softhangup() now holds the channel lock
780 while retrieving the rtp instance, then unlocks it before calling
781 ast_rtp_instance_set_stats_vars(), then locks it again after it returns.</p>
782 <p>Resolves: #1907</p>
783 <h4>chan_pjsip: Fix deadlock when endpoint set_var uses PJSIP_HEADER</h4>
784 <p>Author: Charles Langlois
785 Date: 2026-04-16</p>
786 <p>When a PJSIP endpoint is configured with set_var invoking a dialplan
787 function (e.g. PJSIP_HEADER(add,...)), chan_pjsip_new() calls
788 pbx_builtin_setvar_helper() while holding the channel lock.
789 For function-style variables, this dispatches to ast_func_write()
790 which, in the case of PJSIP_HEADER, calls
791 ast_sip_push_task_wait_serializer() -- blocking synchronously while
792 the channel lock is held.</p>
793 <p>If a concurrent operation (ARI, AMI, rtp_check_timeout) traverses
794 the channels container via ast_channel_get_by_name(), it acquires
795 the container lock then tries to lock individual channels in the
796 iteration callback (by_uniqueid_cb/by_name_cb). When the serializer
797 thread also needs the container lock, a circular dependency forms:</p>
798 <pre><code>channel_lock -&gt; serializer_wait -&gt; container_lock -&gt; channel_lock
799 </code></pre>
800 <p>This causes a complete Asterisk freeze. In the observed case, 36
801 threads were blocked on the container lock until res_freeze_check
802 triggered SIGABRT after its 30-second timeout.</p>
803 <p>Unlock the channel before iterating endpoint channel_vars so that
804 dialplan functions can block without holding the channel lock. Re-lock
805 the channel for ast_channel_stage_snapshot_done() so the batched
806 snapshot is published under lock and captures the full channel state
807 including the variables set during the loop.</p>
808 <p>Fixes: #1872</p>
809 <h4>res_pjsip: Add per-endpoint RTP port range configuration</h4>
810 <p>Author: mattia
811 Date: 2026-04-01</p>
812 <p>Add rtp_port_start and rtp_port_end options to PJSIP endpoint
813 configuration, allowing each endpoint to use a dedicated RTP port
814 range instead of the global rtp.conf setting.</p>
815 <p>This is useful for scenarios where different endpoints need isolated
816 port ranges, such as firewall rules per trunk, multi-tenant systems,
817 or network QoS policies tied to port ranges.</p>
818 <p>The implementation adds ast_rtp_instance_new_with_port_range() to the
819 RTP engine API, which sets the port range on the instance before the
820 engine allocates the transport. The default RTP engine
821 (res_rtp_asterisk) checks for per-instance overrides in
822 rtp_allocate_transport() and falls back to the global range when
823 none is set.</p>
824 <p>Both options must be set together, with values &gt;= 1024 and
825 rtp_port_end &gt; rtp_port_start. Setting both to 0 (the default)
826 preserves existing behavior.</p>
827 <p>Resolves: https://github.com/asterisk/asterisk-feature-requests/issues/71</p>
828 <p>UserNote: PJSIP endpoints now support rtp_port_start and
829 rtp_port_end options to configure a dedicated RTP port range per
830 endpoint, overriding the global rtp.conf setting.</p>
831 <p>UpgradeNote: An alembic database migration has been added to add
832 the rtp_port_start and rtp_port_end columns to the ps_endpoints
833 table. Run "alembic upgrade head" to apply the schema change.</p>
834 <p>DeveloperNote: New public API: ast_rtp_instance_new_with_port_range()
835 creates an RTP instance with a per-instance port range.
836 ast_rtp_instance_get_port_start() and ast_rtp_instance_get_port_end()
837 allow RTP engines to query the override. Third-party RTP engines can
838 use these getters to support per-instance port ranges.</p>
839 <h4>app_queue: Fix raise_respect_min lost in copy_rules() breaking rN queue rules</h4>
840 <p>Author: phoneben
841 Date: 2026-04-26</p>
842 <p>app_queue: Fix raise_respect_min not copied in copy_rules() causing rN rules to be ignored.</p>
843 <p><code>copy_rules()</code> never copied <code>raise_respect_min</code> into the per-call rule list, so the flag was always 0 when a timed penaltychange rule fired, making <code>rN</code> behave like plain <code>N</code> and raising members below <code>min_penalty</code> that should have been excluded.</p>
844 <p>Also fixes <code>update_qe_rule()</code> not propagating the flag from <code>qe-&gt;pr</code> to <code>qe</code>, and dropping the <code>r</code> prefix when saving back to <code>QUEUE_RAISE_PENALTY</code>.</p>
845 <p>Resolves: #1901</p>
846 <h4>app_voicemail_odbc: fix msgnum race and crash on failed STORE</h4>
847 <p>Author: phoneben
848 Date: 2026-04-09</p>
849 <p>app_voicemail_odbc: fix msgnum race and crash on failed STORE</p>
850 <p>Two concurrent callers leaving voicemail to the same mailbox could be
851 assigned the same msgnum because ast_unlock_path() was called before
852 STORE(), allowing a second thread to read the same LAST_MSG_INDEX()
853 before the first INSERT committed. The losing thread got a duplicate
854 key error, but execution continued into notify_new_message() -&gt;
855 RETRIEVE() because the STORE() return value was not checked.
856 RETRIEVE() then fetched the winning thread's DB row, mmap'd its blob
857 size against the locally truncated file, and crashed with SIGBUS.</p>
858 <p>Hold the path lock through STORE() and bail out on failure.</p>
859 <p>Fixes: #1653</p>
860 <h4>ari_websockets: Fix two issues in the cleanup of outbound websockets.</h4>
861 <p>Author: George Joseph
862 Date: 2026-04-22</p>
863 <ol>
864 <li>
865 <p>session_cleanup() now saves the websocket type before unlinking the
866 session from the session registry. This prevents a FRACK when cleaning
867 up per-call websockets when MALLOC_DEBUG is used.</p>
868 </li>
869 <li>
870 <p>session_shutdown_cb() and outbound_sessions_load() now call
871 pthread_cancel() to cancel the session handler thread to prevent the
872 thread from continually trying to connect to a server after the
873 connection config has been removed by a reload. This required the
874 thread to use pthread_cleanup_push() to clean up its reference to the
875 session instead of RAII because RAII destructors don't get run when
876 pthread_cancel() is used.</p>
877 </li>
878 </ol>
879 <p>Resolves: #1894</p>
880 <h4>compat.h: Ensure check for <code>__STDC_VERSION__</code> is not attempted for c++.</h4>
881 <p>Author: George Joseph
882 Date: 2026-04-27</p>
883 <p><code>__STDC_VERSION__</code> is specific to C but up until gcc 16, the g++ compiler
884 also defined it. With g++ 16.0 it's no longer defined (which is the correct
885 behavior) so compiling channelstorage_cpp_map_name_id.cc fails. The
886 check for <code>__STDC_VERSION__</code> in compat.h is now skipped if we're compiling
887 a C++ source file.</p>
888 <p>Resolves: #1903</p>
889 <h4>pjproject: Backport fix for OpenSSL &lt; 1.1.0 build failure in ssl_sock_ossl.c</h4>
890 <p>Author: phoneben
891 Date: 2026-04-22</p>
892 <p>Backport pjsip/pjproject#4941 which fixes a build/link failure when
893 compiling against OpenSSL &lt; 1.1.0 (e.g. OpenSSL 1.0.2k on CentOS 7).</p>
894 <p>Two symbols introduced in OpenSSL 1.1.x were called unconditionally
895 in ssl_sock_ossl.c without version guards:</p>
896 <ul>
897 <li>
898 <p><code>TLS_method()</code> in <code>init_ossl_ctx()</code> is now guarded with
899 <code>OPENSSL_VERSION_NUMBER &lt; 0x10100000L</code>, falling back to
900 <code>SSLv23_method()</code> on older OpenSSL.</p>
901 </li>
902 <li>
903 <p><code>SSL_CTX_set_ciphersuites()</code> is now guarded with
904 <code>OPENSSL_VERSION_NUMBER &gt;= 0x1010100fL</code> since this function
905 was introduced in OpenSSL 1.1.1 and is absent in 1.0.x.</p>
906 </li>
907 </ul>
908 <p>Without this fix, linking fails with:
909 undefined reference to <code>TLS_method'
910 undefined reference to</code>SSL_CTX_set_ciphersuites'</p>
911 <p>when building Asterisk with bundled pjproject on systems such as
912 CentOS 7 with OpenSSL 1.0.2k.</p>
913 <p>Resolves: #1892</p>
914 <h4>asterisk.c: Fix #if HAVE_LIBEDIT_IS_UNICODE.</h4>
915 <p>Author: George Joseph
916 Date: 2026-04-22</p>
917 <p>Line 2729 has <code>#if HAVE_LIBEDIT_IS_UNICODE</code> instead if <code>#ifdef</code>. Since
918 macros defined by autoconf are either set to <code>1</code> or not set at all,
919 older distros where libedit isn't unicode won't have that macro defined
920 and will fail to compile.</p>
921 <p>Resolves: #1896</p>
922 <h4>cdrel_custom: fix SQLite compatibility for versions &lt; 3.20.0</h4>
923 <p>Author: phoneben
924 Date: 2026-04-21</p>
925 <p>cdrel_custom: fix SQLite compatibility for versions &lt; 3.20.0</p>
926 <p>Replace sqlite3_prepare_v3 + SQLITE_PREPARE_PERSISTENT with a version-guarded fallback to sqlite3_prepare_v2 for older SQLite builds.</p>
927 <p>Resolves: #1885</p>
928 <h4>translate.c: implement different sample_types for translation computation.</h4>
929 <p>Author: Sebastian Jennen
930 Date: 2026-04-02</p>
931 <p>The default (codec) still uses the codec provided samples. Additionally
932 different sample_types can be used with eg: <code>translate sampletype speech</code>
933 and then running <code>core show translation comp 10</code> to measure performance
934 of different audio scenarios.</p>
935 <p>Resolves: #1807</p>
936 <h4>stasis_broadcast: Add optional ARI broadcast with first-claim-wins</h4>
937 <p>Author: Daniel Donoghue
938 Date: 2026-02-25</p>
939 <p>Adds two optional modules:
940 res_stasis_broadcast.so: Infrastructure for broadcasting a single incoming
941 channel to multiple ARI applications with atomic first-claim-wins semantics.</p>
942 <p>app_stasis_broadcast.so: Provides the StasisBroadcast() dialplan application
943 which invokes the broadcast infrastructure.</p>
944 <p>Both modules are self-contained; if neither is loaded there is zero runtime
945 impact. Loading them does not alter existing Stasis or ARI behavior unless
946 explicitly used.</p>
947 <p>Key Features (only active when modules are loaded):
948 Fisher-Yates shuffled broadcast dispatch for fair claim races
949 Atomic claim operations using mutex + condition variable signaling
950 Configurable broadcast timeouts
951 Safe regex application filtering with validation to mitigate ReDoS risk
952 Thread-safe channel variable snapshotting (channel locked during reads)
953 Late-claim safety: broadcast context kept alive until after the Stasis
954 session ends so concurrent claimants always receive 409 Conflict rather
955 than 404 Not Found
956 Memory safety via RAII_VAR, ast_json_ref/unref, and ao2 reference counting</p>
957 <p>Components Added:
958 res/res_stasis_broadcast.c: Core broadcast + claim logic
959 apps/app_stasis_broadcast.c: StasisBroadcast() dialplan application
960 include/asterisk/stasis_app_broadcast.h: Public API header
961 res/ari/resource_events.c: Integrates POST /ari/events/claim endpoint
962 rest-api/api-docs/events.json: New CallBroadcast and CallClaimed events</p>
963 <p>Implementation Notes:
964 Broadcast contexts reside in an ao2 hash container keyed by channel id. Each
965 context holds atomic claim state, winner application name, timeout metadata,
966 and a condition variable for waiters. Broadcast contexts are kept alive until
967 after stasis_app_exec() returns so that concurrent claimants racing against
968 the timeout always receive 409 Conflict. Broadcast dispatch calls
969 stasis_app_send() directly for each matching application in shuffled order.
970 Regex filters are validated with bounded length, group depth, quantified
971 group count, and alternation limits to reduce pathological backtracking.
972 Timeout calculation uses timespec arithmetic with overflow-safe millisecond
973 remainder handling. Event JSON follows existing Stasis/ARI conventions;
974 references are managed correctly to avoid leaks or double frees.</p>
975 <p>Optional Nature / Impact:
976 No changes to existing APIs, events, or applications when absent.
977 Clean fallback: systems ignoring the modules behave identically to prior
978 versions.</p>
979 <p>Development was assisted by Claude (Anthropic). All generated code has been
980 reviewed, tested, and is understood by the author.</p>
981 <p>UserNote: New optional modules res_stasis_broadcast.so and
982 app_stasis_broadcast.so enable broadcasting an incoming channel to multiple
983 ARI applications. The first application to successfully claim (via
984 POST /ari/events/claim) wins channel control. StasisBroadcast() dialplan
985 application initiates broadcasts. CallBroadcast and CallClaimed events notify
986 applications. When modules are not loaded, behavior is unchanged.</p>
987 <p>DeveloperNote: New public APIs in stasis_app_broadcast.h:
988 stasis_app_broadcast_channel(), stasis_app_claim_channel(),
989 stasis_app_broadcast_winner(), and stasis_app_broadcast_wait(). New ARI event
990 types (CallBroadcast, CallClaimed) added to events.json. All code is isolated;
991 no existing ABI modified.</p>
992 <h4>res_audiosocket: Tolerate non-audio frame types</h4>
993 <p>Author: Sven Kube
994 Date: 2026-04-22</p>
995 <p>This commit implements the handling of non-voice or DTMF frames like the
996 chan_websocket handling added in #1588. Rather than treating unsupported
997 frames as fatal errors, silently ignore CNG frames and log a warning for
998 other unsupported types.</p>
999 <h4>pbx_functions: Save module pointer before calling read and write callbacks.</h4>
1000 <p>Author: George Joseph
1001 Date: 2026-04-21</p>
1002 <p>Before ast_func_read and ast_func_write call their respective read and write
1003 callbacks for registered dialplan functions, they use the module pointer in
1004 the registered ast_custom_function structure to increment the module use
1005 count. They then decrement the usecount when the callback returns. This
1006 prevents the providing module from being unloaded while there's a call using
1007 the function.</p>
1008 <p>Some modules, notably func_odbc, create and destroy dialplan functions based
1009 on the contents of a config file. Since the ast_custom_function structure is
1010 dynamically allocated, it could be destroyed on reload which means when the
1011 module's read or write callback returns to the ast_func calls it would try to
1012 decrement the usecount using the module pointer from an ast_custom_function
1013 structure that has already been freed. Proper locking or reference counting
1014 by the module can reduce the possibility of this happening but it can't
1015 prevent it because it doesn't have control after its read or write callback
1016 has returned to ast_func_read or ast_func_write.</p>
1017 <p>To address this, ast_func_read, ast_func_read2 and ast_func_write save the
1018 module pointer to a local variable before calling the module's callback,
1019 then use the saved pointer to decrement the use count. The module
1020 pointer will always be valid if the module is loaded regardless of the
1021 state of the ast_custom_function structure.</p>
1022 <p>Resolves: #1818</p>
1023 <h4>chan_iax2: Add CHANNEL getter to retrieve auth method.</h4>
1024 <p>Author: Naveen Albert
1025 Date: 2026-04-18</p>
1026 <p>Add a property to the CHANNEL method to retrieve the auth method,
1027 which can be used to retrieve the specific auth method actually
1028 negotiated for a call (e.g. RSA, MD5, etc.).</p>
1029 <p>Also clean up some of the documentation for the secure properties
1030 to clarify how these relate to call encryption.</p>
1031 <p>Resolves: #1878</p>
1032 <p>UserNote: CHANNEL(auth_method) can now be used to retrieve the
1033 auth method negotiated for a call on IAX2 channels.</p>
1034 <h4>fix: backport pjproject stdatomic.h GCC 4.8 build failure patch</h4>
1035 <p>Author: phoneben
1036 Date: 2026-04-21</p>
1037 <p>pjproject 2.16 (bundled) fails to build on GCC 4.8 (CentOS/RHEL 7)
1038 due to a false positive C11 atomics detection introduced in pjproject
1039 commit #4570. A fix has been submitted upstream to pjproject (#4933).</p>
1040 <p>Adding a local patch to third-party/pjproject/patches/ until a fixed
1041 version of pjproject is bundled in Asterisk.</p>
1042 <p>Fixes build error:
1043 ../src/pj/os_core_unix.c:52:27: fatal error: stdatomic.h: No such file or directory</p>
1044 <p>Resolves: #1883</p>
1045 <h4>res_rtp_asterisk: Destroy ioqueue in rtp_ioqueue_thread_destroy.</h4>
1046 <p>Author: George Joseph
1047 Date: 2026-04-16</p>
1048 <p>The rtp_ioqueue_thread_destroy() function was destroying the the ioqueue
1049 thread and releasing its pool but not destroying the ioqueue itself. This
1050 was causing the ioqueue's epoll file descriptor to leak.</p>
1051 <p>Resolves: #1867</p>
1052 <h4>res_pjsip_maintenance: Add PJSIP endpoint maintenance mode</h4>
1053 <p>Author: Daniel Donoghue
1054 Date: 2026-03-10</p>
1055 <p>Introduces res_pjsip_maintenance, a loadable module that allows
1056 operators to place individual PJSIP endpoints into maintenance mode
1057 at runtime without unregistering or disabling them.</p>
1058 <p>While an endpoint is in maintenance mode:
1059 * New inbound INVITE and SUBSCRIBE dialogs are rejected with
1060 503 Service Unavailable and a Retry-After: 300 header.
1061 * In-progress dialogs (re-INVITE, UPDATE, BYE, etc.) are
1062 unaffected and complete normally.
1063 * Outbound originations via Dial() or ARI originate are refused
1064 before any SIP session is created.</p>
1065 <p>State is held in-memory only and is cleared on module unload
1066 or Asterisk restart.</p>
1067 <p>This module was developed with AI assistance (Claude). All code
1068 has been reviewed and tested by the author, who takes full
1069 responsibility for the submission.</p>
1070 <p>CLI interface:
1071 pjsip set maintenance <on|off> <endpoint|all>
1072 pjsip show maintenance [endpoint]</p>
1073 <p>AMI interface:
1074 Action: PJSIPSetMaintenance
1075 Endpoint: <name>|all
1076 State: on|off</p>
1077 <pre><code>Action: PJSIPShowMaintenance
1078 Endpoint: &lt;name&gt; (optional; omit to list all)
1079
1080 Emits PJSIPMaintenanceStatus events per result, followed by
1081 PJSIPMaintenanceStatusComplete. State changes also emit an
1082 unsolicited PJSIPMaintenanceStatus event.
1083 </code></pre>
1084 <p>To support outbound blocking, a new session_create callback is
1085 added to ast_sip_session_supplement. Supplements that set this
1086 callback are invoked at the start of ast_sip_session_create_outgoing()
1087 in res_pjsip_session, before any dialog or invite session resources
1088 are allocated. res_pjsip_maintenance registers itself as a session
1089 supplement and uses this callback to gate outbound session creation
1090 on a per-endpoint basis.</p>
1091 <p>MODULEINFO:
1092 <depend>pjproject</depend>
1093 <depend>res_pjsip</depend>
1094 <depend>res_pjsip_session</depend></p>
1095 <p>UserNote: New module res_pjsip_maintenance adds runtime maintenance
1096 mode for PJSIP endpoints. Use "pjsip set maintenance <on|off>
1097 <endpoint|all>" to enable or disable, and "pjsip show maintenance"
1098 to list affected endpoints. AMI actions PJSIPSetMaintenance and
1099 PJSIPShowMaintenance provide programmatic access. No configuration
1100 file changes required.</p>
1101 <p>DeveloperNote: ast_sip_session_supplement gains a new optional
1102 callback - int (<em>session_create)(struct ast_sip_endpoint </em>endpoint,
1103 const char *destination). It is called from the global supplement
1104 list (not per-session) at the start of ast_sip_session_create_outgoing()
1105 via ast_sip_session_check_supplement_create(). Returning non-zero
1106 blocks the outgoing session. Modules that need to gate outbound
1107 SIP session creation should register a supplement with this callback
1108 set rather than hooking into chan_pjsip directly.</p>
1109 <h4>chan_iax2: Add another check to abort frame handling if datalen &lt; 0.</h4>
1110 <p>Author: Naveen Albert
1111 Date: 2026-04-11</p>
1112 <p>Commit 2da221e217cbff957af928e8df43ee25583232d1 added a missing abort
1113 if datalen &lt; 0 check on a code path and an assertion inside
1114 iax_frame_wrap if we ever encountered a frame with a negative frame
1115 length (which will eventually cause a crash).</p>
1116 <p>Add another missing abort check for negative datalen, exposed by this
1117 assertion. (Similar to the previous commit, this is a video frame with
1118 a datalen of -1).</p>
1119 <p>Resolves: #1865</p>
1120 <h4>res_pjsip_outbound_registration: only update the Expires header if the value has changed</h4>
1121 <p>Author: Mike Bradeen
1122 Date: 2026-04-08</p>
1123 <p>The PJSIP outbound registration API has undocumented behavior when reconfiguring
1124 the outbound registration if the expires value being set is the same as what was
1125 previously set.</p>
1126 <p>In this case PJSIP will remove the Expires header entirely from subsequent
1127 outbound REGISTER requests. To eliminate this as an issue we now check the current
1128 expires value against the configured expires value and only apply it if it differs.</p>
1129 <p>This ensures that outbound REGISTER requests always contain an Expires header.</p>
1130 <p>Resolves: #1859</p>
1131 <h4>func_talkdetect.c: Clarify dsp_talking_threshold documentation.</h4>
1132 <p>Author: Sean Bright
1133 Date: 2026-04-08</p>
1134 <p>Fixes: #1761</p>
1135 <h4>make_xml_documentation: Remove temporary file on script exit.</h4>
1136 <p>Author: Sean Bright
1137 Date: 2026-04-09</p>
1138 <p>Fixes: #1862</p>
1139 <h4>res_pjsip_config_wizard: Trigger reloads from a pjsip servant thread</h4>
1140 <p>Author: George Joseph
1141 Date: 2026-04-07</p>
1142 <p>When res_pjsip is reloaded directly, it does the sorcery reload in a pjsip
1143 servant thread as it's supposed to. res_pjsip_config_wizard however
1144 was not which was leading to occasional deadlocks. It now does the reload
1145 in a servant thread just like res_pjsip.</p>
1146 <p>Resolves: #1855</p>
1147 <h4>build: remove pjsua, pjsystest, Python bindings and asterisk_malloc_debug stubs from pjproject dev build</h4>
1148 <p>Author: Alexei Gradinari
1149 Date: 2026-04-06</p>
1150 <p>The pjsua Python module and the pjsua/pjsystest apps were used by the
1151 Asterisk Test Suite for SIP simulation in dev mode builds. They are now
1152 fully obsolete for three independent reasons:</p>
1153 <ol>
1154 <li>
1155 <p><strong>pjsua Python bindings officially deprecated upstream.</strong> The pjproject
1156 maintainers added <code>pjsip-apps/src/python/DEPRECATED.txt</code> directing
1157 users to the PJSUA2 SWIG binding instead. A build-fix PR
1158 (https://github.com/pjsip/pjproject/pull/4892) was closed by the
1159 maintainer explicitly citing this deprecation.</p>
1160 </li>
1161 <li>
1162 <p><strong>Removed from the Asterisk Test Suite.</strong> As confirmed by @mbradeen:
1163 &gt; <em>"We had to get rid of pjsua when we went to Python3 because it would
1164 &gt; hang due to a conflict between async calls within pjsua and twisted.
1165 &gt; There are still some old references to tests we couldn't fully convert
1166 &gt; to sipp, but those are skipped."</em></p>
1167 </li>
1168 <li>
1169 <p><strong>Broken and unmaintained.</strong> Building with Python 2.7 (the only version
1170 <code>configure.ac</code> searched for) fails with:
1171 <code>_pjsua.c: error: 'INIT_RETURN' undeclared (first use in this function)</code>
1172 due to a bug in pjproject 2.16's <code>python3_compat.h</code> that upstream
1173 declined to fix.</p>
1174 </li>
1175 </ol>
1176 <p>This PR removes all pjsua-related build artifacts from Asterisk's bundled
1177 pjproject build: the pjsua and pjsystest application binaries, the deprecated
1178 Python (<code>_pjsua.so</code>) bindings, the <code>asterisk_malloc_debug.c</code> stubs, and the
1179 <code>PYTHONDEV</code> detection from <code>configure.ac</code>. Also removes <code>libpjsua</code> from
1180 Asterisk's main linker flags.</p>
1181 <p>DeveloperNote: The pjsua and pjsystest application binaries, the deprecated
1182 Python pjsua bindings (<code>_pjsua.so</code>), and the <code>asterisk_malloc_debug.c</code> stub
1183 implementations are no longer built or installed as part of the bundled
1184 pjproject dev mode build. The <code>PYTHONDEV</code> (python2.7-dev) build dependency
1185 is also removed. Developers who relied on the pjsua binary for Test Suite
1186 SIP simulation should use SIPp instead, which is the current Asterisk Test
1187 Suite standard.</p>
1188 <p>Fixes: #1840</p>
1189 <h4>callerid: fix signed char causing crash in MDMF parser</h4>
1190 <p>Author: Milan Kyselica
1191 Date: 2026-03-25</p>
1192 <p>Change rawdata buffer from char to unsigned char to prevent
1193 sign-extension of TLV length bytes &gt;= 0x80. On signed-char
1194 platforms (all Asterisk builds due to -fsigned-char in
1195 configure.ac), these values become negative when assigned to
1196 int, bypass the <code>if (res &gt; 32)</code> bounds check, and reach
1197 memcpy as size_t producing a ~18 EB read that immediately
1198 crashes with SIGSEGV.</p>
1199 <p>Affects DAHDI analog (FXO) channels only. Not reachable
1200 via SIP, PRI/BRI, or DTMF-based Caller ID.</p>
1201 <p>Fixes: #1839</p>
1202 </body></html>