Debian Codegraph @

ChangeLogs/ChangeLog-22.10.0.md

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