Debian Codegraph @

ChangeLogs/ChangeLog-22.9.0.html

raw symbols SCIP
1 <html><head><title>ChangeLog for asterisk-22.9.0</title></head><body>
2 <h2>Change Log for Release asterisk-22.9.0</h2>
3 <h3>Links:</h3>
4 <ul>
5 <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.9.0.html">Full ChangeLog</a> </li>
6 <li><a href="https://github.com/asterisk/asterisk/compare/22.8.2...22.9.0">GitHub Diff</a> </li>
7 <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.9.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: 50</li>
13 <li>Commit Authors: 21</li>
14 <li>Issues Resolved: 34</li>
15 <li>Security Advisories Resolved: 0</li>
16 </ul>
17 <h3>User Notes:</h3>
18 <ul>
19 <li>
20 <h4>acl: Add ACL support to http and ari</h4>
21 <p>A new section, type=restriction has been added to http.conf
22 to allow an uri prefix based acl to be configured. See
23 http.conf.sample for examples and more information.
24 The user section of ari.conf can now contain an acl configuration
25 to restrict users access. See ari.conf.sample for examples and more
26 information</p>
27 </li>
28 <li>
29 <h4>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</h4>
30 <p>WebRTC calls using TURN configured in rtp.conf (turnaddr,
31 turnusername, turnpassword) will now correctly complete DTLS/SRTP
32 negotiation. Previously all DTLS packets were silently dropped due to
33 the loopback re-injection address not being in the ICE active candidate
34 list.</p>
35 </li>
36 <li>
37 <h4>docs: Add "Provided-by" to doc XML and CLI output.</h4>
38 <p>The CLI help for applications, functions, manager commands and
39 manager events now shows the module that provides its functionality.</p>
40 </li>
41 <li>
42 <h4>CDR/CEL Custom Performance Improvements</h4>
43 <p>Significant performance improvements have been made to the
44 cdr_custom, cdr_sqlite3_custom, cel_custom and cel_sqlite3_custom modules.
45 See the new sample config files for those modules to see how to benefit
46 from them.</p>
47 </li>
48 <li>
49 <h4>chan_websocket: Add media direction.</h4>
50 <p>WebSocket now supports media direction, allowing for
51 unidirectional media. This is done from the perspective of the
52 application and can be set via channel origination, external media, or
53 commands sent from the application. Check out
54 https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket/ for
55 more.</p>
56 </li>
57 <li>
58 <h4>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</h4>
59 <p>The 'force_longest_waiting_caller' option now supports a 'prio' setting.
60 When set to 'prio', calls are offered by priority first, then by wait time.</p>
61 </li>
62 <li>
63 <h4>Upgrade bundled pjproject to 2.16.</h4>
64 <p>Bundled pjproject has been upgraded to 2.16. For more
65 information on what all is included in this change, check out the
66 pjproject Github page: https://github.com/pjsip/pjproject/releases</p>
67 </li>
68 <li>
69 <h4>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</h4>
70 <p>A new PJSIP_HEADER option has been added that allows
71 inheriting pjsip headers from the inbound to the outbound bridged
72 channel.
73 Example- same =&gt; n,Set(PJSIP_INHERITABLE_HEADER(add,X-custom-1)=alpha)
74 will add X-custom-1: alpha to the outbound pjsip channel INVITE
75 upon Dial.</p>
76 </li>
77 <li>
78 <h4>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</h4>
79 <p>Fixes an issue where QUEUE_RAISE_PENALTY=rN could raise a member’s penalty below QUEUE_MIN_PENALTY during member selection. This could allow members intended to be excluded to be selected. The queue now consistently respects the minimum penalty when raising penalties, aligning member selection behavior with queue empty checks and documented rN semantics.</p>
80 </li>
81 </ul>
82 <h3>Upgrade Notes:</h3>
83 <h3>Developer Notes:</h3>
84 <h3>Commit Authors:</h3>
85 <ul>
86 <li>Alexei Gradinari: (1)</li>
87 <li>Alexis Hadjisotiriou: (3)</li>
88 <li>Arcadiy Ivanov: (1)</li>
89 <li>Ben Ford: (2)</li>
90 <li>George Joseph: (10)</li>
91 <li>Jasper Hafkenscheid: (1)</li>
92 <li>Joshua C. Colp: (2)</li>
93 <li>Julian C. Dunn: (1)</li>
94 <li>Michal Hajek: (1)</li>
95 <li>Mike Bradeen: (5)</li>
96 <li>Naveen Albert: (7)</li>
97 <li>Prashant Srivastav: (1)</li>
98 <li>Robert Wilson: (1)</li>
99 <li>Sean Bright: (2)</li>
100 <li>Sven Kube: (1)</li>
101 <li>Talha Asghar: (1)</li>
102 <li>Tinet-mucw: (2)</li>
103 <li>hishamway: (1)</li>
104 <li>nappsoft: (1)</li>
105 <li>phoneben: (4)</li>
106 <li>serfreeman1337: (2)</li>
107 </ul>
108 <h2>Issue and Commit Detail:</h2>
109 <h3>Closed Issues:</h3>
110 <ul>
111 <li>449: [bug]: PJSIP confuses media address after INVITE requiring authentication</li>
112 <li>566: [bug]: core: SIGSEGV on DTMF when no timing modules loaded</li>
113 <li>1356: [bug]: MESSAGE requests should not contain a Contact header</li>
114 <li>1524: [bug]: PJSIP if sdp_session is blank the initial INVITE doesn't attach an SDP offer, worked in chan_sip</li>
115 <li>1611: [bug]: asterisk deadlocked on start sometimes</li>
116 <li>1612: [improvement]: pjsip: Upgrade bundled version to pjproject 2.16</li>
117 <li>1637: [improvement]: force_longest_waiting_caller should also consider caller priority</li>
118 <li>1641: [bug]: res_pjsip_config_wizard: Endpoints fail to update when Named ACLs change after reload</li>
119 <li>1651: [bug]: Asterisk crashes with munmap_chunk() when using sorcery realtime for PJSIP registration objects</li>
120 <li>1657: [bug]: Wrong dtmf payload is used when inbound invite contains 8K and 16K, and outgoing leg is using G722 and SRTP</li>
121 <li>1670: [new-feature]: Add new option to PJSIP_HEADER to pass headers from the inbound to outbound channel.</li>
122 <li>1691: [bug]: force_longest_waiting_caller stops offering calls if a call joins at the first position</li>
123 <li>1703: [bug]: res_pjsip_pubsub: ao2 reference leak of subscription tree in ast_sip_subscription</li>
124 <li>1707: [bug]: chan_iax2: Crash when processing video frames with negative length</li>
125 <li>1716: [bug]: Ghost call when UAC didn't respond with 487 for a cancel request from server even after original call hangup.</li>
126 <li>1724: [improvement]: say.c - added language support for pashto and dari</li>
127 <li>1730: [bug]: CPP channel storage get_by_name_prefix does not check prefix match</li>
128 <li>1755: [bug]: app_dial, utils.h: Compilation failure with -Wold-style-declaration and -Wdiscarded-qualifiers</li>
129 <li>1781: [bug]: More discarded-qualifiers errors with gcc 15.2.1</li>
130 <li>1783: [bug]: Several unused-but-set-variable warnings with gcc 16</li>
131 <li>1785: [bug]: chan_websocket doesn’t work with genericplc and transcoding</li>
132 <li>1786: [bug]: chan_dahdi: A few more discarded-qualifiers errors not caught previously</li>
133 <li>1795: [bug]: DTLS packets dropped when TURN configured in rtp.conf due to loopback re-injection occurring before ICE candidate source check</li>
134 <li>1797: [bug]: Potential logic issue in translated frame write loop (main/file.c)</li>
135 <li>1802: [improvement]: app_dial: Channel name should be included in warnings during wait_for_answer</li>
136 <li>1804: [new-feature]: dsp.c: Add support for R2 signaling</li>
137 <li>1814: [bug]: A pjsip transport with an invalid config can cause issues with other transports</li>
138 <li>1816: [bug]: ARI: RTPAUDIO channel vars aren't set if call hung up by ARI.</li>
139 <li>1819: [bug]: When a 302 is received from a UAS, the cause and tech_cause codes set on the channel are incorrect.</li>
140 <li>1831: [bug]:raise_exception() and EXCEPTION() read use channel datastores without holding ast_channel_lock</li>
141 <li>1833: [bug]: Address security vulnerabilities in pjproject</li>
142 <li>1844: [bug]: cdrel_custom isn't respecting the default time format for CEL records</li>
143 <li>1845: [bug]:res_cdrel_custom produces wrong float timestamps</li>
144 <li>1852: [bug]: res_cdrel_custom: connection to the sqlite3 database closes from time to time</li>
145 </ul>
146 <h3>Commits By Author:</h3>
147 <ul>
148 <li>
149 <h4>Alexei Gradinari (1):</h4>
150 </li>
151 <li>
152 <p>res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription</p>
153 </li>
154 <li>
155 <h4>Alexis Hadjisotiriou (3):</h4>
156 </li>
157 <li>channel: Prevent crash during DTMF emulation when no timing module is loaded</li>
158 <li>res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428</li>
159 <li>
160 <p>pjsip_configuration: Ensure s= and o= lines in SDP are never empty</p>
161 </li>
162 <li>
163 <h4>Arcadiy Ivanov (1):</h4>
164 </li>
165 <li>
166 <p>res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason.</p>
167 </li>
168 <li>
169 <h4>Ben Ford (2):</h4>
170 </li>
171 <li>chan_websocket_doc.xml: Add d(media_direction) option.</li>
172 <li>
173 <p>chan_websocket: Add media direction.</p>
174 </li>
175 <li>
176 <h4>George Joseph (10):</h4>
177 </li>
178 <li>res_cdrel_custom: Resolve several formatting issues.</li>
179 <li>xmldoc.c: Fix memory leaks in handling of provided_by.</li>
180 <li>SECURITY.md: Update with additional instructions.</li>
181 <li>chan_pjsip: Set correct cause codes for non-2XX responses.</li>
182 <li>rtp: Set RTPAUDIOQOS variables when ast_softhangup is called.</li>
183 <li>res_pjsip: Remove temp transport state when a transport fails to load.</li>
184 <li>docs: Add "Provided-by" to doc XML and CLI output.</li>
185 <li>CDR/CEL Custom Performance Improvements</li>
186 <li>chan_websocket: Remove silence generation and frame padding.</li>
187 <li>
188 <p>app_amd: Remove errant space in documentation for totalAnalysisTime.</p>
189 </li>
190 <li>
191 <h4>Jasper Hafkenscheid (1):</h4>
192 </li>
193 <li>
194 <p>channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match</p>
195 </li>
196 <li>
197 <h4>Joshua C. Colp (2):</h4>
198 </li>
199 <li>build: Fix GCC discarded-qualifiers const errors.</li>
200 <li>
201 <p>endpoints: Allow access to latest snapshot directly.</p>
202 </li>
203 <li>
204 <h4>Julian C. Dunn (1):</h4>
205 </li>
206 <li>
207 <p>astconfigparser.py: Fix regex pattern error by properly escaping string</p>
208 </li>
209 <li>
210 <h4>Michal Hajek (1):</h4>
211 </li>
212 <li>
213 <p>res_pjsip_config_wizard: Force reload on Named ACL change events</p>
214 </li>
215 <li>
216 <h4>Mike Bradeen (5):</h4>
217 </li>
218 <li>res_pjsip: Address pjproject security vulnerabilities</li>
219 <li>acl: Add ACL support to http and ari</li>
220 <li>res_rtp_asterisk: use correct sample rate lookup to account for g722</li>
221 <li>Upgrade bundled pjproject to 2.16.</li>
222 <li>
223 <p>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</p>
224 </li>
225 <li>
226 <h4>Naveen Albert (7):</h4>
227 </li>
228 <li>dsp.c: Add support for detecting R2 signaling tones.</li>
229 <li>app_dial: Include channel name in warnings during wait_for_answer.</li>
230 <li>chan_dahdi: Fix discarded-qualifiers errors.</li>
231 <li>build: Fix unused-but-set-variable warnings with gcc 16.</li>
232 <li>build: Fix another GCC discarded-qualifiers const error.</li>
233 <li>chan_iax2: Fix crash due to negative length frame lengths.</li>
234 <li>
235 <p>app_dial, utils.h: Avoid old style declaration and discarded qualifier.</p>
236 </li>
237 <li>
238 <h4>Prashant Srivastav (1):</h4>
239 </li>
240 <li>
241 <p>fix: Add macOS (Darwin) compatibility for building Asterisk</p>
242 </li>
243 <li>
244 <h4>Robert Wilson (1):</h4>
245 </li>
246 <li>
247 <p>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</p>
248 </li>
249 <li>
250 <h4>Sean Bright (2):</h4>
251 </li>
252 <li>resource_channels.c: Fix validation response for externalMedia with AudioSockets</li>
253 <li>
254 <p>res_pjsip_outbound_registration.c: Prevent crash if load_module() fails</p>
255 </li>
256 <li>
257 <h4>Sven Kube (1):</h4>
258 </li>
259 <li>
260 <p>res_audiosocket: Fix header read loop to use correct buffer offset</p>
261 </li>
262 <li>
263 <h4>Talha Asghar (1):</h4>
264 </li>
265 <li>
266 <p>say.c: added language support for pashto and dari</p>
267 </li>
268 <li>
269 <h4>Tinet-mucw (2):</h4>
270 </li>
271 <li>pbx: Hold channel lock for exception datastore access</li>
272 <li>
273 <p>main/file: fix translated-frame write loop to use current frame</p>
274 </li>
275 <li>
276 <h4>hishamway (1):</h4>
277 </li>
278 <li>
279 <p>res_pjsip_session.c: Prevent INVITE failover when session is cancelled</p>
280 </li>
281 <li>
282 <h4>nappsoft (1):</h4>
283 </li>
284 <li>
285 <p>res_cdrel_custom: do not free config when no new config was loaded</p>
286 </li>
287 <li>
288 <h4>phoneben (4):</h4>
289 </li>
290 <li>manager.c : Fix CLI event display</li>
291 <li>app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics</li>
292 <li>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load</li>
293 <li>
294 <p>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</p>
295 </li>
296 <li>
297 <h4>serfreeman1337 (2):</h4>
298 </li>
299 <li>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</li>
300 <li>app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller.</li>
301 </ul>
302 <h3>Commit List:</h3>
303 <ul>
304 <li>res_cdrel_custom: do not free config when no new config was loaded</li>
305 <li>res_cdrel_custom: Resolve several formatting issues.</li>
306 <li>res_pjsip: Address pjproject security vulnerabilities</li>
307 <li>pbx: Hold channel lock for exception datastore access</li>
308 <li>xmldoc.c: Fix memory leaks in handling of provided_by.</li>
309 <li>SECURITY.md: Update with additional instructions.</li>
310 <li>res_audiosocket: Fix header read loop to use correct buffer offset</li>
311 <li>manager.c : Fix CLI event display</li>
312 <li>chan_pjsip: Set correct cause codes for non-2XX responses.</li>
313 <li>res_pjsip_config_wizard: Force reload on Named ACL change events</li>
314 <li>rtp: Set RTPAUDIOQOS variables when ast_softhangup is called.</li>
315 <li>channel: Prevent crash during DTMF emulation when no timing module is loaded</li>
316 <li>res_pjsip: Remove temp transport state when a transport fails to load.</li>
317 <li>res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428</li>
318 <li>acl: Add ACL support to http and ari</li>
319 <li>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</li>
320 <li>dsp.c: Add support for detecting R2 signaling tones.</li>
321 <li>app_dial: Include channel name in warnings during wait_for_answer.</li>
322 <li>main/file: fix translated-frame write loop to use current frame</li>
323 <li>docs: Add "Provided-by" to doc XML and CLI output.</li>
324 <li>chan_websocket_doc.xml: Add d(media_direction) option.</li>
325 <li>resource_channels.c: Fix validation response for externalMedia with AudioSockets</li>
326 <li>CDR/CEL Custom Performance Improvements</li>
327 <li>chan_websocket: Remove silence generation and frame padding.</li>
328 <li>chan_websocket: Add media direction.</li>
329 <li>fix: Add macOS (Darwin) compatibility for building Asterisk</li>
330 <li>astconfigparser.py: Fix regex pattern error by properly escaping string</li>
331 <li>res_rtp_asterisk: use correct sample rate lookup to account for g722</li>
332 <li>res_pjsip_outbound_registration.c: Prevent crash if load_module() fails</li>
333 <li>pjsip_configuration: Ensure s= and o= lines in SDP are never empty</li>
334 <li>res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason.</li>
335 <li>chan_dahdi: Fix discarded-qualifiers errors.</li>
336 <li>build: Fix unused-but-set-variable warnings with gcc 16.</li>
337 <li>build: Fix another GCC discarded-qualifiers const error.</li>
338 <li>chan_iax2: Fix crash due to negative length frame lengths.</li>
339 <li>build: Fix GCC discarded-qualifiers const errors.</li>
340 <li>endpoints: Allow access to latest snapshot directly.</li>
341 <li>app_dial, utils.h: Avoid old style declaration and discarded qualifier.</li>
342 <li>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</li>
343 <li>Upgrade bundled pjproject to 2.16.</li>
344 <li>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</li>
345 <li>app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics</li>
346 <li>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load</li>
347 <li>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</li>
348 <li>app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller.</li>
349 <li>channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match</li>
350 <li>app_amd: Remove errant space in documentation for totalAnalysisTime.</li>
351 <li>say.c: added language support for pashto and dari</li>
352 <li>res_pjsip_session.c: Prevent INVITE failover when session is cancelled</li>
353 <li>res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription</li>
354 </ul>
355 <h3>Commit Details:</h3>
356 <h4>res_cdrel_custom: do not free config when no new config was loaded</h4>
357 <p>Author: nappsoft
358 Date: 2026-04-02</p>
359 <p>When the res_cdrel_custom modules is reloaded and the config has not been changed asterisk should not free the old config. Otherwise the connection to the database will be closed and no new connection will be opened.</p>
360 <p>Resolves: #1852</p>
361 <h4>res_cdrel_custom: Resolve several formatting issues.</h4>
362 <p>Author: George Joseph
363 Date: 2026-03-31</p>
364 <p>Several issues are resolved:</p>
365 <ul>
366 <li>
367 <p>Internally, floats were used for timestamp values but this could result
368 in wrapping so they've been changed to doubles.</p>
369 </li>
370 <li>
371 <p>Historically, the default CEL eventtime format is <code>&lt;seconds&gt;.&lt;microseconds&gt;</code>
372 with <code>&lt;microseconds&gt;</code> always being 6 digits. This should have continued to be
373 the case but res_cdrel_custom wasn't checking the <code>dateformat</code> setting in
374 cel.conf and was defaulting to <code>%F %T</code>. res_cdrel_custom now gets the default
375 date format from cel.conf, which will be whatever the <code>dateformat</code> parameter
376 is set to or <code>&lt;seconds&gt;.&lt;microseconds&gt;</code> if not set.</p>
377 </li>
378 <li>
379 <p>The timeval field formatter for both CDR and CEL wasn't handling custom
380 strftime format strings correctly. This is now fixed so you should be able
381 to specifiy custom strftime format strings for the CEL <code>eventtime</code> and CDR
382 <code>start</code>, <code>answer</code> and <code>end</code> fields. For example: <code>eventtime(%FT%T%z)</code>.</p>
383 </li>
384 </ul>
385 <p>Resolves: #1844
386 Resolves: #1845</p>
387 <h4>res_pjsip: Address pjproject security vulnerabilities</h4>
388 <p>Author: Mike Bradeen
389 Date: 2026-03-23</p>
390 <p>Address the following pjproject security vulnerabilities</p>
391 <p><a href="https://github.com/pjsip/pjproject/security/advisories/GHSA-j29p-pvh2-pvqp">GHSA-j29p-pvh2-pvqp - Buffer overflow in ICE with long username</a>
392 <a href="https://github.com/pjsip/pjproject/security/advisories/GHSA-8fj4-fv9f-hjpc">GHSA-8fj4-fv9f-hjpc - Heap use-after-free in PJSIP presense subscription termination header</a>
393 <a href="https://github.com/pjsip/pjproject/security/advisories/GHSA-g88q-c2hm-q7p7">GHSA-g88q-c2hm-q7p7 - ICE session use-after-free race conditions</a>
394 <a href="https://github.com/pjsip/pjproject/security/advisories/GHSA-x5pq-qrp4-fmrj">GHSA-x5pq-qrp4-fmrj - Out-of-bounds read in SIP multipart parsing</a></p>
395 <p>Resolves: #1833</p>
396 <h4>pbx: Hold channel lock for exception datastore access</h4>
397 <p>Author: Tinet-mucw
398 Date: 2026-03-20</p>
399 <p>ast_channel_datastore_find() and ast_channel_datastore_add() must only be
400 called while the channel is locked (see channel.h). raise_exception() and the
401 EXCEPTION dialplan function read path accessed the exception datastore without
402 holding ast_channel_lock, which could corrupt the per-channel datastore list
403 under concurrency and lead to crashes during teardown (e.g. double free in
404 ast_datastore_free).</p>
405 <p>Resolves: #1831</p>
406 <h4>xmldoc.c: Fix memory leaks in handling of provided_by.</h4>
407 <p>Author: George Joseph
408 Date: 2026-03-17</p>
409 <p>Added a few calls to ast_xml_free_attr() to squash memory leaks when handling
410 "provided_by".</p>
411 <h4>SECURITY.md: Update with additional instructions.</h4>
412 <p>Author: George Joseph
413 Date: 2026-03-19</p>
414 <p>Also added line breaks for people reading this file directly
415 from the code base.</p>
416 <h4>res_audiosocket: Fix header read loop to use correct buffer offset</h4>
417 <p>Author: Sven Kube
418 Date: 2026-03-17</p>
419 <p>The PR #1522 introduced the header read loop for audiosocket packets
420 which does not handle partial header reads correctly. This commit
421 adds the missing buffer offsets.</p>
422 <h4>manager.c : Fix CLI event display</h4>
423 <p>Author: phoneben
424 Date: 2026-03-16</p>
425 <p>manager.c: Fix CLI event display</p>
426 <ul>
427 <li><code>manager show events</code>: fix event names being truncated at 20 characters, widen column to 28 to accommodate the longest registered event name</li>
428 <li><code>manager show events</code>: skip duplicate entries caused by multiple modules registering the same event name, list is already sorted so adjacent name comparison is sufficient</li>
429 </ul>
430 <h4>chan_pjsip: Set correct cause codes for non-2XX responses.</h4>
431 <p>Author: George Joseph
432 Date: 2026-03-10</p>
433 <p>Redirects initiated by 302 response codes weren't handled correctly
434 when setting the hangup cause code and tech cause code on the responding
435 channel. They're now set to 23 (REDIRECTED_TO_NEW_DESTINATION) and
436 302 (Moved permanently). Other non-2XX response codes also had issues.</p>
437 <p>A new API ast_channel_dialed_causes_iterator() was added to retrieve
438 the hangup cause codes for a channel.</p>
439 <p>chan_pjsip_session_end() in chan_pjsip has been refactored to set the
440 correct cause codes on a channel based on the cause codes added by
441 chan_pjsip_incoming_response_update_cause(). Copious amounts of
442 debugging and comments were also added.</p>
443 <p>Resolves: #1819</p>
444 <h4>res_pjsip_config_wizard: Force reload on Named ACL change events</h4>
445 <p>Author: Michal Hajek
446 Date: 2025-12-10</p>
447 <p>Currently, endpoints created via the PJSIP Config Wizard do not update
448 their ACL rules if the underlying Named ACL (in acl.conf) changes.
449 This occurs because the wizard relies on file timestamp and content
450 caching of pjsip_wizard.conf, which remains unchanged during an external
451 ACL update. As a result, endpoints retain stale ACL rules even after
452 a reload.</p>
453 <p>This patch updates res_pjsip_config_wizard to subscribe to the
454 ast_named_acl_change_type Stasis event. A local generation counter is
455 incremented whenever an ACL change event is received.</p>
456 <p>During a reload, the wizard compares the current local generation against
457 the generation stored in the wizard object. If a change is detected:
458 1. The file cache optimization (CONFIG_FLAG_FILEUNCHANGED) is bypassed.
459 2. Wizard objects utilizing 'acl' or 'contact_acl' are forced to update,
460 ensuring they pick up the new IP rules.</p>
461 <p>Signed-off-by: Michal Hajek [email protected]</p>
462 <p>Fixes: #1641</p>
463 <h4>rtp: Set RTPAUDIOQOS variables when ast_softhangup is called.</h4>
464 <p>Author: George Joseph
465 Date: 2026-03-06</p>
466 <p>If a channel in Stasis/ARI is hung up by the channel driver, the RTPAUDIOQOS
467 variables are set before the channel leaves Stasis and are therefore
468 available to the ARI app via ChannelVarset events. If the channel is hung up
469 by ARI however, the channel leaves Stasis before the RTPAUDIOQOS variables
470 are set so the app may not get the ChannelVarset events.</p>
471 <p>We now set the RTPAUDIOQOS variables when ast_softhangup() is called as well
472 as when the channel driver hangs up a channel. Since ARI hangups call
473 ast_softhangup(), the variables will be set before the channel leaves Stasis
474 and the app should get the ChannelVarset events.
475 ast_rtp_instance_set_stats_vars(), which actually sets the variables, now
476 checks to see if the variables are already set before attempting to set them.
477 This prevents double messages from being generated.</p>
478 <p>Resolves: #1816</p>
479 <h4>channel: Prevent crash during DTMF emulation when no timing module is loaded</h4>
480 <p>Author: Alexis Hadjisotiriou
481 Date: 2026-02-26</p>
482 <p>Description:
483 When Asterisk is running without a timing module, attempting to process DTMF
484 triggers a segmentation fault. This occurs because the system
485 attempts to access a null timing file descriptor when setting up the
486 DTMF emulation timer.</p>
487 <p>This fix ensures that the system checks for a valid timing source before
488 attempting to start the DTMF emulation timer. If no timing module is
489 present, it logs a warning and skips the emulation instead of crashing
490 the process.</p>
491 <p>Changes:
492 - Modified main/channel.c to add a safety check within the __ast_read function.
493 - Implemented a graceful return path when no timing source is available
494 - Added a LOG_WARNING to inform the administrator that DTMF emulation
495 was skipped due to missing timing modules.</p>
496 <p>Testing:
497 - Disabled all timing_ modules in modules.conf and confirmed with
498 'timing test'.
499 - Reproduced the crash by modifying the dialplan with:
500 exten =&gt; 707,1,NoOp(Starting DTMF - No Timing Mode)
501 same =&gt; n,Answer()
502 same =&gt; n,Background(demo-congrats)
503 same =&gt; n,WaitExten(10)
504 same =&gt; n,Hangup()
505 And calling 707 followed by 1
506 - Verified that with the fix applied, the system logs "No timing module
507 loaded; skipping DTMF timer" and continues dialplan
508 execution without crashing.
509 - Confirmed stability during concurrent media sessions and DTMF input.</p>
510 <p>Fixes: #566</p>
511 <h4>res_pjsip: Remove temp transport state when a transport fails to load.</h4>
512 <p>Author: George Joseph
513 Date: 2026-03-06</p>
514 <p>If a pjsip transport (A) fails to load, its temporary state gets left behind
515 causing the next transport to load (B) to pick up some of its parameters,
516 including its name. This can cause B to have the correct name (B) in its
517 transport object but the wrong name (A) in its internal state object. When a
518 transport state is searched for later on, transport state B is returned but a
519 retrieval of the actual transport object will fail because B's transport
520 state id is actually "A" and transport "A" doesn't exist because it failed
521 to load.</p>
522 <p>remove_temporary_state() is now being called in all error paths in
523 config_transport.c functions that call find_or_create_temporary_state().</p>
524 <p>A bit of extra debugging was also added to res_pjsip_nat.c.</p>
525 <p>Resolves: #1814</p>
526 <h4>res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428</h4>
527 <p>Author: Alexis Hadjisotiriou
528 Date: 2026-01-19</p>
529 <p>According to RFC 3428 (Section 5), a Contact header is not required in a
530 MESSAGE request unless the sender wants to establish a session. This
531 patch ensures that the Contact header is removed from out-of-dialog
532 MESSAGE requests within res_pjsip_messaging.c.</p>
533 <p>Fixes: #1356</p>
534 <h4>acl: Add ACL support to http and ari</h4>
535 <p>Author: Mike Bradeen
536 Date: 2026-02-27</p>
537 <p>Add uri prefix based acl support to the built in http server.
538 This allows an acl to be added per uri prefix (ie '/metrics'
539 or '/ws') to restrict access.</p>
540 <p>Add user based acl support for ARI. This adds new acl options
541 to the user section of ari.conf to restrict access on a per
542 user basis.</p>
543 <p>resolves: #1799</p>
544 <p>UserNote: A new section, type=restriction has been added to http.conf
545 to allow an uri prefix based acl to be configured. See
546 http.conf.sample for examples and more information.
547 The user section of ari.conf can now contain an acl configuration
548 to restrict users access. See ari.conf.sample for examples and more
549 information</p>
550 <h4>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</h4>
551 <p>Author: Robert Wilson
552 Date: 2026-03-03</p>
553 <p>When TURN is configured in rtp.conf, pjproject re-injects TURN packets
554 via 127.0.0.1 (the loopback address). The DTLS packet handler checks the
555 source address against the ICE active candidate list before the loopback
556 address substitution runs, causing the packet to be silently dropped as
557 the source 127.0.0.1 is not in the candidate list.</p>
558 <p>Fix by performing the loopback address substitution before the ICE
559 candidate source check in the DTLS path, mirroring the logic already
560 present in the non-DTLS RTP path.</p>
561 <p>Fixes: #1795</p>
562 <p>UserNote: WebRTC calls using TURN configured in rtp.conf (turnaddr,
563 turnusername, turnpassword) will now correctly complete DTLS/SRTP
564 negotiation. Previously all DTLS packets were silently dropped due to
565 the loopback re-injection address not being in the ICE active candidate
566 list.</p>
567 <h4>dsp.c: Add support for detecting R2 signaling tones.</h4>
568 <p>Author: Naveen Albert
569 Date: 2026-03-01</p>
570 <p>Extend the existing DTMF/MF tone detection support by adding support
571 for R2 tones, another variant of MF (R1) signaling. Both forward
572 and backward signaling are supported.</p>
573 <p>Resolves: #1804</p>
574 <h4>app_dial: Include channel name in warnings during wait_for_answer.</h4>
575 <p>Author: Naveen Albert
576 Date: 2026-02-28</p>
577 <p>Include the channel name in warnings during wait_for_answer to make
578 them more useful and allow problematic channels to be easily identified.</p>
579 <p>Resolves: #1802</p>
580 <h4>main/file: fix translated-frame write loop to use current frame</h4>
581 <p>Author: Tinet-mucw
582 Date: 2026-02-27</p>
583 <p>write each translated frame from translator output.</p>
584 <p>Resolves: #1797</p>
585 <h4>docs: Add "Provided-by" to doc XML and CLI output.</h4>
586 <p>Author: George Joseph
587 Date: 2026-02-24</p>
588 <p>For application, function, manager, managerEvent, managerEventInstance
589 and info XML documentation nodes, the make_xml_documentation script will
590 add a "module" attribute if not already present. For XML in separate
591 "*_doc.xml" files, the script figures out the correct module name. For
592 documentation in the "main" directory, the module name is set to "builtin".</p>
593 <p>The CLI handlers for "core show application", "core show function",
594 "manager show command" and "manager show event", have been updated to
595 show the following after the Synopsis...</p>
596 <p><code>[Provided By]
597 &lt;modulename&gt;</code></p>
598 <p>For modules that provide additional "info" elements (like the technologies
599 do for Dial), the providing module has also been added.</p>
600 <p><code>Technology: WebSocket Provided by: chan_websocket
601 WebSocket Dial Strings:
602 ...</code></p>
603 <p>UserNote: The CLI help for applications, functions, manager commands and
604 manager events now shows the module that provides its functionality.</p>
605 <h4>chan_websocket_doc.xml: Add d(media_direction) option.</h4>
606 <p>Author: Ben Ford
607 Date: 2026-02-27</p>
608 <p>Adds documentation for the 'd' option to set media direction for
609 chan_websocket.</p>
610 <h4>resource_channels.c: Fix validation response for externalMedia with AudioSockets</h4>
611 <p>Author: Sean Bright
612 Date: 2026-03-01</p>
613 <p>The AudioSocket encapsulation for externalMedia requires a UUID to be
614 provided in the <code>data</code> parameter of the ARI call. If not provided, we
615 should return a 400 Bad Request instead of a 500 Internal Server
616 Error.</p>
617 <p>Pointed out by AVT in the community forum[1].</p>
618 <p>1: https://community.asterisk.org/t/externalmedia-audiosocket-on-asterisk-22/112149</p>
619 <h4>CDR/CEL Custom Performance Improvements</h4>
620 <p>Author: George Joseph
621 Date: 2026-01-27</p>
622 <p>There is a LOT of work in this commit but the TL;DR is that it takes
623 CEL processing from using 38% of the CPU instructions used by a call,
624 which is more than that used by the call processing itself, down to less
625 than 10% of the instructions.</p>
626 <p>So here's the deal... cdr_custom, cdr_sqlite3_custom, cel_custom
627 and cel_sqlite3_custom all shared one ugly trait...they all used
628 ast_str_substitute_variables() or pbx_substitute_variables_helper()
629 to resolve the dialplan functions used in their config files. Not only
630 are they both extraordinarily expensive, they both require a dummy
631 channel to be allocated and destroyed for each record written. For CDRs,
632 that's not too bad because we only write one CDR per call. For CELs however,
633 it's a disaster.</p>
634 <p>As far as source code goes, the modules basically all did the same thing.
635 Unfortunately, they did it badly. The config files simply contained long
636 opaque strings which were intepreted by ast_str_substitute_variables() or
637 pbx_substitute_variables_helper(), the very functions that ate all the
638 instructions. This meant introducing a new "advanced" config format much
639 like the advanced manager event filtering added to manager.conf in 2024.
640 Fortunately however, if the legacy config was recognizable, we were able to
641 parse it as an advanced config and gain the benefit. If not, then it
642 goes the legacy, and very expensive, route.</p>
643 <p>Given the commonality among the modules, instead of making the same
644 improvements to 4 modules then trying to maintain them over time, a single
645 module "res_cdrel_custom" was created that contains all of the common code.
646 A few bonuses became possible in the process...
647 * The cdr_custom and cel_custom modules now support JSON formatted output.
648 * The cdr_sqlite_custom and cel_sqlite3_custom modules no longer have
649 to share an Sqlite3 database.</p>
650 <p>Summary of changes:</p>
651 <p>A new module "res/res_cdrel_custom.c" has been created and the existing
652 cdr_custom, cdr_sqlite3_custom, cel_custom and cel_sqlite3_custom modules
653 are now just stubs that call the code in res_cdrel_custom.</p>
654 <p>res_cdrel_custom contains:
655 * A common configuration facility.
656 * Getters for both CDR and CEL fields that share the same abstraction.
657 * Formatters for all data types found in the ast_cdr and ast_event
658 structures that share the same abstraction.
659 * Common writers for the text file and database backends that, you guessed it,
660 share the same abstraction.</p>
661 <p>The result is that while there is certainly a net increase in the number of
662 lines in the code base, most of it is in the configuration handling at
663 load-time. The run-time instruction path length is now significanty shorter.</p>
664 <p>```
665 Scenario Instructions Latency
666 =====================================================
667 CEL pre changes 38.49% 37.51%
668 CEL Advanced 9.68% 6.06%
669 CEL Legacy (auto-conv to adv) 9.95% 6.13%</p>
670 <p>CEL Sqlite3 pre changes 39.41% 39.90%
671 CEL Sqlite3 Advanced 25.68% 24.24%
672 CEL Sqlite3 Legacy (auto conv) 25.88% 24.53%</p>
673 <p>CDR pre changes 4.79% 2.95%
674 CDR Advanced 0.79% 0.47%
675 CDR Legacy (auto conv to adv) 0.86% 0.51%</p>
676 <p>CDR Sqlite3 pre changes 4.47% 2.89%
677 CEL Sqlite3 Advanced 2.16% 1.29%
678 CEL Sqlite3 Legacy (auto conv) 2.19% 1.30%
679 ```</p>
680 <p>Notes:
681 * We only write one CDR per call but every little bit helps.
682 * Sqlite3 still takes a fair amount of resources but the new config
683 makes a decent improvement.
684 * Legacy configs that we can't auto convert will still take the
685 "pre changes" path.</p>
686 <p>If you're interested in more implementation details, see the comments
687 at the top of the res_cdrel_custom.c file.</p>
688 <p>One minor fix to CEL is also included...Although TenantID was added to the
689 ast_event structure, it was always rendered as an empty string. It's now
690 properly rendered.</p>
691 <p>UserNote: Significant performance improvements have been made to the
692 cdr_custom, cdr_sqlite3_custom, cel_custom and cel_sqlite3_custom modules.
693 See the new sample config files for those modules to see how to benefit
694 from them.</p>
695 <h4>chan_websocket: Remove silence generation and frame padding.</h4>
696 <p>Author: George Joseph
697 Date: 2026-02-19</p>
698 <p>The original chan_websocket implementation attempted to improve the
699 call quality experience by generating silence frames to send to the core
700 when no media was being read from the websocket and padding frames with
701 silence when short frames were read from the websocket. Both of these
702 required switching the formats on the channel to slin for short periods
703 of time then switching them back to whatever format the websocket channel
704 was configured for. Unfortunately, the format switching caused issues
705 when transcoding was required and the transcode_via_sln option was enabled
706 in asterisk.conf (which it is by default). The switch would cause the
707 transcoding path to be incorrectly set resulting in malformed RTP packets
708 being sent back out to the caller on the other end which the caller heard
709 as loud noise.</p>
710 <p>After looking through the code and performing multiple listening tests,
711 the best solution to this problem was to just remove the code that was
712 attempting to generate the silence. There was no decrease in call quality
713 whatsoever and the code is a bit simpler. None of the other channel drivers
714 nor res_rtp_asterisk generate silence frames or pad short frames which
715 backed up decision.</p>
716 <p>Resolves: #1785</p>
717 <h4>chan_websocket: Add media direction.</h4>
718 <p>Author: Ben Ford
719 Date: 2026-02-10</p>
720 <p>Currently, WebSockets both accept and send media without the option to
721 disable one or the other. This commit adds the ability to set the media
722 direction for a WebSocket, making it unidirectional or bidirectional
723 (the default). Direction is done from the point of view of the
724 application, NOT Asterisk. The allowed values are 'both', 'in', and
725 'out'. If media direction is 'both' (the default), Asterisk accepts and
726 sends media to the application. If it is 'in', Asterisk will drop any
727 media received from the application. If it is 'out', Asterisk will not
728 write any media frames to the application.</p>
729 <p>UserNote: WebSocket now supports media direction, allowing for
730 unidirectional media. This is done from the perspective of the
731 application and can be set via channel origination, external media, or
732 commands sent from the application. Check out
733 https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket/ for
734 more.</p>
735 <h4>fix: Add macOS (Darwin) compatibility for building Asterisk</h4>
736 <p>Author: Prashant Srivastav
737 Date: 2026-02-05</p>
738 <ul>
739 <li>Makefile: Skip /usr/lib/bundle1.o on modern macOS (doesn't exist)</li>
740 <li>Makefile.rules: Skip -fno-partial-inlining for clang (gcc-only flag)</li>
741 <li>include/asterisk/utils.h: Use asterisk/endian.h instead of <endian.h></li>
742 <li>main/Makefile: Add Darwin-specific pjproject linking with -force_load</li>
743 <li>main/strcompat.c: Include poll-compat.h, use ast_poll()</li>
744 <li>main/xml.c: Add ASTMM_LIBC ASTMM_IGNORE for libxml2 compatibility</li>
745 <li>res/res_pjsip/config_transport.c: Define TCP keepalive constants for macOS</li>
746 </ul>
747 <p>Tested on macOS Darwin 25.2.0 (Apple Silicon ARM64)</p>
748 <h4>astconfigparser.py: Fix regex pattern error by properly escaping string</h4>
749 <p>Author: Julian C. Dunn
750 Date: 2026-02-17</p>
751 <p>"SyntaxWarning: invalid escape sequence '\s'" occurs when using the pjsip
752 migration script because '\' is an escape character in Python. Instead,
753 use a raw string for the regex.</p>
754 <h4>res_rtp_asterisk: use correct sample rate lookup to account for g722</h4>
755 <p>Author: Mike Bradeen
756 Date: 2026-02-23</p>
757 <p>Swap out ast_rtp_get_rate for ast_format_get_sample_rate when looking
758 at the paired audio codec rate to account for g722 oddness.</p>
759 <p>Resolves: #1657</p>
760 <h4>res_pjsip_outbound_registration.c: Prevent crash if load_module() fails</h4>
761 <p>Author: Sean Bright
762 Date: 2026-02-12</p>
763 <p><code>ast_cli_unregister_multiple()</code> expects internal data members to be heap
764 allocated which happens during a successful call to
765 <code>ast_cli_register_multiple()</code>. CLI handlers defined traditionally - those whose
766 handler responds to the CLI_INIT message - take care of this automatically. But
767 when we statically provide a <code>command</code> or <code>usage</code> member, we <em>must</em> initialize
768 them with <code>ast_cli_register_multiple()</code> before attempting to destroy them.</p>
769 <p>Resolves: #1651</p>
770 <h4>pjsip_configuration: Ensure s= and o= lines in SDP are never empty</h4>
771 <p>Author: Alexis Hadjisotiriou
772 Date: 2026-01-30</p>
773 <p>According to RFC 8866 (Section 5.2), the Session Name (s=) field and
774 the username part of origin (o=) are both mandatory and cannot be
775 empty. If a session has no name, or no username part of origin, the
776 RFC recommends using a single dash (-) as a placeholder.</p>
777 <p>This fix ensures that if the session name or the username part of
778 origin length is zero , it defaults to -.</p>
779 <p>Fixes: #1524</p>
780 <h4>res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason.</h4>
781 <p>Author: Arcadiy Ivanov
782 Date: 2026-01-14</p>
783 <p>This hook may not be necessary when we do a retransmit, but when there are two
784 INVITEs, one <em>initial</em> and one with auth digest, the second INVITE contains wrong (unmodified) media address
785 due to the commented line below.
786 The NAT hook needs to run due to filters potentially reverting previously modified packets.</p>
787 <p>Fixes: #449</p>
788 <h4>chan_dahdi: Fix discarded-qualifiers errors.</h4>
789 <p>Author: Naveen Albert
790 Date: 2026-02-18</p>
791 <p>Fix discarded-qualifiers errors to compile successfully with gcc 15.2.1.</p>
792 <p>Associated changes have also been made to libss7; however, for compatibility
793 we cast const char<em> values to char</em>. In the future, these casts could be
794 removed.</p>
795 <p>Resolves: #1786</p>
796 <h4>build: Fix unused-but-set-variable warnings with gcc 16.</h4>
797 <p>Author: Naveen Albert
798 Date: 2026-02-18</p>
799 <p>Fix or remove a few variables that were being set but not actually
800 used anywhere, causing warnings with gcc 16.</p>
801 <p>Resolves: #1783</p>
802 <h4>build: Fix another GCC discarded-qualifiers const error.</h4>
803 <p>Author: Naveen Albert
804 Date: 2026-02-18</p>
805 <p>Follow on commit to 27a39cba7e6832cb30cb64edaf879f447b669628
806 to fix compilation with BETTER_BACKTRACES with gcc 15.2.1.</p>
807 <p>Resolves: #1781</p>
808 <h4>chan_iax2: Fix crash due to negative length frame lengths.</h4>
809 <p>Author: Naveen Albert
810 Date: 2026-01-08</p>
811 <p>chan_iax2 has several code paths where a frame's data length
812 is calculated by subtraction. On some paths, there is a check
813 for negative length. One of these paths is missing this check,
814 and on this path, it is possible for the result to be negative,
815 leading to a crash as a result of memory operations using the
816 bogus length.</p>
817 <p>Add a check to capture this off-nominal case. This will log
818 the appropriate warnings as in other cases and prevent a crash.
819 Also update the log messages to be clearer.</p>
820 <p>Resolves: #1707</p>
821 <h4>build: Fix GCC discarded-qualifiers const errors.</h4>
822 <p>Author: Joshua C. Colp
823 Date: 2026-02-12</p>
824 <p>GCC 15.2.1 pays attention to the discarding of the const
825 qualifier when strchr, strrchr, memchr, or memrchr are now
826 used. This change fixes numerous errors with this throughout
827 the tree. The fixes can be broken down into the following:</p>
828 <ol>
829 <li>The return value should be considered const.</li>
830 <li>The value passed to strchr or strrchr can be cast as it is
831 expected and allowed to be modified.</li>
832 <li>The pointer passed to strchr or strrchr is not meant to be
833 modified and so the contents must be duplicated.</li>
834 <li>It was declared const and never should have been.</li>
835 </ol>
836 <h4>endpoints: Allow access to latest snapshot directly.</h4>
837 <p>Author: Joshua C. Colp
838 Date: 2026-02-10</p>
839 <p>This change adds an API call to allow direct access to the latest
840 snapshot of an ast_endpoint. This is then used by chan_pjsip when
841 calculating device state, eliminating the need to access the cache
842 which would incur a container find and access.</p>
843 <h4>app_dial, utils.h: Avoid old style declaration and discarded qualifier.</h4>
844 <p>Author: Naveen Albert
845 Date: 2026-02-04</p>
846 <ul>
847 <li>app_dial: Use const char* for fixed strings.</li>
848 <li>utils.h: inline should come before return type.</li>
849 </ul>
850 <p>Resolves: #1755</p>
851 <h4>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</h4>
852 <p>Author: serfreeman1337
853 Date: 2026-01-29</p>
854 <p>This adds a 'prio' setting to ensure that call priority is respected across multiple queues.
855 Using 'yes' could cause high-priority callers to be skipped if a caller
856 in another queue had a longer wait time, regardless of priority.</p>
857 <p>Resolves: #1637</p>
858 <p>UserNote: The 'force_longest_waiting_caller' option now supports a 'prio' setting.
859 When set to 'prio', calls are offered by priority first, then by wait time.</p>
860 <h4>Upgrade bundled pjproject to 2.16.</h4>
861 <p>Author: Mike Bradeen
862 Date: 2026-01-27</p>
863 <p>Resolves: #1612</p>
864 <p>UserNote: Bundled pjproject has been upgraded to 2.16. For more
865 information on what all is included in this change, check out the
866 pjproject Github page: https://github.com/pjsip/pjproject/releases</p>
867 <h4>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</h4>
868 <p>Author: Mike Bradeen
869 Date: 2025-11-19</p>
870 <p>Adds a new PJSIP_INHERITABLE_HEADER dialplan function to add
871 inheritable headers from the inbound channel to an outbound
872 bridged channel. This works similarly to the existing
873 PJSIP_HEADER function, but will set the header on the bridged
874 outbound channel's INVITE upon Dial.</p>
875 <p>Inheritable headers can be updated or removed from the inbound
876 channel as well as from a pre-dial handler</p>
877 <p>Resolves: #1670</p>
878 <p>UserNote: A new PJSIP_HEADER option has been added that allows
879 inheriting pjsip headers from the inbound to the outbound bridged
880 channel.
881 Example- same =&gt; n,Set(PJSIP_INHERITABLE_HEADER(add,X-custom-1)=alpha)
882 will add X-custom-1: alpha to the outbound pjsip channel INVITE
883 upon Dial.</p>
884 <h4>app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics</h4>
885 <p>Author: phoneben
886 Date: 2026-01-18</p>
887 <p>app_queue: Set Dial-compatible timing variables</p>
888 <p>Extends Queue() to set Dial-compatible timing variables (ANSWEREDTIME, DIALEDTIME) and introduces a precise QUEUEWAIT metric calculated at agent connect time, with proper initialization to prevent stale or misleading values.</p>
889 <h4>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load</h4>
890 <p>Author: phoneben
891 Date: 2025-11-29</p>
892 <p>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load.</p>
893 <p>Deadlock occurs when res_manager_devicestate loads concurrently with
894 device state operations due to lock ordering violation:</p>
895 <p>Thread 1: Holds pool lock → needs topic lock (in stasis_forward_all)
896 Thread 2: Holds topic lock → needs pool lock (in stasis_topic_pool_get_topic)</p>
897 <p>Fix: Release pool lock before calling stasis_topic_create() and
898 stasis_forward_all(). Re-acquire only for insertion with race check.</p>
899 <p>Preserves borrowed reference semantics while breaking the deadlock cycle.</p>
900 <p>Fixes: #1611</p>
901 <h4>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</h4>
902 <p>Author: phoneben
903 Date: 2026-01-06</p>
904 <p>QUEUE_RAISE_PENALTY=rN was not respected during member selection. calc_metric() raised penalties below QUEUE_MIN_PENALTY, allowing excluded members to be selected.</p>
905 <p>This change makes calc_metric() honor raise_respect_min, keeping behavior consistent with queue empty checks and expected rN semantics</p>
906 <p>UserNote: Fixes an issue where QUEUE_RAISE_PENALTY=rN could raise a member’s penalty below QUEUE_MIN_PENALTY during member selection. This could allow members intended to be excluded to be selected. The queue now consistently respects the minimum penalty when raising penalties, aligning member selection behavior with queue empty checks and documented rN semantics.</p>
907 <h4>app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller.</h4>
908 <p>Author: serfreeman1337
909 Date: 2026-01-05</p>
910 <p>This prevents a situation where a call joining at 1st position to a queue with calls
911 leads to a state where no callers are considered the longest waiting,
912 causing queues to stop offering calls.</p>
913 <p>Resolves: #1691</p>
914 <h4>channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match</h4>
915 <p>Author: Jasper Hafkenscheid
916 Date: 2026-01-21</p>
917 <p>Lower bound filter did not ensure prefix match.</p>
918 <p>Resolves: #1730</p>
919 <h4>app_amd: Remove errant space in documentation for totalAnalysisTime.</h4>
920 <p>Author: George Joseph
921 Date: 2026-01-22</p>
922 <h4>say.c: added language support for pashto and dari</h4>
923 <p>Author: Talha Asghar
924 Date: 2026-01-22</p>
925 <p>With this new feature, users who speak these languages can now benefit from the
926 text-to-speech functionality provided by asterisk. This will make the platform
927 more accessible and useful to a wider range of users, particularly those in
928 regions where Pashto and Dari are spoken. This contribution will help to improve
929 the overall usability and inclusivity of the asterisk platform.</p>
930 <p>Fixes: #1724</p>
931 <h4>res_pjsip_session.c: Prevent INVITE failover when session is cancelled</h4>
932 <p>Author: hishamway
933 Date: 2026-01-15</p>
934 <p>When an outbound INVITE transaction times out (408) or receives a 503 error,
935 check_request_status() attempts to failover to the next available address by
936 restarting the INVITE session. However, the function did not check if the
937 inv_session was already cancelled before attempting the failover.</p>
938 <p>This caused unexpected behavior when a caller hung up during a ring group
939 scenario: after CANCEL was sent but the remote endpoint failed to respond
940 with 487 (e.g., due to network disconnection), the transaction timeout
941 would trigger a NEW outbound INVITE to the next address, even though the
942 session was already terminated.</p>
943 <p>This violates RFC 3261 Section 9.1 which states that if no final response
944 is received after CANCEL within 64*T1 seconds, the client should consider
945 the transaction cancelled and destroy it, not retry to another address.</p>
946 <p>The fix adds a check for both PJSIP_INV_STATE_DISCONNECTED and inv-&gt;cancelling
947 at the beginning of check_request_status(). This ensures that:
948 - Failover is blocked when the user explicitly cancelled the call (CANCEL sent)
949 - Failover is still allowed for legitimate timeout/503 scenarios where no
950 CANCEL was initiated (e.g., SRV failover when first server is unreachable)</p>
951 <p>Resolves: #1716</p>
952 <h4>res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription</h4>
953 <p>Author: Alexei Gradinari
954 Date: 2026-01-07</p>
955 <p>allocate_subscription() increments the ao2 reference count of the subscription tree,
956 but the reference was not consistently released during subscription destruction,
957 resulting in leaked sip_subscription_tree objects.</p>
958 <p>This patch makes destroy_subscription() responsible for releasing sub-&gt;tree,
959 removes ad-hoc cleanup in error paths,
960 and guards tree cleanup to ensure refcount symmetry and correct ownership.</p>
961 <p>Fixes: #1703</p>
962 </body></html>