mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 11:55:19 +00:00
963 lines
49 KiB
HTML
963 lines
49 KiB
HTML
<html><head><title>ChangeLog for asterisk-22.9.0</title></head><body>
|
||
<h2>Change Log for Release asterisk-22.9.0</h2>
|
||
<h3>Links:</h3>
|
||
<ul>
|
||
<li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.9.0.html">Full ChangeLog</a> </li>
|
||
<li><a href="https://github.com/asterisk/asterisk/compare/22.8.2...22.9.0">GitHub Diff</a> </li>
|
||
<li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.9.0.tar.gz">Tarball</a> </li>
|
||
<li><a href="https://downloads.asterisk.org/pub/telephony/asterisk">Downloads</a> </li>
|
||
</ul>
|
||
<h3>Summary:</h3>
|
||
<ul>
|
||
<li>Commits: 50</li>
|
||
<li>Commit Authors: 21</li>
|
||
<li>Issues Resolved: 34</li>
|
||
<li>Security Advisories Resolved: 0</li>
|
||
</ul>
|
||
<h3>User Notes:</h3>
|
||
<ul>
|
||
<li>
|
||
<h4>acl: Add ACL support to http and ari</h4>
|
||
<p>A new section, type=restriction has been added to http.conf
|
||
to allow an uri prefix based acl to be configured. See
|
||
http.conf.sample for examples and more information.
|
||
The user section of ari.conf can now contain an acl configuration
|
||
to restrict users access. See ari.conf.sample for examples and more
|
||
information</p>
|
||
</li>
|
||
<li>
|
||
<h4>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</h4>
|
||
<p>WebRTC calls using TURN configured in rtp.conf (turnaddr,
|
||
turnusername, turnpassword) will now correctly complete DTLS/SRTP
|
||
negotiation. Previously all DTLS packets were silently dropped due to
|
||
the loopback re-injection address not being in the ICE active candidate
|
||
list.</p>
|
||
</li>
|
||
<li>
|
||
<h4>docs: Add "Provided-by" to doc XML and CLI output.</h4>
|
||
<p>The CLI help for applications, functions, manager commands and
|
||
manager events now shows the module that provides its functionality.</p>
|
||
</li>
|
||
<li>
|
||
<h4>CDR/CEL Custom Performance Improvements</h4>
|
||
<p>Significant performance improvements have been made to the
|
||
cdr_custom, cdr_sqlite3_custom, cel_custom and cel_sqlite3_custom modules.
|
||
See the new sample config files for those modules to see how to benefit
|
||
from them.</p>
|
||
</li>
|
||
<li>
|
||
<h4>chan_websocket: Add media direction.</h4>
|
||
<p>WebSocket now supports media direction, allowing for
|
||
unidirectional media. This is done from the perspective of the
|
||
application and can be set via channel origination, external media, or
|
||
commands sent from the application. Check out
|
||
https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket/ for
|
||
more.</p>
|
||
</li>
|
||
<li>
|
||
<h4>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</h4>
|
||
<p>The 'force_longest_waiting_caller' option now supports a 'prio' setting.
|
||
When set to 'prio', calls are offered by priority first, then by wait time.</p>
|
||
</li>
|
||
<li>
|
||
<h4>Upgrade bundled pjproject to 2.16.</h4>
|
||
<p>Bundled pjproject has been upgraded to 2.16. For more
|
||
information on what all is included in this change, check out the
|
||
pjproject Github page: https://github.com/pjsip/pjproject/releases</p>
|
||
</li>
|
||
<li>
|
||
<h4>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</h4>
|
||
<p>A new PJSIP_HEADER option has been added that allows
|
||
inheriting pjsip headers from the inbound to the outbound bridged
|
||
channel.
|
||
Example- same => n,Set(PJSIP_INHERITABLE_HEADER(add,X-custom-1)=alpha)
|
||
will add X-custom-1: alpha to the outbound pjsip channel INVITE
|
||
upon Dial.</p>
|
||
</li>
|
||
<li>
|
||
<h4>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</h4>
|
||
<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>
|
||
</li>
|
||
</ul>
|
||
<h3>Upgrade Notes:</h3>
|
||
<h3>Developer Notes:</h3>
|
||
<h3>Commit Authors:</h3>
|
||
<ul>
|
||
<li>Alexei Gradinari: (1)</li>
|
||
<li>Alexis Hadjisotiriou: (3)</li>
|
||
<li>Arcadiy Ivanov: (1)</li>
|
||
<li>Ben Ford: (2)</li>
|
||
<li>George Joseph: (10)</li>
|
||
<li>Jasper Hafkenscheid: (1)</li>
|
||
<li>Joshua C. Colp: (2)</li>
|
||
<li>Julian C. Dunn: (1)</li>
|
||
<li>Michal Hajek: (1)</li>
|
||
<li>Mike Bradeen: (5)</li>
|
||
<li>Naveen Albert: (7)</li>
|
||
<li>Prashant Srivastav: (1)</li>
|
||
<li>Robert Wilson: (1)</li>
|
||
<li>Sean Bright: (2)</li>
|
||
<li>Sven Kube: (1)</li>
|
||
<li>Talha Asghar: (1)</li>
|
||
<li>Tinet-mucw: (2)</li>
|
||
<li>hishamway: (1)</li>
|
||
<li>nappsoft: (1)</li>
|
||
<li>phoneben: (4)</li>
|
||
<li>serfreeman1337: (2)</li>
|
||
</ul>
|
||
<h2>Issue and Commit Detail:</h2>
|
||
<h3>Closed Issues:</h3>
|
||
<ul>
|
||
<li>449: [bug]: PJSIP confuses media address after INVITE requiring authentication</li>
|
||
<li>566: [bug]: core: SIGSEGV on DTMF when no timing modules loaded</li>
|
||
<li>1356: [bug]: MESSAGE requests should not contain a Contact header</li>
|
||
<li>1524: [bug]: PJSIP if sdp_session is blank the initial INVITE doesn't attach an SDP offer, worked in chan_sip</li>
|
||
<li>1611: [bug]: asterisk deadlocked on start sometimes</li>
|
||
<li>1612: [improvement]: pjsip: Upgrade bundled version to pjproject 2.16</li>
|
||
<li>1637: [improvement]: force_longest_waiting_caller should also consider caller priority</li>
|
||
<li>1641: [bug]: res_pjsip_config_wizard: Endpoints fail to update when Named ACLs change after reload</li>
|
||
<li>1651: [bug]: Asterisk crashes with munmap_chunk() when using sorcery realtime for PJSIP registration objects</li>
|
||
<li>1657: [bug]: Wrong dtmf payload is used when inbound invite contains 8K and 16K, and outgoing leg is using G722 and SRTP</li>
|
||
<li>1670: [new-feature]: Add new option to PJSIP_HEADER to pass headers from the inbound to outbound channel.</li>
|
||
<li>1691: [bug]: force_longest_waiting_caller stops offering calls if a call joins at the first position</li>
|
||
<li>1703: [bug]: res_pjsip_pubsub: ao2 reference leak of subscription tree in ast_sip_subscription</li>
|
||
<li>1707: [bug]: chan_iax2: Crash when processing video frames with negative length</li>
|
||
<li>1716: [bug]: Ghost call when UAC didn't respond with 487 for a cancel request from server even after original call hangup.</li>
|
||
<li>1724: [improvement]: say.c - added language support for pashto and dari</li>
|
||
<li>1730: [bug]: CPP channel storage get_by_name_prefix does not check prefix match</li>
|
||
<li>1755: [bug]: app_dial, utils.h: Compilation failure with -Wold-style-declaration and -Wdiscarded-qualifiers</li>
|
||
<li>1781: [bug]: More discarded-qualifiers errors with gcc 15.2.1</li>
|
||
<li>1783: [bug]: Several unused-but-set-variable warnings with gcc 16</li>
|
||
<li>1785: [bug]: chan_websocket doesn’t work with genericplc and transcoding</li>
|
||
<li>1786: [bug]: chan_dahdi: A few more discarded-qualifiers errors not caught previously</li>
|
||
<li>1795: [bug]: DTLS packets dropped when TURN configured in rtp.conf due to loopback re-injection occurring before ICE candidate source check</li>
|
||
<li>1797: [bug]: Potential logic issue in translated frame write loop (main/file.c)</li>
|
||
<li>1802: [improvement]: app_dial: Channel name should be included in warnings during wait_for_answer</li>
|
||
<li>1804: [new-feature]: dsp.c: Add support for R2 signaling</li>
|
||
<li>1814: [bug]: A pjsip transport with an invalid config can cause issues with other transports</li>
|
||
<li>1816: [bug]: ARI: RTPAUDIO channel vars aren't set if call hung up by ARI.</li>
|
||
<li>1819: [bug]: When a 302 is received from a UAS, the cause and tech_cause codes set on the channel are incorrect.</li>
|
||
<li>1831: [bug]:raise_exception() and EXCEPTION() read use channel datastores without holding ast_channel_lock</li>
|
||
<li>1833: [bug]: Address security vulnerabilities in pjproject</li>
|
||
<li>1844: [bug]: cdrel_custom isn't respecting the default time format for CEL records</li>
|
||
<li>1845: [bug]:res_cdrel_custom produces wrong float timestamps</li>
|
||
<li>1852: [bug]: res_cdrel_custom: connection to the sqlite3 database closes from time to time</li>
|
||
</ul>
|
||
<h3>Commits By Author:</h3>
|
||
<ul>
|
||
<li>
|
||
<h4>Alexei Gradinari (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription</p>
|
||
</li>
|
||
<li>
|
||
<h4>Alexis Hadjisotiriou (3):</h4>
|
||
</li>
|
||
<li>channel: Prevent crash during DTMF emulation when no timing module is loaded</li>
|
||
<li>res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428</li>
|
||
<li>
|
||
<p>pjsip_configuration: Ensure s= and o= lines in SDP are never empty</p>
|
||
</li>
|
||
<li>
|
||
<h4>Arcadiy Ivanov (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason.</p>
|
||
</li>
|
||
<li>
|
||
<h4>Ben Ford (2):</h4>
|
||
</li>
|
||
<li>chan_websocket_doc.xml: Add d(media_direction) option.</li>
|
||
<li>
|
||
<p>chan_websocket: Add media direction.</p>
|
||
</li>
|
||
<li>
|
||
<h4>George Joseph (10):</h4>
|
||
</li>
|
||
<li>res_cdrel_custom: Resolve several formatting issues.</li>
|
||
<li>xmldoc.c: Fix memory leaks in handling of provided_by.</li>
|
||
<li>SECURITY.md: Update with additional instructions.</li>
|
||
<li>chan_pjsip: Set correct cause codes for non-2XX responses.</li>
|
||
<li>rtp: Set RTPAUDIOQOS variables when ast_softhangup is called.</li>
|
||
<li>res_pjsip: Remove temp transport state when a transport fails to load.</li>
|
||
<li>docs: Add "Provided-by" to doc XML and CLI output.</li>
|
||
<li>CDR/CEL Custom Performance Improvements</li>
|
||
<li>chan_websocket: Remove silence generation and frame padding.</li>
|
||
<li>
|
||
<p>app_amd: Remove errant space in documentation for totalAnalysisTime.</p>
|
||
</li>
|
||
<li>
|
||
<h4>Jasper Hafkenscheid (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match</p>
|
||
</li>
|
||
<li>
|
||
<h4>Joshua C. Colp (2):</h4>
|
||
</li>
|
||
<li>build: Fix GCC discarded-qualifiers const errors.</li>
|
||
<li>
|
||
<p>endpoints: Allow access to latest snapshot directly.</p>
|
||
</li>
|
||
<li>
|
||
<h4>Julian C. Dunn (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>astconfigparser.py: Fix regex pattern error by properly escaping string</p>
|
||
</li>
|
||
<li>
|
||
<h4>Michal Hajek (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_pjsip_config_wizard: Force reload on Named ACL change events</p>
|
||
</li>
|
||
<li>
|
||
<h4>Mike Bradeen (5):</h4>
|
||
</li>
|
||
<li>res_pjsip: Address pjproject security vulnerabilities</li>
|
||
<li>acl: Add ACL support to http and ari</li>
|
||
<li>res_rtp_asterisk: use correct sample rate lookup to account for g722</li>
|
||
<li>Upgrade bundled pjproject to 2.16.</li>
|
||
<li>
|
||
<p>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</p>
|
||
</li>
|
||
<li>
|
||
<h4>Naveen Albert (7):</h4>
|
||
</li>
|
||
<li>dsp.c: Add support for detecting R2 signaling tones.</li>
|
||
<li>app_dial: Include channel name in warnings during wait_for_answer.</li>
|
||
<li>chan_dahdi: Fix discarded-qualifiers errors.</li>
|
||
<li>build: Fix unused-but-set-variable warnings with gcc 16.</li>
|
||
<li>build: Fix another GCC discarded-qualifiers const error.</li>
|
||
<li>chan_iax2: Fix crash due to negative length frame lengths.</li>
|
||
<li>
|
||
<p>app_dial, utils.h: Avoid old style declaration and discarded qualifier.</p>
|
||
</li>
|
||
<li>
|
||
<h4>Prashant Srivastav (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>fix: Add macOS (Darwin) compatibility for building Asterisk</p>
|
||
</li>
|
||
<li>
|
||
<h4>Robert Wilson (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</p>
|
||
</li>
|
||
<li>
|
||
<h4>Sean Bright (2):</h4>
|
||
</li>
|
||
<li>resource_channels.c: Fix validation response for externalMedia with AudioSockets</li>
|
||
<li>
|
||
<p>res_pjsip_outbound_registration.c: Prevent crash if load_module() fails</p>
|
||
</li>
|
||
<li>
|
||
<h4>Sven Kube (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_audiosocket: Fix header read loop to use correct buffer offset</p>
|
||
</li>
|
||
<li>
|
||
<h4>Talha Asghar (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>say.c: added language support for pashto and dari</p>
|
||
</li>
|
||
<li>
|
||
<h4>Tinet-mucw (2):</h4>
|
||
</li>
|
||
<li>pbx: Hold channel lock for exception datastore access</li>
|
||
<li>
|
||
<p>main/file: fix translated-frame write loop to use current frame</p>
|
||
</li>
|
||
<li>
|
||
<h4>hishamway (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_pjsip_session.c: Prevent INVITE failover when session is cancelled</p>
|
||
</li>
|
||
<li>
|
||
<h4>nappsoft (1):</h4>
|
||
</li>
|
||
<li>
|
||
<p>res_cdrel_custom: do not free config when no new config was loaded</p>
|
||
</li>
|
||
<li>
|
||
<h4>phoneben (4):</h4>
|
||
</li>
|
||
<li>manager.c : Fix CLI event display</li>
|
||
<li>app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics</li>
|
||
<li>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load</li>
|
||
<li>
|
||
<p>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</p>
|
||
</li>
|
||
<li>
|
||
<h4>serfreeman1337 (2):</h4>
|
||
</li>
|
||
<li>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</li>
|
||
<li>app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller.</li>
|
||
</ul>
|
||
<h3>Commit List:</h3>
|
||
<ul>
|
||
<li>res_cdrel_custom: do not free config when no new config was loaded</li>
|
||
<li>res_cdrel_custom: Resolve several formatting issues.</li>
|
||
<li>res_pjsip: Address pjproject security vulnerabilities</li>
|
||
<li>pbx: Hold channel lock for exception datastore access</li>
|
||
<li>xmldoc.c: Fix memory leaks in handling of provided_by.</li>
|
||
<li>SECURITY.md: Update with additional instructions.</li>
|
||
<li>res_audiosocket: Fix header read loop to use correct buffer offset</li>
|
||
<li>manager.c : Fix CLI event display</li>
|
||
<li>chan_pjsip: Set correct cause codes for non-2XX responses.</li>
|
||
<li>res_pjsip_config_wizard: Force reload on Named ACL change events</li>
|
||
<li>rtp: Set RTPAUDIOQOS variables when ast_softhangup is called.</li>
|
||
<li>channel: Prevent crash during DTMF emulation when no timing module is loaded</li>
|
||
<li>res_pjsip: Remove temp transport state when a transport fails to load.</li>
|
||
<li>res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428</li>
|
||
<li>acl: Add ACL support to http and ari</li>
|
||
<li>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</li>
|
||
<li>dsp.c: Add support for detecting R2 signaling tones.</li>
|
||
<li>app_dial: Include channel name in warnings during wait_for_answer.</li>
|
||
<li>main/file: fix translated-frame write loop to use current frame</li>
|
||
<li>docs: Add "Provided-by" to doc XML and CLI output.</li>
|
||
<li>chan_websocket_doc.xml: Add d(media_direction) option.</li>
|
||
<li>resource_channels.c: Fix validation response for externalMedia with AudioSockets</li>
|
||
<li>CDR/CEL Custom Performance Improvements</li>
|
||
<li>chan_websocket: Remove silence generation and frame padding.</li>
|
||
<li>chan_websocket: Add media direction.</li>
|
||
<li>fix: Add macOS (Darwin) compatibility for building Asterisk</li>
|
||
<li>astconfigparser.py: Fix regex pattern error by properly escaping string</li>
|
||
<li>res_rtp_asterisk: use correct sample rate lookup to account for g722</li>
|
||
<li>res_pjsip_outbound_registration.c: Prevent crash if load_module() fails</li>
|
||
<li>pjsip_configuration: Ensure s= and o= lines in SDP are never empty</li>
|
||
<li>res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason.</li>
|
||
<li>chan_dahdi: Fix discarded-qualifiers errors.</li>
|
||
<li>build: Fix unused-but-set-variable warnings with gcc 16.</li>
|
||
<li>build: Fix another GCC discarded-qualifiers const error.</li>
|
||
<li>chan_iax2: Fix crash due to negative length frame lengths.</li>
|
||
<li>build: Fix GCC discarded-qualifiers const errors.</li>
|
||
<li>endpoints: Allow access to latest snapshot directly.</li>
|
||
<li>app_dial, utils.h: Avoid old style declaration and discarded qualifier.</li>
|
||
<li>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</li>
|
||
<li>Upgrade bundled pjproject to 2.16.</li>
|
||
<li>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</li>
|
||
<li>app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics</li>
|
||
<li>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load</li>
|
||
<li>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</li>
|
||
<li>app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller.</li>
|
||
<li>channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match</li>
|
||
<li>app_amd: Remove errant space in documentation for totalAnalysisTime.</li>
|
||
<li>say.c: added language support for pashto and dari</li>
|
||
<li>res_pjsip_session.c: Prevent INVITE failover when session is cancelled</li>
|
||
<li>res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription</li>
|
||
</ul>
|
||
<h3>Commit Details:</h3>
|
||
<h4>res_cdrel_custom: do not free config when no new config was loaded</h4>
|
||
<p>Author: nappsoft
|
||
Date: 2026-04-02</p>
|
||
<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>
|
||
<p>Resolves: #1852</p>
|
||
<h4>res_cdrel_custom: Resolve several formatting issues.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-03-31</p>
|
||
<p>Several issues are resolved:</p>
|
||
<ul>
|
||
<li>
|
||
<p>Internally, floats were used for timestamp values but this could result
|
||
in wrapping so they've been changed to doubles.</p>
|
||
</li>
|
||
<li>
|
||
<p>Historically, the default CEL eventtime format is <code><seconds>.<microseconds></code>
|
||
with <code><microseconds></code> always being 6 digits. This should have continued to be
|
||
the case but res_cdrel_custom wasn't checking the <code>dateformat</code> setting in
|
||
cel.conf and was defaulting to <code>%F %T</code>. res_cdrel_custom now gets the default
|
||
date format from cel.conf, which will be whatever the <code>dateformat</code> parameter
|
||
is set to or <code><seconds>.<microseconds></code> if not set.</p>
|
||
</li>
|
||
<li>
|
||
<p>The timeval field formatter for both CDR and CEL wasn't handling custom
|
||
strftime format strings correctly. This is now fixed so you should be able
|
||
to specifiy custom strftime format strings for the CEL <code>eventtime</code> and CDR
|
||
<code>start</code>, <code>answer</code> and <code>end</code> fields. For example: <code>eventtime(%FT%T%z)</code>.</p>
|
||
</li>
|
||
</ul>
|
||
<p>Resolves: #1844
|
||
Resolves: #1845</p>
|
||
<h4>res_pjsip: Address pjproject security vulnerabilities</h4>
|
||
<p>Author: Mike Bradeen
|
||
Date: 2026-03-23</p>
|
||
<p>Address the following pjproject security vulnerabilities</p>
|
||
<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>
|
||
<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>
|
||
<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>
|
||
<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>
|
||
<p>Resolves: #1833</p>
|
||
<h4>pbx: Hold channel lock for exception datastore access</h4>
|
||
<p>Author: Tinet-mucw
|
||
Date: 2026-03-20</p>
|
||
<p>ast_channel_datastore_find() and ast_channel_datastore_add() must only be
|
||
called while the channel is locked (see channel.h). raise_exception() and the
|
||
EXCEPTION dialplan function read path accessed the exception datastore without
|
||
holding ast_channel_lock, which could corrupt the per-channel datastore list
|
||
under concurrency and lead to crashes during teardown (e.g. double free in
|
||
ast_datastore_free).</p>
|
||
<p>Resolves: #1831</p>
|
||
<h4>xmldoc.c: Fix memory leaks in handling of provided_by.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-03-17</p>
|
||
<p>Added a few calls to ast_xml_free_attr() to squash memory leaks when handling
|
||
"provided_by".</p>
|
||
<h4>SECURITY.md: Update with additional instructions.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-03-19</p>
|
||
<p>Also added line breaks for people reading this file directly
|
||
from the code base.</p>
|
||
<h4>res_audiosocket: Fix header read loop to use correct buffer offset</h4>
|
||
<p>Author: Sven Kube
|
||
Date: 2026-03-17</p>
|
||
<p>The PR #1522 introduced the header read loop for audiosocket packets
|
||
which does not handle partial header reads correctly. This commit
|
||
adds the missing buffer offsets.</p>
|
||
<h4>manager.c : Fix CLI event display</h4>
|
||
<p>Author: phoneben
|
||
Date: 2026-03-16</p>
|
||
<p>manager.c: Fix CLI event display</p>
|
||
<ul>
|
||
<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>
|
||
<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>
|
||
</ul>
|
||
<h4>chan_pjsip: Set correct cause codes for non-2XX responses.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-03-10</p>
|
||
<p>Redirects initiated by 302 response codes weren't handled correctly
|
||
when setting the hangup cause code and tech cause code on the responding
|
||
channel. They're now set to 23 (REDIRECTED_TO_NEW_DESTINATION) and
|
||
302 (Moved permanently). Other non-2XX response codes also had issues.</p>
|
||
<p>A new API ast_channel_dialed_causes_iterator() was added to retrieve
|
||
the hangup cause codes for a channel.</p>
|
||
<p>chan_pjsip_session_end() in chan_pjsip has been refactored to set the
|
||
correct cause codes on a channel based on the cause codes added by
|
||
chan_pjsip_incoming_response_update_cause(). Copious amounts of
|
||
debugging and comments were also added.</p>
|
||
<p>Resolves: #1819</p>
|
||
<h4>res_pjsip_config_wizard: Force reload on Named ACL change events</h4>
|
||
<p>Author: Michal Hajek
|
||
Date: 2025-12-10</p>
|
||
<p>Currently, endpoints created via the PJSIP Config Wizard do not update
|
||
their ACL rules if the underlying Named ACL (in acl.conf) changes.
|
||
This occurs because the wizard relies on file timestamp and content
|
||
caching of pjsip_wizard.conf, which remains unchanged during an external
|
||
ACL update. As a result, endpoints retain stale ACL rules even after
|
||
a reload.</p>
|
||
<p>This patch updates res_pjsip_config_wizard to subscribe to the
|
||
ast_named_acl_change_type Stasis event. A local generation counter is
|
||
incremented whenever an ACL change event is received.</p>
|
||
<p>During a reload, the wizard compares the current local generation against
|
||
the generation stored in the wizard object. If a change is detected:
|
||
1. The file cache optimization (CONFIG_FLAG_FILEUNCHANGED) is bypassed.
|
||
2. Wizard objects utilizing 'acl' or 'contact_acl' are forced to update,
|
||
ensuring they pick up the new IP rules.</p>
|
||
<p>Signed-off-by: Michal Hajek michal.hajek@daktela.com</p>
|
||
<p>Fixes: #1641</p>
|
||
<h4>rtp: Set RTPAUDIOQOS variables when ast_softhangup is called.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-03-06</p>
|
||
<p>If a channel in Stasis/ARI is hung up by the channel driver, the RTPAUDIOQOS
|
||
variables are set before the channel leaves Stasis and are therefore
|
||
available to the ARI app via ChannelVarset events. If the channel is hung up
|
||
by ARI however, the channel leaves Stasis before the RTPAUDIOQOS variables
|
||
are set so the app may not get the ChannelVarset events.</p>
|
||
<p>We now set the RTPAUDIOQOS variables when ast_softhangup() is called as well
|
||
as when the channel driver hangs up a channel. Since ARI hangups call
|
||
ast_softhangup(), the variables will be set before the channel leaves Stasis
|
||
and the app should get the ChannelVarset events.
|
||
ast_rtp_instance_set_stats_vars(), which actually sets the variables, now
|
||
checks to see if the variables are already set before attempting to set them.
|
||
This prevents double messages from being generated.</p>
|
||
<p>Resolves: #1816</p>
|
||
<h4>channel: Prevent crash during DTMF emulation when no timing module is loaded</h4>
|
||
<p>Author: Alexis Hadjisotiriou
|
||
Date: 2026-02-26</p>
|
||
<p>Description:
|
||
When Asterisk is running without a timing module, attempting to process DTMF
|
||
triggers a segmentation fault. This occurs because the system
|
||
attempts to access a null timing file descriptor when setting up the
|
||
DTMF emulation timer.</p>
|
||
<p>This fix ensures that the system checks for a valid timing source before
|
||
attempting to start the DTMF emulation timer. If no timing module is
|
||
present, it logs a warning and skips the emulation instead of crashing
|
||
the process.</p>
|
||
<p>Changes:
|
||
- Modified main/channel.c to add a safety check within the __ast_read function.
|
||
- Implemented a graceful return path when no timing source is available
|
||
- Added a LOG_WARNING to inform the administrator that DTMF emulation
|
||
was skipped due to missing timing modules.</p>
|
||
<p>Testing:
|
||
- Disabled all timing_ modules in modules.conf and confirmed with
|
||
'timing test'.
|
||
- Reproduced the crash by modifying the dialplan with:
|
||
exten => 707,1,NoOp(Starting DTMF - No Timing Mode)
|
||
same => n,Answer()
|
||
same => n,Background(demo-congrats)
|
||
same => n,WaitExten(10)
|
||
same => n,Hangup()
|
||
And calling 707 followed by 1
|
||
- Verified that with the fix applied, the system logs "No timing module
|
||
loaded; skipping DTMF timer" and continues dialplan
|
||
execution without crashing.
|
||
- Confirmed stability during concurrent media sessions and DTMF input.</p>
|
||
<p>Fixes: #566</p>
|
||
<h4>res_pjsip: Remove temp transport state when a transport fails to load.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-03-06</p>
|
||
<p>If a pjsip transport (A) fails to load, its temporary state gets left behind
|
||
causing the next transport to load (B) to pick up some of its parameters,
|
||
including its name. This can cause B to have the correct name (B) in its
|
||
transport object but the wrong name (A) in its internal state object. When a
|
||
transport state is searched for later on, transport state B is returned but a
|
||
retrieval of the actual transport object will fail because B's transport
|
||
state id is actually "A" and transport "A" doesn't exist because it failed
|
||
to load.</p>
|
||
<p>remove_temporary_state() is now being called in all error paths in
|
||
config_transport.c functions that call find_or_create_temporary_state().</p>
|
||
<p>A bit of extra debugging was also added to res_pjsip_nat.c.</p>
|
||
<p>Resolves: #1814</p>
|
||
<h4>res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428</h4>
|
||
<p>Author: Alexis Hadjisotiriou
|
||
Date: 2026-01-19</p>
|
||
<p>According to RFC 3428 (Section 5), a Contact header is not required in a
|
||
MESSAGE request unless the sender wants to establish a session. This
|
||
patch ensures that the Contact header is removed from out-of-dialog
|
||
MESSAGE requests within res_pjsip_messaging.c.</p>
|
||
<p>Fixes: #1356</p>
|
||
<h4>acl: Add ACL support to http and ari</h4>
|
||
<p>Author: Mike Bradeen
|
||
Date: 2026-02-27</p>
|
||
<p>Add uri prefix based acl support to the built in http server.
|
||
This allows an acl to be added per uri prefix (ie '/metrics'
|
||
or '/ws') to restrict access.</p>
|
||
<p>Add user based acl support for ARI. This adds new acl options
|
||
to the user section of ari.conf to restrict access on a per
|
||
user basis.</p>
|
||
<p>resolves: #1799</p>
|
||
<p>UserNote: A new section, type=restriction has been added to http.conf
|
||
to allow an uri prefix based acl to be configured. See
|
||
http.conf.sample for examples and more information.
|
||
The user section of ari.conf can now contain an acl configuration
|
||
to restrict users access. See ari.conf.sample for examples and more
|
||
information</p>
|
||
<h4>res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check</h4>
|
||
<p>Author: Robert Wilson
|
||
Date: 2026-03-03</p>
|
||
<p>When TURN is configured in rtp.conf, pjproject re-injects TURN packets
|
||
via 127.0.0.1 (the loopback address). The DTLS packet handler checks the
|
||
source address against the ICE active candidate list before the loopback
|
||
address substitution runs, causing the packet to be silently dropped as
|
||
the source 127.0.0.1 is not in the candidate list.</p>
|
||
<p>Fix by performing the loopback address substitution before the ICE
|
||
candidate source check in the DTLS path, mirroring the logic already
|
||
present in the non-DTLS RTP path.</p>
|
||
<p>Fixes: #1795</p>
|
||
<p>UserNote: WebRTC calls using TURN configured in rtp.conf (turnaddr,
|
||
turnusername, turnpassword) will now correctly complete DTLS/SRTP
|
||
negotiation. Previously all DTLS packets were silently dropped due to
|
||
the loopback re-injection address not being in the ICE active candidate
|
||
list.</p>
|
||
<h4>dsp.c: Add support for detecting R2 signaling tones.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-03-01</p>
|
||
<p>Extend the existing DTMF/MF tone detection support by adding support
|
||
for R2 tones, another variant of MF (R1) signaling. Both forward
|
||
and backward signaling are supported.</p>
|
||
<p>Resolves: #1804</p>
|
||
<h4>app_dial: Include channel name in warnings during wait_for_answer.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-02-28</p>
|
||
<p>Include the channel name in warnings during wait_for_answer to make
|
||
them more useful and allow problematic channels to be easily identified.</p>
|
||
<p>Resolves: #1802</p>
|
||
<h4>main/file: fix translated-frame write loop to use current frame</h4>
|
||
<p>Author: Tinet-mucw
|
||
Date: 2026-02-27</p>
|
||
<p>write each translated frame from translator output.</p>
|
||
<p>Resolves: #1797</p>
|
||
<h4>docs: Add "Provided-by" to doc XML and CLI output.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-02-24</p>
|
||
<p>For application, function, manager, managerEvent, managerEventInstance
|
||
and info XML documentation nodes, the make_xml_documentation script will
|
||
add a "module" attribute if not already present. For XML in separate
|
||
"*_doc.xml" files, the script figures out the correct module name. For
|
||
documentation in the "main" directory, the module name is set to "builtin".</p>
|
||
<p>The CLI handlers for "core show application", "core show function",
|
||
"manager show command" and "manager show event", have been updated to
|
||
show the following after the Synopsis...</p>
|
||
<p><code>[Provided By]
|
||
<modulename></code></p>
|
||
<p>For modules that provide additional "info" elements (like the technologies
|
||
do for Dial), the providing module has also been added.</p>
|
||
<p><code>Technology: WebSocket Provided by: chan_websocket
|
||
WebSocket Dial Strings:
|
||
...</code></p>
|
||
<p>UserNote: The CLI help for applications, functions, manager commands and
|
||
manager events now shows the module that provides its functionality.</p>
|
||
<h4>chan_websocket_doc.xml: Add d(media_direction) option.</h4>
|
||
<p>Author: Ben Ford
|
||
Date: 2026-02-27</p>
|
||
<p>Adds documentation for the 'd' option to set media direction for
|
||
chan_websocket.</p>
|
||
<h4>resource_channels.c: Fix validation response for externalMedia with AudioSockets</h4>
|
||
<p>Author: Sean Bright
|
||
Date: 2026-03-01</p>
|
||
<p>The AudioSocket encapsulation for externalMedia requires a UUID to be
|
||
provided in the <code>data</code> parameter of the ARI call. If not provided, we
|
||
should return a 400 Bad Request instead of a 500 Internal Server
|
||
Error.</p>
|
||
<p>Pointed out by AVT in the community forum[1].</p>
|
||
<p>1: https://community.asterisk.org/t/externalmedia-audiosocket-on-asterisk-22/112149</p>
|
||
<h4>CDR/CEL Custom Performance Improvements</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-01-27</p>
|
||
<p>There is a LOT of work in this commit but the TL;DR is that it takes
|
||
CEL processing from using 38% of the CPU instructions used by a call,
|
||
which is more than that used by the call processing itself, down to less
|
||
than 10% of the instructions.</p>
|
||
<p>So here's the deal... cdr_custom, cdr_sqlite3_custom, cel_custom
|
||
and cel_sqlite3_custom all shared one ugly trait...they all used
|
||
ast_str_substitute_variables() or pbx_substitute_variables_helper()
|
||
to resolve the dialplan functions used in their config files. Not only
|
||
are they both extraordinarily expensive, they both require a dummy
|
||
channel to be allocated and destroyed for each record written. For CDRs,
|
||
that's not too bad because we only write one CDR per call. For CELs however,
|
||
it's a disaster.</p>
|
||
<p>As far as source code goes, the modules basically all did the same thing.
|
||
Unfortunately, they did it badly. The config files simply contained long
|
||
opaque strings which were intepreted by ast_str_substitute_variables() or
|
||
pbx_substitute_variables_helper(), the very functions that ate all the
|
||
instructions. This meant introducing a new "advanced" config format much
|
||
like the advanced manager event filtering added to manager.conf in 2024.
|
||
Fortunately however, if the legacy config was recognizable, we were able to
|
||
parse it as an advanced config and gain the benefit. If not, then it
|
||
goes the legacy, and very expensive, route.</p>
|
||
<p>Given the commonality among the modules, instead of making the same
|
||
improvements to 4 modules then trying to maintain them over time, a single
|
||
module "res_cdrel_custom" was created that contains all of the common code.
|
||
A few bonuses became possible in the process...
|
||
* The cdr_custom and cel_custom modules now support JSON formatted output.
|
||
* The cdr_sqlite_custom and cel_sqlite3_custom modules no longer have
|
||
to share an Sqlite3 database.</p>
|
||
<p>Summary of changes:</p>
|
||
<p>A new module "res/res_cdrel_custom.c" has been created and the existing
|
||
cdr_custom, cdr_sqlite3_custom, cel_custom and cel_sqlite3_custom modules
|
||
are now just stubs that call the code in res_cdrel_custom.</p>
|
||
<p>res_cdrel_custom contains:
|
||
* A common configuration facility.
|
||
* Getters for both CDR and CEL fields that share the same abstraction.
|
||
* Formatters for all data types found in the ast_cdr and ast_event
|
||
structures that share the same abstraction.
|
||
* Common writers for the text file and database backends that, you guessed it,
|
||
share the same abstraction.</p>
|
||
<p>The result is that while there is certainly a net increase in the number of
|
||
lines in the code base, most of it is in the configuration handling at
|
||
load-time. The run-time instruction path length is now significanty shorter.</p>
|
||
<p>```
|
||
Scenario Instructions Latency
|
||
=====================================================
|
||
CEL pre changes 38.49% 37.51%
|
||
CEL Advanced 9.68% 6.06%
|
||
CEL Legacy (auto-conv to adv) 9.95% 6.13%</p>
|
||
<p>CEL Sqlite3 pre changes 39.41% 39.90%
|
||
CEL Sqlite3 Advanced 25.68% 24.24%
|
||
CEL Sqlite3 Legacy (auto conv) 25.88% 24.53%</p>
|
||
<p>CDR pre changes 4.79% 2.95%
|
||
CDR Advanced 0.79% 0.47%
|
||
CDR Legacy (auto conv to adv) 0.86% 0.51%</p>
|
||
<p>CDR Sqlite3 pre changes 4.47% 2.89%
|
||
CEL Sqlite3 Advanced 2.16% 1.29%
|
||
CEL Sqlite3 Legacy (auto conv) 2.19% 1.30%
|
||
```</p>
|
||
<p>Notes:
|
||
* We only write one CDR per call but every little bit helps.
|
||
* Sqlite3 still takes a fair amount of resources but the new config
|
||
makes a decent improvement.
|
||
* Legacy configs that we can't auto convert will still take the
|
||
"pre changes" path.</p>
|
||
<p>If you're interested in more implementation details, see the comments
|
||
at the top of the res_cdrel_custom.c file.</p>
|
||
<p>One minor fix to CEL is also included...Although TenantID was added to the
|
||
ast_event structure, it was always rendered as an empty string. It's now
|
||
properly rendered.</p>
|
||
<p>UserNote: Significant performance improvements have been made to the
|
||
cdr_custom, cdr_sqlite3_custom, cel_custom and cel_sqlite3_custom modules.
|
||
See the new sample config files for those modules to see how to benefit
|
||
from them.</p>
|
||
<h4>chan_websocket: Remove silence generation and frame padding.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-02-19</p>
|
||
<p>The original chan_websocket implementation attempted to improve the
|
||
call quality experience by generating silence frames to send to the core
|
||
when no media was being read from the websocket and padding frames with
|
||
silence when short frames were read from the websocket. Both of these
|
||
required switching the formats on the channel to slin for short periods
|
||
of time then switching them back to whatever format the websocket channel
|
||
was configured for. Unfortunately, the format switching caused issues
|
||
when transcoding was required and the transcode_via_sln option was enabled
|
||
in asterisk.conf (which it is by default). The switch would cause the
|
||
transcoding path to be incorrectly set resulting in malformed RTP packets
|
||
being sent back out to the caller on the other end which the caller heard
|
||
as loud noise.</p>
|
||
<p>After looking through the code and performing multiple listening tests,
|
||
the best solution to this problem was to just remove the code that was
|
||
attempting to generate the silence. There was no decrease in call quality
|
||
whatsoever and the code is a bit simpler. None of the other channel drivers
|
||
nor res_rtp_asterisk generate silence frames or pad short frames which
|
||
backed up decision.</p>
|
||
<p>Resolves: #1785</p>
|
||
<h4>chan_websocket: Add media direction.</h4>
|
||
<p>Author: Ben Ford
|
||
Date: 2026-02-10</p>
|
||
<p>Currently, WebSockets both accept and send media without the option to
|
||
disable one or the other. This commit adds the ability to set the media
|
||
direction for a WebSocket, making it unidirectional or bidirectional
|
||
(the default). Direction is done from the point of view of the
|
||
application, NOT Asterisk. The allowed values are 'both', 'in', and
|
||
'out'. If media direction is 'both' (the default), Asterisk accepts and
|
||
sends media to the application. If it is 'in', Asterisk will drop any
|
||
media received from the application. If it is 'out', Asterisk will not
|
||
write any media frames to the application.</p>
|
||
<p>UserNote: WebSocket now supports media direction, allowing for
|
||
unidirectional media. This is done from the perspective of the
|
||
application and can be set via channel origination, external media, or
|
||
commands sent from the application. Check out
|
||
https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket/ for
|
||
more.</p>
|
||
<h4>fix: Add macOS (Darwin) compatibility for building Asterisk</h4>
|
||
<p>Author: Prashant Srivastav
|
||
Date: 2026-02-05</p>
|
||
<ul>
|
||
<li>Makefile: Skip /usr/lib/bundle1.o on modern macOS (doesn't exist)</li>
|
||
<li>Makefile.rules: Skip -fno-partial-inlining for clang (gcc-only flag)</li>
|
||
<li>include/asterisk/utils.h: Use asterisk/endian.h instead of <endian.h></li>
|
||
<li>main/Makefile: Add Darwin-specific pjproject linking with -force_load</li>
|
||
<li>main/strcompat.c: Include poll-compat.h, use ast_poll()</li>
|
||
<li>main/xml.c: Add ASTMM_LIBC ASTMM_IGNORE for libxml2 compatibility</li>
|
||
<li>res/res_pjsip/config_transport.c: Define TCP keepalive constants for macOS</li>
|
||
</ul>
|
||
<p>Tested on macOS Darwin 25.2.0 (Apple Silicon ARM64)</p>
|
||
<h4>astconfigparser.py: Fix regex pattern error by properly escaping string</h4>
|
||
<p>Author: Julian C. Dunn
|
||
Date: 2026-02-17</p>
|
||
<p>"SyntaxWarning: invalid escape sequence '\s'" occurs when using the pjsip
|
||
migration script because '\' is an escape character in Python. Instead,
|
||
use a raw string for the regex.</p>
|
||
<h4>res_rtp_asterisk: use correct sample rate lookup to account for g722</h4>
|
||
<p>Author: Mike Bradeen
|
||
Date: 2026-02-23</p>
|
||
<p>Swap out ast_rtp_get_rate for ast_format_get_sample_rate when looking
|
||
at the paired audio codec rate to account for g722 oddness.</p>
|
||
<p>Resolves: #1657</p>
|
||
<h4>res_pjsip_outbound_registration.c: Prevent crash if load_module() fails</h4>
|
||
<p>Author: Sean Bright
|
||
Date: 2026-02-12</p>
|
||
<p><code>ast_cli_unregister_multiple()</code> expects internal data members to be heap
|
||
allocated which happens during a successful call to
|
||
<code>ast_cli_register_multiple()</code>. CLI handlers defined traditionally - those whose
|
||
handler responds to the CLI_INIT message - take care of this automatically. But
|
||
when we statically provide a <code>command</code> or <code>usage</code> member, we <em>must</em> initialize
|
||
them with <code>ast_cli_register_multiple()</code> before attempting to destroy them.</p>
|
||
<p>Resolves: #1651</p>
|
||
<h4>pjsip_configuration: Ensure s= and o= lines in SDP are never empty</h4>
|
||
<p>Author: Alexis Hadjisotiriou
|
||
Date: 2026-01-30</p>
|
||
<p>According to RFC 8866 (Section 5.2), the Session Name (s=) field and
|
||
the username part of origin (o=) are both mandatory and cannot be
|
||
empty. If a session has no name, or no username part of origin, the
|
||
RFC recommends using a single dash (-) as a placeholder.</p>
|
||
<p>This fix ensures that if the session name or the username part of
|
||
origin length is zero , it defaults to -.</p>
|
||
<p>Fixes: #1524</p>
|
||
<h4>res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason.</h4>
|
||
<p>Author: Arcadiy Ivanov
|
||
Date: 2026-01-14</p>
|
||
<p>This hook may not be necessary when we do a retransmit, but when there are two
|
||
INVITEs, one <em>initial</em> and one with auth digest, the second INVITE contains wrong (unmodified) media address
|
||
due to the commented line below.
|
||
The NAT hook needs to run due to filters potentially reverting previously modified packets.</p>
|
||
<p>Fixes: #449</p>
|
||
<h4>chan_dahdi: Fix discarded-qualifiers errors.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-02-18</p>
|
||
<p>Fix discarded-qualifiers errors to compile successfully with gcc 15.2.1.</p>
|
||
<p>Associated changes have also been made to libss7; however, for compatibility
|
||
we cast const char<em> values to char</em>. In the future, these casts could be
|
||
removed.</p>
|
||
<p>Resolves: #1786</p>
|
||
<h4>build: Fix unused-but-set-variable warnings with gcc 16.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-02-18</p>
|
||
<p>Fix or remove a few variables that were being set but not actually
|
||
used anywhere, causing warnings with gcc 16.</p>
|
||
<p>Resolves: #1783</p>
|
||
<h4>build: Fix another GCC discarded-qualifiers const error.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-02-18</p>
|
||
<p>Follow on commit to 27a39cba7e6832cb30cb64edaf879f447b669628
|
||
to fix compilation with BETTER_BACKTRACES with gcc 15.2.1.</p>
|
||
<p>Resolves: #1781</p>
|
||
<h4>chan_iax2: Fix crash due to negative length frame lengths.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-01-08</p>
|
||
<p>chan_iax2 has several code paths where a frame's data length
|
||
is calculated by subtraction. On some paths, there is a check
|
||
for negative length. One of these paths is missing this check,
|
||
and on this path, it is possible for the result to be negative,
|
||
leading to a crash as a result of memory operations using the
|
||
bogus length.</p>
|
||
<p>Add a check to capture this off-nominal case. This will log
|
||
the appropriate warnings as in other cases and prevent a crash.
|
||
Also update the log messages to be clearer.</p>
|
||
<p>Resolves: #1707</p>
|
||
<h4>build: Fix GCC discarded-qualifiers const errors.</h4>
|
||
<p>Author: Joshua C. Colp
|
||
Date: 2026-02-12</p>
|
||
<p>GCC 15.2.1 pays attention to the discarding of the const
|
||
qualifier when strchr, strrchr, memchr, or memrchr are now
|
||
used. This change fixes numerous errors with this throughout
|
||
the tree. The fixes can be broken down into the following:</p>
|
||
<ol>
|
||
<li>The return value should be considered const.</li>
|
||
<li>The value passed to strchr or strrchr can be cast as it is
|
||
expected and allowed to be modified.</li>
|
||
<li>The pointer passed to strchr or strrchr is not meant to be
|
||
modified and so the contents must be duplicated.</li>
|
||
<li>It was declared const and never should have been.</li>
|
||
</ol>
|
||
<h4>endpoints: Allow access to latest snapshot directly.</h4>
|
||
<p>Author: Joshua C. Colp
|
||
Date: 2026-02-10</p>
|
||
<p>This change adds an API call to allow direct access to the latest
|
||
snapshot of an ast_endpoint. This is then used by chan_pjsip when
|
||
calculating device state, eliminating the need to access the cache
|
||
which would incur a container find and access.</p>
|
||
<h4>app_dial, utils.h: Avoid old style declaration and discarded qualifier.</h4>
|
||
<p>Author: Naveen Albert
|
||
Date: 2026-02-04</p>
|
||
<ul>
|
||
<li>app_dial: Use const char* for fixed strings.</li>
|
||
<li>utils.h: inline should come before return type.</li>
|
||
</ul>
|
||
<p>Resolves: #1755</p>
|
||
<h4>app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option</h4>
|
||
<p>Author: serfreeman1337
|
||
Date: 2026-01-29</p>
|
||
<p>This adds a 'prio' setting to ensure that call priority is respected across multiple queues.
|
||
Using 'yes' could cause high-priority callers to be skipped if a caller
|
||
in another queue had a longer wait time, regardless of priority.</p>
|
||
<p>Resolves: #1637</p>
|
||
<p>UserNote: The 'force_longest_waiting_caller' option now supports a 'prio' setting.
|
||
When set to 'prio', calls are offered by priority first, then by wait time.</p>
|
||
<h4>Upgrade bundled pjproject to 2.16.</h4>
|
||
<p>Author: Mike Bradeen
|
||
Date: 2026-01-27</p>
|
||
<p>Resolves: #1612</p>
|
||
<p>UserNote: Bundled pjproject has been upgraded to 2.16. For more
|
||
information on what all is included in this change, check out the
|
||
pjproject Github page: https://github.com/pjsip/pjproject/releases</p>
|
||
<h4>res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function</h4>
|
||
<p>Author: Mike Bradeen
|
||
Date: 2025-11-19</p>
|
||
<p>Adds a new PJSIP_INHERITABLE_HEADER dialplan function to add
|
||
inheritable headers from the inbound channel to an outbound
|
||
bridged channel. This works similarly to the existing
|
||
PJSIP_HEADER function, but will set the header on the bridged
|
||
outbound channel's INVITE upon Dial.</p>
|
||
<p>Inheritable headers can be updated or removed from the inbound
|
||
channel as well as from a pre-dial handler</p>
|
||
<p>Resolves: #1670</p>
|
||
<p>UserNote: A new PJSIP_HEADER option has been added that allows
|
||
inheriting pjsip headers from the inbound to the outbound bridged
|
||
channel.
|
||
Example- same => n,Set(PJSIP_INHERITABLE_HEADER(add,X-custom-1)=alpha)
|
||
will add X-custom-1: alpha to the outbound pjsip channel INVITE
|
||
upon Dial.</p>
|
||
<h4>app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics</h4>
|
||
<p>Author: phoneben
|
||
Date: 2026-01-18</p>
|
||
<p>app_queue: Set Dial-compatible timing variables</p>
|
||
<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>
|
||
<h4>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load</h4>
|
||
<p>Author: phoneben
|
||
Date: 2025-11-29</p>
|
||
<p>stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load.</p>
|
||
<p>Deadlock occurs when res_manager_devicestate loads concurrently with
|
||
device state operations due to lock ordering violation:</p>
|
||
<p>Thread 1: Holds pool lock → needs topic lock (in stasis_forward_all)
|
||
Thread 2: Holds topic lock → needs pool lock (in stasis_topic_pool_get_topic)</p>
|
||
<p>Fix: Release pool lock before calling stasis_topic_create() and
|
||
stasis_forward_all(). Re-acquire only for insertion with race check.</p>
|
||
<p>Preserves borrowed reference semantics while breaking the deadlock cycle.</p>
|
||
<p>Fixes: #1611</p>
|
||
<h4>app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric</h4>
|
||
<p>Author: phoneben
|
||
Date: 2026-01-06</p>
|
||
<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>
|
||
<p>This change makes calc_metric() honor raise_respect_min, keeping behavior consistent with queue empty checks and expected rN semantics</p>
|
||
<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>
|
||
<h4>app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller.</h4>
|
||
<p>Author: serfreeman1337
|
||
Date: 2026-01-05</p>
|
||
<p>This prevents a situation where a call joining at 1st position to a queue with calls
|
||
leads to a state where no callers are considered the longest waiting,
|
||
causing queues to stop offering calls.</p>
|
||
<p>Resolves: #1691</p>
|
||
<h4>channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match</h4>
|
||
<p>Author: Jasper Hafkenscheid
|
||
Date: 2026-01-21</p>
|
||
<p>Lower bound filter did not ensure prefix match.</p>
|
||
<p>Resolves: #1730</p>
|
||
<h4>app_amd: Remove errant space in documentation for totalAnalysisTime.</h4>
|
||
<p>Author: George Joseph
|
||
Date: 2026-01-22</p>
|
||
<h4>say.c: added language support for pashto and dari</h4>
|
||
<p>Author: Talha Asghar
|
||
Date: 2026-01-22</p>
|
||
<p>With this new feature, users who speak these languages can now benefit from the
|
||
text-to-speech functionality provided by asterisk. This will make the platform
|
||
more accessible and useful to a wider range of users, particularly those in
|
||
regions where Pashto and Dari are spoken. This contribution will help to improve
|
||
the overall usability and inclusivity of the asterisk platform.</p>
|
||
<p>Fixes: #1724</p>
|
||
<h4>res_pjsip_session.c: Prevent INVITE failover when session is cancelled</h4>
|
||
<p>Author: hishamway
|
||
Date: 2026-01-15</p>
|
||
<p>When an outbound INVITE transaction times out (408) or receives a 503 error,
|
||
check_request_status() attempts to failover to the next available address by
|
||
restarting the INVITE session. However, the function did not check if the
|
||
inv_session was already cancelled before attempting the failover.</p>
|
||
<p>This caused unexpected behavior when a caller hung up during a ring group
|
||
scenario: after CANCEL was sent but the remote endpoint failed to respond
|
||
with 487 (e.g., due to network disconnection), the transaction timeout
|
||
would trigger a NEW outbound INVITE to the next address, even though the
|
||
session was already terminated.</p>
|
||
<p>This violates RFC 3261 Section 9.1 which states that if no final response
|
||
is received after CANCEL within 64*T1 seconds, the client should consider
|
||
the transaction cancelled and destroy it, not retry to another address.</p>
|
||
<p>The fix adds a check for both PJSIP_INV_STATE_DISCONNECTED and inv->cancelling
|
||
at the beginning of check_request_status(). This ensures that:
|
||
- Failover is blocked when the user explicitly cancelled the call (CANCEL sent)
|
||
- Failover is still allowed for legitimate timeout/503 scenarios where no
|
||
CANCEL was initiated (e.g., SRV failover when first server is unreachable)</p>
|
||
<p>Resolves: #1716</p>
|
||
<h4>res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription</h4>
|
||
<p>Author: Alexei Gradinari
|
||
Date: 2026-01-07</p>
|
||
<p>allocate_subscription() increments the ao2 reference count of the subscription tree,
|
||
but the reference was not consistently released during subscription destruction,
|
||
resulting in leaked sip_subscription_tree objects.</p>
|
||
<p>This patch makes destroy_subscription() responsible for releasing sub->tree,
|
||
removes ad-hoc cleanup in error paths,
|
||
and guards tree cleanup to ensure refcount symmetry and correct ownership.</p>
|
||
<p>Fixes: #1703</p>
|
||
</body></html>
|