Up to [cvs.NetBSD.org] / pkgsrc / comms / asterisk23
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 79
Update asterisk23 to Asterisk 23.6.0:
## Change Log for Release asterisk-23.6.0
### Links:
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.6.0.html)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.5.0...23.6.0)
### Summary:
- Commits: 45
- Commit Authors: 22
- Issues Resolved: 35
- Security Advisories Resolved: 0
### User Notes:
- #### res_pjsip: Qualify all resolved contact targets
DNS-backed PJSIP contacts are now considered reachable when any resolved
SRV, A, or AAAA target responds to qualification.
- #### res_prometheus: add toggle config for metrics
Add new config option 'channels_detail_metrics_enabled' to disable export of 'asterisk_channels_state' and 'asterisk_channels_duration_seconds' metrics,It defaults to 'yes' to preserve existing behavior
Add new config option 'bridges_detail_metrics_enabled' to disable export of 'asterisk_bridges_channels_count' metric, It defaults to 'yes' to preserve existing behavior
Explicitly enable bridges_detail_metrics_enabled for the bridge_to_string unit‑test.
- #### app_confbridge: Add announcements option to disable conference announcements
A new ConfBridge bridge profile option, announcements, can be set to
no to stop announcements from being played to the conference as a whole. No
announcer channel is then created, which saves a channel and a taskprocessor
thread per conference. Prompts played only to the participant that caused them
are not affected. It defaults to yes, which is the previous behavior.
- #### chan_websocket: Add "unbuffered" mode and fix a few bugs.
A new `unbuffered` chan_websocket mode has been added which
sends frames to the core as they're received from the WebSocket and your
app. It's similar to `passthrough` mode where your app is responsible
for proper framing and timing except that, assuming you're not using an
unbufferable codec (opus, speex, g729), in unbuffered mode, you can
still use START_MEDIA_BUFFERING to send bulk media and have
chan_websocket frame and time it. When you send STOP_MEDIA_BUFFERING,
the channel will go back into unbuffered mode. Unbuffered mode is most
useful when the media your app normally sends to Asterisk is already
properly framed and timed but you may occasionally need to send bulk
media. The mode is set with the `u` dialstring option.
- #### pjsip_wizard.conf.sample: Add IP authentication and TLS examples.
pjsip_wizard.conf.sample now includes examples for an ITSP that
authenticates by IP address and delivers calls from several hosts, and
for a TLS trunk with SRTP.
- #### res_pjsip_config_wizard: Fix concurrent Named ACL reloads
Fixes a PJSIP config wizard reload hang during overlapping reloads.
- #### res_pjsip_config_wizard: Fix documentation errors.
The pjsip_wizard.conf sample documented the wrong option
names for sends_auth and accepts_auth, and claimed a default for
hint_application that does not exist. Configurations written by
following the sample would have failed to load.
- #### taskpool: count the in-flight task when selecting an executor
Taskpool executors that are running a long task are no longer
considered idle when work is distributed, so tasks are routed to free
executors instead of queueing behind a busy one.
### Upgrade Notes:
- #### ARI, chan_websocket, res_websocket_client: Handle non-blocking and timeout correctly.
A new "write_timeout" parameter has been added to
websocket_client.conf that allows setting the maximum amount of time a
write operation can take before returning an error.
A new "write_timeout" parameter has been added to
- #### res_geolocation: Create alembic scripts and squash a SEGV.
An Alembic script has been added for res_geolocation that creates
the geoloc_location and geoloc_profile tables.
- #### alembic: Preserve sub-second precision in the queue_log time column.
(schema) On MySQL and MariaDB the queue_log 'time' column is widened
from DATETIME to DATETIME(6) so that the microsecond timestamps Asterisk
already writes are stored rather than discarded. This ALTER rewrites the
table, a datetime precision change is neither INSTANT nor INPLACE, so
queue_log writes will block for its duration on a large table. PostgreSQL
installations are unaffected. Rows already written at whole-second precision will remain as-is and won't be updated.
### Developer Notes:
- #### Audiohooks: Fix whisper framehook timer leak and masquerade handling
ast_channel_fd_add() now returns -1 if it fails to allocate
space for the descriptor.
- #### ARI, chan_websocket, res_websocket_client: Handle non-blocking and timeout correctly.
A new "write_timeout" field has been added to the
ast_websocket_client_options structure that allows setting the maximum
amount of time a write operation can take before returning an error.
The websocket session must be set to nonblocking for this to take effect.
- #### chan_websocket: Add "unbuffered" mode and fix a few bugs.
Two new fields have been added to the chan_websocket
MEDIA_START event for both the plain text and JSON formats:
`passthrough: true/false`
`unbuffered: true/false`
These indicate the mode the channel was created with and correspond
to the `p` and `u` dialstring options.
The MARK_MEDIA chan_websocket command can now be used
### Closed Issues:
- #1167: frame.h: ast_frame_adjust_volume* Incorrect documention related to 'adjustment' parameter
- #1629: [bug]: `ast_streamfile` logs a misleading error based on errno
- #1723: [improvement]: res_pjsip_endpoint_identifier_ip.c: misleading warning when duplicate IP is added to ACL via DNS resolved match
- #1760: [bug]: queue incorrectly updates the pause time for realtime members
- #1927: [bug]: PJSIP OPTIONS not adhering to SRV failover
- #2044: [bug]: ARI channels.record fails with "Cannot record channel while in bridge" after channels.dial on created channel
- #2063: [bug]: VM_INFO segfaults when requesting an email address from a mailbox that doesn't have an email address
- #2069: [bug]: Passing HTML Through FastAGI Causes Asterisk Crash
- #2072: [bug]: queue_log 'time' column discards the microseconds ast_queue_log() writes on MySQL/MariaDB
- #2074: [bug]: Taskpool assigns work to an executor that is inside a long task while other executors in the pool are idle
- #2091: [bug]: func_speex: use-after-free in speex_callback when disabling DENOISE/AGC while audiohook is active
- #2095: [bug]: MES calculation skips the long-term jitter mean, using only the short-term RFC 3550 EWMA sample
- #2097: [bug]: effective_latency uses full RTT instead of one-way delay and mixes seconds with milliseconds
- #2099: [bug]: update_rtt_stats() stores RTT before validating it, exposing invalid values via AMI/ARI
- #2101: [bug]: Reported packet loss feeds a cumulative counter into the MES mean, drifting the score toward its floor over a call’s duration
- #2106: [bug]: res_cdrel_custom JSON output is truncated at 1024 bytes
- #2110: [bug]: res_resolver_unbound: libunbound API calls that fail should include reason
- #2115: [bug]: chan_websocket: frame queue never drains, turning any backlog into permanent latency
- #2121: [bug]: res_websocket_client: ast_websocket_client_connect() does not release lock_obj when retries are exhausted
- #2123: [bug]: ChanSpy delays spyee channel destroy / Hangup by the spy wait timeout when the spy path has no reverse media
- #2131: [improvement]: Add an option to disable the ConfBridge announcer channel
- #2132: [bug]: Bundled pjproject aconfigure fails on PIE-default toolchains — ambient CFLAGS discarded
- #2134: [bug]: Bridging channels which have been spied on with ChanSpy fails
- #2138: [improvement]: chan_dahdi: Device state is uncachable, preventing device state synchronization
- #2140: [bug]: Cascading locks when chan websocket is connected to a server that stops reading packets.
- #2150: [bug]: Asterisk crashes (SIGSEGV) when CHANNEL(channeltype) is evaluated on a dummy channel
- #2152: [improvement]: chan_dahdi: Add macros to simplify checks for FXO signaling
- #2154: [bug]: app_amd: AMD documentation does not match the implementation
- #2159: [improvement]: chan_dahdi: Avoid INUSE -> RINGING device state transitions for analog lines
- #2164: [bug]: func_env: Line mode doesn't work for CR LF (DOS) line endings
- #2179: [bug]: No initial NOTIFY for dialog subscriptions when hint references CustomPresence without AstDB entry (regression in 22.11.0)
- #2186: [bug]: dialog-info NOTIFY for ringing extension no longer contains <remote> identity (caller ID) since 22.11.0
- #2232: [bug]: Update pjsip_options.c WebSocket contacts results in PJSIP_EUNSUPTRANSPORT
- #2249: [bug]: Park slot hints stuck at Unavailable after startup (regression in 22.11.0)
- #2257: [bug]: Segfault in extension_state_update_sources() when a hint loses its presence part (strcmp on NULL, regression in 22.11.0)
### Commit List:
- extstate: Handle lack of or late loading of device state.
- extension_state: Fix crash when a hint loses its presence sources.
- res_pjsip: Preserve target hostname for qualified OPTIONS destination
- Audiohooks: Fix whisper framehook timer leak and masquerade handling
- extstate/pjsip: Handle lack of or late loading of presence state.
- extstate: Include causing device channel details in legacy callbacks.
- res_geolocation: Fix alembic scripts for MySQL.
- res_pjsip: Qualify all resolved contact targets
- func_env: Fix line counting in FILE function for DOS (CR LF) endings.
- ARI, chan_websocket, res_websocket_client: Handle non-blocking and timeout correctly.
- chan_dahdi: Avoid transitioning device state from INUSE to RINGING.
- func_channel: add NULL checks on channel tech for dummy channels
- chan_dahdi: Simplify checks for FXO signaling.
- app_amd: Correct and clarify the AMD documentation.
- apps/app_chanspy: don't delay spyee Hangup when spy channel has no reverse media
- res_prometheus: add toggle config for metrics
- chan_dahdi: Make DAHDI device state cacheable to fix device state sync.
- app_confbridge: Add announcements option to disable conference announcements
- Bundled pjproject: Do not discard the ambient CFLAGS
- res_resolver_unbound: Include libunbound error reason
- app_queue: Update lastpause on realtime pause transition
- chan_websocket: Add "unbuffered" mode and fix a few bugs.
- res_geolocation: Create alembic scripts and squash a SEGV.
- res_rtp_asterisk: Fix reported packet loss to use current report's difference
- res_rtp_asterisk: rtt stored before validation
- res_rtp_asterisk: Correct effective latency calculation
- res_rtp_asterisk: Change MES calculation to use long-term jitter mean
- res_websocket_client: Release lock_obj when retries are exhausted
- frame: Correct ast_frame_adjust_volume* documentation of 'adjustment'
- res_config_odbc: Missing SQLFreeHandle in error paths.
- res_cdrel_custom: Use extendable ast_str for JSON records.
- res_geolocation: Don't crash on invalid sorcery configuration
- res_geolocation: Load when explicitly configured in sorcery.conf
- res_stasis_recording: Allow recording a channel that is dialing via ARI
- alembic: Preserve sub-second precision in the queue_log time column.
- main/file.c: Log the reason a file could not be opened.
- chore: update .gitignore for clangd
- func_speex: Hold channel lock while updating speex state.
- pjsip_wizard.conf.sample: Add IP authentication and TLS examples.
- res_pjsip_config_wizard: Fix concurrent Named ACL reloads
- res_pjsip_endpoint_identifier_ip: Clarify identify DNS warning
- res_pjsip_config_wizard: Fix documentation errors.
- taskpool: count the in-flight task when selecting an executor
- app_voicemail: Fix crash when VM_INFO reads an unset email address.
- res_agi.c: Prevent out-of-bounds array access when parsing arguments
Update asterisk23 to Asterisk 23.5.0: ## Change Log for Release asterisk-23.5.0 ### Links: - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.5.0.html) - [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.4.1...23.5.0) ### Summary: - Commits: 39 - Commit Authors: 16 - Issues Resolved: 28 - Security Advisories Resolved: 0 ### User Notes: - #### bridging: Add support for TOUCH_MIXMONITOR_OPTIONS The TOUCH_MIXMONITOR_OPTIONS channel variable can now be used to configure the options used by the mixmonitor application when it is started via automixmon. If both TOUCH_MIXMONITOR_OPTIONS and TOUCH_MIXMONITOR_BEEP are set, TOUCH_MIXMONITOR_BEEP is ignored with a warning. - #### Audiohooks: Allow whisper audiohooks to work without an underlying stream There is no longer a requirement to play silence or otherwise have a stream of audio being sent to a hooked channel for whispered frames to be heard. - #### Bundled pjproject: Make it easier to override options in config_site.h. Bundled pjproject: It's now possible to override some of the pjproject build options contained in ./third-party/pjproject/patches/config_site.h by adding PJPROJECT_CFLAGS to your Asterisk ./configure command line. For example: `./configure ... PJPROJECT_CFLAGS='-DPJ_OPT1=8192 -DPJ_OPT2=512'` Any option in config_site.h that's wrapped in a `#ifndef` block can be overridden and many of the `PJSIP` options displayed by `pjproject show buildopts` can be set. WARNING: Adjusting these options without understanding their effect can cripple your Asterisk instances. You shouldn't adjust them unless you need to solve a specific issue. Resolves: #2011 - #### manager: Move away from shared linked list for events. The "manager show eventq" CLI command has been removed as there is no longer a single event queue to display. - #### res_pjsip: Add external_signaling_hostname transport option A new pjsip.conf transport option 'external_signaling_hostname' has been added. When set, this value will be used in SIP Contact and Via headers instead of the automatically determined IP address. This option is mutually exclusive with 'external_signaling_address'. - #### WebSocket Enhancements: Proxies and Keepalives for ARI and Media Outbound Websockets. Forward/outbound proxies can now be specified for outbound websockets. See the websocket_client.conf.sample file for configuration information. TCP-level or WebSocket PING/PONG keepalives can now be enabled on ### Upgrade Notes: - #### jansson: Upgrade version to jansson 2.15.1 jansson has been upgraded to 2.15.1. For more information visit jansson Github page: https://github.com/akheron/jansson/releases/tag/v2.15.1 ### Developer Notes: - #### WebSocket Enhancements: Proxies and Keepalives for ARI and Media Outbound Websockets. The addition of the proxy and keepalive configuration parameters pushed the websocket client parameter count over 32. This necessitated changing the size of the ast_ws_client_fields enum from a 32 bit bitfield to a 64-bit bitfield with a corresponding change to the ast_websocket_client structure. ### Closed Issues: - 871: [bug]: CHANNEL(PJSIP,local_addr) and CHANNEL(PJSIP,remote_addr) not available on outgoing channels - 1398: [bug]: AOR matching for inbound registration not working with domain involved and identifying by contact header - 1625: [bug]: `ast_openstream` should stop at the first compatible file - 1749: [improvement]: Make Asterisk compatible with Microsoft Teams Phone System. - 1779: [bug]: MixMonitor with flag D produces garbage in a 16KHz bridge - 1849: [improvement]: chan_local: Update references to chan_local for Local channels - 1881: [improvement]: Add HTTP proxy support for outbound WebSocket connections in websocket_client.conf (chan_websocket / ARI ExternalMedia) - 1882: [new-feature]: Ensure errors and warnings get through logger when reloading - 1933: [improvement]: Outbound Websockets: Add keepalive mechanisms - 1946: [bug]: Deadlock between RTP instance and ICE session - 1965: [bug]: Memory leak when receiving malformed 200 OK in response to re-INVITE - 1966: [improvement]: Allow whisper audiohooks to work without an underlying audio stream - 1979: [bug]: res_http_websocket: outbound client handshake read has no timeout — a non-responsive server hangs the calling thread forever while holding the channel lock, stalling the whole process - 1981: [improvement]: Support recording multichannel raw files with automixmon - 2006: [bug]: WebSocket Channel, odd frame is dropped after `STOP_MEDIA_BUFFERING` - 2011: [bug]: PJSIP TCP transport stops processing after upgrade to Asterisk 22.10.1 / bundled PJPROJECT 2.17 with ioqueue_epol free_list assertion - 2020: [bug]: Possible leak of inbound websocket session - 2021: [bug]: Segfault in res_pjsip_refer when doing an ARI controlled transfer with Refer-Sub: false. - 2024: [improvement]:Re-add pjsua application to third party build - 2026: [improvement]: res_pjsip: dtmf_mode documentation is incomplete - 2033: [improvement]: jansson: Upgrade version to jansson 2.15.1 - 2038: [bug]: Using chan_websocket prevents using "dangerous" functions in the dialplan - 2051: [bug]: res_musiconhold: answeredonly leaks a mohclass reference on unanswered channels - 2054: [bug]: backtrace.c: Compilation failure due to use of removed type - 2056: [bug]: pjsua fails to build if the address sanitizer is used. - 2059: [bug]: Occasional call drops during re-INVITE when codec changes - 2061: [bug]: backtrace.c: stdbool.h needed for portability - 2085: [bug]: res_http_websocket: SEGV if we're a server and receive a PONG frame
Update to Asterisk 23.4.1: ## Change Log for Release asterisk-23.4.1 ### Links: - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.4.1.html) - [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.4.0...23.4.1) ### Summary: - Commits: 19 - Commit Authors: 6 - Issues Resolved: 0 - Security Advisories Resolved: 20 - [GHSA-3g56-cgrh-95p5](https://github.com/asterisk/asterisk/security/advisories/GHSA-3g56-cgrh-95p5): chan_unistim DIALPAGE digit handling can overflow phone_number and crash Asterisk - [GHSA-3rhj-hhw7-m6fw](https://github.com/asterisk/asterisk/security/advisories/GHSA-3rhj-hhw7-m6fw): NULL Pointer Dereference in HTTP AMI Digest Authentication - [GHSA-4pgv-j3mr-3rcp](https://github.com/asterisk/asterisk/security/advisories/GHSA-4pgv-j3mr-3rcp): Reflected XSS in Phone Provisioning HTTP Error Pages - [GHSA-589g-qgf8-m6mx](https://github.com/asterisk/asterisk/security/advisories/GHSA-589g-qgf8-m6mx): Stack buffer overflow in MWI NOTIFY Message-Account parsing - [GHSA-746q-794h-cc7f](https://github.com/asterisk/asterisk/security/advisories/GHSA-746q-794h-cc7f): Out-of-Bounds Read in Q.931 Information Element Parser (H.323 Addon) - [GHSA-8jhw-m2hg-vp3h](https://github.com/asterisk/asterisk/security/advisories/GHSA-8jhw-m2hg-vp3h): Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex) - [GHSA-8jw3-ccr9-xrmf](https://github.com/asterisk/asterisk/security/advisories/GHSA-8jw3-ccr9-xrmf): Buffer over-read in Asterisk PJSIP MWI body parser - [GHSA-g8q2-p36q-94f6](https://github.com/asterisk/asterisk/security/advisories/GHSA-g8q2-p36q-94f6): Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing - [GHSA-h5hv-jmgj-92q2](https://github.com/asterisk/asterisk/security/advisories/GHSA-h5hv-jmgj-92q2): CVE-2022-37325 fix is absent from current chan_ooh323 Q.931 party-number parser - [GHSA-j2mm-57pq-jh94](https://github.com/asterisk/asterisk/security/advisories/GHSA-j2mm-57pq-jh94): Possible RED T.140 Generation Accumulation OOB Write - [GHSA-mxgm-8c6f-5p8f](https://github.com/asterisk/asterisk/security/advisories/GHSA-mxgm-8c6f-5p8f): Stack buffer overflow in res_xmpp XMPP namespace prefix handling - [GHSA-ph27-3m5q-mj5m](https://github.com/asterisk/asterisk/security/advisories/GHSA-ph27-3m5q-mj5m): SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field - [GHSA-q9fr-m7g8-6ph5](https://github.com/asterisk/asterisk/security/advisories/GHSA-q9fr-m7g8-6ph5): Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers - [GHSA-qf8j-jp7h-c5hx](https://github.com/asterisk/asterisk/security/advisories/GHSA-qf8j-jp7h-c5hx): Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch - [GHSA-r6c2-hwc2-j4mp](https://github.com/asterisk/asterisk/security/advisories/GHSA-r6c2-hwc2-j4mp): LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure) - [GHSA-vfhr-r9x9-c687](https://github.com/asterisk/asterisk/security/advisories/GHSA-vfhr-r9x9-c687): Possible RED T.140 Heap Buffer Overflow - [GHSA-vrfp-mg3q-3959](https://github.com/asterisk/asterisk/security/advisories/GHSA-vrfp-mg3q-3959): ARI setChannelVar bypasses live_dangerously and permits FILE() writes - [GHSA-wcvv-g26m-wx5c](https://github.com/asterisk/asterisk/security/advisories/GHSA-wcvv-g26m-wx5c): ARI REST-over-WebSocket read-only bypass allows arbitrary module path load and conditional RCE - [GHSA-x348-j6c9-77f3](https://github.com/asterisk/asterisk/security/advisories/GHSA-x348-j6c9-77f3): Stack Buffer Overflow in H.323 ooTrace() via Unbounded vsprintf into Fixed 2048-byte Buffer - [GHSA-xgj6-2gc5-5x9c](https://github.com/asterisk/asterisk/security/advisories/GHSA-xgj6-2gc5-5x9c): ast_loggrabber executes python script in world writable directory(`/tmp`) leading to potential privilege escalation And RCE ### Developer Notes: - #### ARI: Make ARI applications respect live_dangerously. ARI applications can no longer call "dangerous" dialplan functions like DB(), FILE(), SHELL(), CURL(), STAT(), etc. without enabling "live_dangerously" in asterisk.conf. Resolves: #GHSA-vrfp-mg3q-3959 ### Commit Authors: - George Joseph: (6) - Mike Bradeen: (3) - Milan Kyselica: (7) - Pengpeng Hou: (1) - Roberto Paleari: (1) - ThatTotallyRealMyth: (1) ## Issue and Commit Detail: ### Closed Issues: - !GHSA-3g56-cgrh-95p5: chan_unistim DIALPAGE digit handling can overflow phone_number and crash Asterisk - !GHSA-3rhj-hhw7-m6fw: NULL Pointer Dereference in HTTP AMI Digest Authentication - !GHSA-4pgv-j3mr-3rcp: Reflected XSS in Phone Provisioning HTTP Error Pages - !GHSA-589g-qgf8-m6mx: Stack buffer overflow in MWI NOTIFY Message-Account parsing - !GHSA-746q-794h-cc7f: Out-of-Bounds Read in Q.931 Information Element Parser (H.323 Addon) - !GHSA-8jhw-m2hg-vp3h: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex) - !GHSA-8jw3-ccr9-xrmf: Buffer over-read in Asterisk PJSIP MWI body parser - !GHSA-g8q2-p36q-94f6: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing - !GHSA-h5hv-jmgj-92q2: CVE-2022-37325 fix is absent from current chan_ooh323 Q.931 party-number parser - !GHSA-j2mm-57pq-jh94: Possible RED T.140 Generation Accumulation OOB Write - !GHSA-mxgm-8c6f-5p8f: Stack buffer overflow in res_xmpp XMPP namespace prefix handling - !GHSA-ph27-3m5q-mj5m: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field - !GHSA-q9fr-m7g8-6ph5: Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers - !GHSA-qf8j-jp7h-c5hx: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch - !GHSA-r6c2-hwc2-j4mp: LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure) - !GHSA-vfhr-r9x9-c687: Possible RED T.140 Heap Buffer Overflow - !GHSA-vrfp-mg3q-3959: ARI setChannelVar bypasses live_dangerously and permits FILE() writes - !GHSA-wcvv-g26m-wx5c: ARI REST-over-WebSocket read-only bypass allows arbitrary module path load and conditional RCE - !GHSA-x348-j6c9-77f3: Stack Buffer Overflow in H.323 ooTrace() via Unbounded vsprintf into Fixed 2048-byte Buffer - !GHSA-xgj6-2gc5-5x9c: ast_loggrabber executes python script in world writable directory(`/tmp`) leading to potential privilege escalation And RCE ### Commit List: - ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory. - chan_unistim.c: Prevent overrun of phone_number field. - ooh323c: not checking for IE minimum length - res_ari: Ensure read-only users are properly authorized via REST Over WebSocket. - pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address. - ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds. - ARI: Make ARI applications respect live_dangerously. - res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns. - res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser - manager: Use remote address in user error logging - ooh323: Prevent potential buffer overflow in trace logging - app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers - res_xmpp: Fix stack buffer overflow in namespace prefix handling - res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser - res_config_ldap: Escape LDAP filter values per RFC 4515 - cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection - http: Escape error page text to prevent reflected XSS - codec_codec2: Only process complete Codec2 frames in decoder - format_ogg_speex: Add bounds check to prevent heap buffer overflow
Update to Asterisk 23.4.0:
## Change Log for Release asterisk-23.4.0
### Links:
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.4.0.html)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.3.0...23.4.0)
### Summary:
- Commits: 53
- Commit Authors: 24
- Issues Resolved: 43
- Security Advisories Resolved: 0
### User Notes:
- #### res ari: Add attachable states to Channels and Bridges
Bridge variables now can be set and retrieved via the following paths:
`/bridges/{bridgeId}/variable`
`/bridges/{bridgeId}/variables`
Both Bridge and Channel variables can now be set with an optional 'report_events'
boolean flag that will cause those variables to be included on all events on that
object. The 'report_events' flag will default to False if not set to maintain
backwards capability.
To allow this, variables can now be either name value pairs (the current format):
`<variable_name>: '<value_string>'`
- or -
`<variable_name>: {value: '<value_string>', report_events: [true|false]}`
- #### ARI: Added paths to get and set multiple channel variables.
Added new ARI paths for getting and setting multiple channel
variables at a time. For GET, this takes in a single string of
comma-separated variable names, while POST takes in a dictionary of key
value pairs. The behavior is the same as passing in variables when
originating a channel.
- #### res_rtp_asterisk: Add option to control stun host resolution when TTL = 0
A new `stunaddr_reresolve_ttl_0` parameter has been added to rtp.conf
that allows control over what happens when a STUN server hostname lookup
returns a TTL of 0. The values can be set as follows:
- 'no': This is the historical (and current default) behavior of not doing
any further lookups and continuing to use the last successful result until
Asterisk is restarted or rtp.conf is reloaded.
- 'yes': Use the last cached result for the current call but trigger
re-resolution in the background for the benefit of future calls.
If the result of the background lookup is a ttl > 0, periodic resolution
will be restarted otherwise the next call will use the new cached value
and will trigger a background lookup again.
A new CLI command `rtp resolve stun hostname` has been added
- #### app_dial: Properly handle callee hangup while sending digits.
If a called channel sends progress or wink and the caller begins
sending digits but the callee answers and then hangs up before digit
sending can finish, the call is now answered before being disconnected.
If the callee hangs up without answering, the call now continues in
the dialplan.
- #### Upgrade bundled pjproject to 2.17.
Bundled pjproject has been upgraded to 2.17. For more
information about what is included in this release, see the
pjproject Github page: https://github.com/pjsip/pjproject/releases/tag/2.17
- #### res_pjsip: Add per-endpoint RTP port range configuration
PJSIP endpoints now support rtp_port_start and
rtp_port_end options to configure a dedicated RTP port range per
endpoint, overriding the global rtp.conf setting.
- #### stasis_broadcast: Add optional ARI broadcast with first-claim-wins
New optional modules res_stasis_broadcast.so and
app_stasis_broadcast.so enable broadcasting an incoming channel to multiple
ARI applications. The first application to successfully claim (via
POST /ari/events/claim) wins channel control. StasisBroadcast() dialplan
application initiates broadcasts. CallBroadcast and CallClaimed events notify
applications. When modules are not loaded, behavior is unchanged.
- #### chan_iax2: Add CHANNEL getter to retrieve auth method.
CHANNEL(auth_method) can now be used to retrieve the
auth method negotiated for a call on IAX2 channels.
- #### res_pjsip_maintenance: Add PJSIP endpoint maintenance mode
New module res_pjsip_maintenance adds runtime maintenance
mode for PJSIP endpoints. Use "pjsip set maintenance <on|off>
<endpoint|all>" to enable or disable, and "pjsip show maintenance"
to list affected endpoints. AMI actions PJSIPSetMaintenance and
PJSIPShowMaintenance provide programmatic access. No configuration
file changes required.
### Upgrade Notes:
- #### jansson: Upgrade version to jansson 2.15.0
jansson has been upgraded to 2.15.0. For more
information visit jansson Github page: https://github.com/akheron/jansson/releases/tag/v2.15.0
- #### res_pjsip: Add per-endpoint RTP port range configuration
An alembic database migration has been added to add
the rtp_port_start and rtp_port_end columns to the ps_endpoints
table. Run "alembic upgrade head" to apply the schema change.
### Developer Notes:
- #### res_pjsip: Add per-endpoint RTP port range configuration
New public API: ast_rtp_instance_new_with_port_range()
creates an RTP instance with a per-instance port range.
ast_rtp_instance_get_port_start() and ast_rtp_instance_get_port_end()
allow RTP engines to query the override. Third-party RTP engines can
use these getters to support per-instance port ranges.
- #### stasis_broadcast: Add optional ARI broadcast with first-claim-wins
New public APIs in stasis_app_broadcast.h:
stasis_app_broadcast_channel(), stasis_app_claim_channel(),
stasis_app_broadcast_winner(), and stasis_app_broadcast_wait(). New ARI event
types (CallBroadcast, CallClaimed) added to events.json. All code is isolated;
no existing ABI modified.
- #### res_pjsip_maintenance: Add PJSIP endpoint maintenance mode
ast_sip_session_supplement gains a new optional
callback - int (*session_create)(struct ast_sip_endpoint *endpoint,
const char *destination). It is called from the global supplement
list (not per-session) at the start of ast_sip_session_create_outgoing()
via ast_sip_session_check_supplement_create(). Returning non-zero
blocks the outgoing session. Modules that need to gate outbound
SIP session creation should register a supplement with this callback
set rather than hooking into chan_pjsip directly.
- #### build: remove pjsua, pjsystest, Python bindings and asterisk_malloc_debug stubs from pjproject dev build
The pjsua and pjsystest application binaries, the deprecated
Python pjsua bindings (`_pjsua.so`), and the `asterisk_malloc_debug.c` stub
implementations are no longer built or installed as part of the bundled
pjproject dev mode build. The `PYTHONDEV` (python2.7-dev) build dependency
is also removed. Developers who relied on the pjsua binary for Test Suite
SIP simulation should use SIPp instead, which is the current Asterisk Test
Suite standard.
Fixes: #1840
## Issue and Commit Detail:
### Closed Issues:
- 1217: [bug]: INSERT INTO cdr query prepare statement issue on cdr_adaptive_odbc to control statement preparation manually
- 1357: [bug]: MessageSend WARNING “not a valid SIP/SIPS URI” when using endpoint not URI
- 1653: [bug]: Asterisk ODBC Voicemail Crash Caused by Voicemail Re-entry Loop and Unsafe BLOB Retrieval
- 1736: app_queue: update_queue() may double-increment member->calls with shared_lastcall=yes (regression observed after 20.17; impacts fewestcalls routing)
- 1761: func_talkdetect.c: TALK_DETECT docs wording mistake
- 1762: [bug]: 100% CPU usage when entering BridgeWait after JITTERBUFFER(disabled)=
- 1807: [new-feature]: translate.c: implement different types of sample frame inputs
- 1812: [new-feature]: add tests/test_codec_translations.c
- 1818: [bug]: func_odbc: possible use-after-free crash during reload with active calls
- 1839: Crash in MDMF Caller ID parser due to signed char length field on DAHDI channels
- 1840: [bug]: Asterisk fails to compile with --enable-dev-mode=yes due to INIT_RETURN undeclared in bundled pjproject Python bindings
- 1855: [bug]: core reload deadlocks Asterisk (pjsip, CLI, etc.)
- 1858: [bug]: DNS records with a TTL of zero are permanently cached
- 1859: [bug]: res_pjsip_outbound_registration: No expires header set when triggered via CLI
- 1861: [bug]: Possible heap corruption in audiohook/translate write path during bridged media
- 1862: [bug]: Build fails with Building Documentation: line 210: /tmp/xmldoc.tmp.xml: Permission denied
- 1865: [bug]: chan_iax2: Another code path that causes crashes on negative data lengths
- 1867: [bug]: Massive [eventpoll] file-descriptor leak (hundreds of epoll fds) when TURN is enabled in rtp.conf
- 1872: [bug]: Deadlock in chan_pjsip_new when endpoint set_var invokes PJSIP_HEADER
- 1878: [new-feature]: chan_iax2: Allow retrieving the auth method using the CHANNEL function
- 1883: [bug]: fix: stdatomic.h false positive on GCC 4.8
- 1885: [bug]: cdrel_custom :SQLite version too old: sqlite3_prepare_v3 / SQLITE_PREPARE_PERSISTENT undeclared
- 1888: [improvement]: pjsip: Upgrade bundled version to pjproject 2.17
- 1892: [bug]: Build failure with bundled pjproject on OpenSSL 1.0.x: undefined reference to TLS_method and SSL_CTX_set_ciphersuites
- 1894: [bug]: Outbound ARI websockets don't always clean up completely
- 1896: [bug]: asterisk.c fails to compile when HAVE_LIBEDIT_IS_UNICODE isn't defined
- 1901: [bug]: QUEUE_RAISE_PENALTY=rN ignored when set via queue rules
- 1903: [bug]: g++ 16 no longer defines __STDC_VERSION__ causing channelstorage_cpp_map_name_id.cc to fail
- 1907: [bug]: Deadlock between bridge and setting of RTP stats variables at hangup
- 1910: [improvement]: Add attachable state variables to Channels and Bridges.
- 1915: [bug]: app_dial: Channel not handled properly if callee disconnects while caller is sending it digits prior to answer
- 1921: [bug]: Memory error in crypto_get_cert_subject when using malloc_debug
- 1928: [bug]: Calling ast_softhangup with channel lock held can cause deadlock
- 1931: [improvement]: jansson: Upgrade version to jansson 2.15.0
- 1936: [bug]: Calling set_variable on PJSIP channel when originating with ARI with PJSIP_HEADER can result in deadlock
- 1938: [bug]: res_rtp_asterisk: Copy/paste error in ast_rtp_get_stat()
- 1941: [bug]: chan_websocket doesn't handle CONTINUATION websocket frames
- 1947: [bug]: chan_dahdi fails to build with gcc-16 when openr2 is installed
- 1950: [bug]: app_record does not detect channel hangup during beep playback
- 1952: [bug]: OpenSSL 4.0.0
- 1957: [bug]: Calendar module fails to build with libical 4.X
- 1970: [bug]: Startup or shutdown segfault in res_ari_model under certain conditions with DEVMODE and persistent outbound websockets.
### Commit List:
- res_ari: Add res_ari_model as an optional_module.
- res ari: Add attachable states to Channels and Bridges
- ARI: Added paths to get and set multiple channel variables.
- res_stir_shaken: avoid direct ASN1_STRING accesses
- tcptls.c: fix build with OpenSSL 4
- res_calendar: Fix build with libical 4.X
- app_record: Fix hangup handling during beep playback
- odbc: Don't use prepared statements for distinct SQL statements
- abstract_jb.c: Remove timerfd from channel when disabling jitter buffer
- res_pjsip: Don't allow a leading period when wildcard matching
- Ensure channel locks aren't held while calling ast_set_variables.
- app_queue: fix double increment of member->calls with shared_lastcall
- chan_dahdi: Fix set but not used in mfcr2_show_links_of().
- tests: add tests/test_codec_translations.c
- install_prereq: Add a 'minimal' mode for basic build dependencies
- chan_websocket: Handle incoming CONTINUATION frames.
- res_rtp_asterisk: Fix incorrect reference in ast_rtp_get_stat().
- jansson: Upgrade version to jansson 2.15.0
- channel.c: Move setting RTP stats from ast_softhangup to ast_ari_channels_hangup.
- res_rtp_asterisk: Add option to control stun host resolution when TTL = 0
- pjsip_configuration: Show actual dtls_verify config.
- app_dial: Properly handle callee hangup while sending digits.
- res_pjsip_messaging: Update To URI only if it is a SIP(S) URI
- Upgrade bundled pjproject to 2.17.
- res_stir_shaken: fix memory free crash when Asterisk is built with malloc_debug
- manager: Eliminate unnecessary code, simplify sessions in stasis callbacks
- res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup
- res_pjsip_outbound_publish.c: Add more verbose documentation for outbound_proxy usage
- channel.c: Don't lock the channel in ast_softhangup while setting rtp instance vars
- chan_pjsip: Fix deadlock when endpoint set_var uses PJSIP_HEADER
- res_pjsip: Add per-endpoint RTP port range configuration
- app_queue: Fix raise_respect_min lost in copy_rules() breaking rN queue rules
- app_voicemail_odbc: fix msgnum race and crash on failed STORE
- ari_websockets: Fix two issues in the cleanup of outbound websockets.
- compat.h: Ensure check for `__STDC_VERSION__` is not attempted for c++.
- pjproject: Backport fix for OpenSSL < 1.1.0 build failure in ssl_sock_ossl.c
- asterisk.c: Fix #if HAVE_LIBEDIT_IS_UNICODE.
- cdrel_custom: fix SQLite compatibility for versions < 3.20.0
- translate.c: implement different sample_types for translation computation.
- stasis_broadcast: Add optional ARI broadcast with first-claim-wins
- res_audiosocket: Tolerate non-audio frame types
- pbx_functions: Save module pointer before calling read and write callbacks.
- chan_iax2: Add CHANNEL getter to retrieve auth method.
- fix: backport pjproject stdatomic.h GCC 4.8 build failure patch
- res_rtp_asterisk: Destroy ioqueue in rtp_ioqueue_thread_destroy.
- res_pjsip_maintenance: Add PJSIP endpoint maintenance mode
- chan_iax2: Add another check to abort frame handling if datalen < 0.
- res_pjsip_outbound_registration: only update the Expires header if the value has changed
- func_talkdetect.c: Clarify dsp_talking_threshold documentation.
- make_xml_documentation: Remove temporary file on script exit.
- res_pjsip_config_wizard: Trigger reloads from a pjsip servant thread
- build: remove pjsua, pjsystest, Python bindings and asterisk_malloc_debug stubs from pjproject dev build
- callerid: fix signed char causing crash in MDMF parser
*: Recursive revbump from security/nettle-4.0
Update to Asterisk 23.3.0: ## Change Log for Release asterisk-23.3.0 ### Links: - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.3.0.html) - [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.2.2...23.3.0) ### Summary: - Commits: 50 - Commit Authors: 21 - Issues Resolved: 34 - Security Advisories Resolved: 0 ### User Notes: - #### acl: Add ACL support to http and ari 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 - #### res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check 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. - #### docs: Add "Provided-by" to doc XML and CLI output. The CLI help for applications, functions, manager commands and manager events now shows the module that provides its functionality. - #### CDR/CEL Custom Performance Improvements 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. - #### chan_websocket: Add media direction. 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. - #### app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option 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. - #### Upgrade bundled pjproject to 2.16. 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 - #### res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function 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. - #### app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric 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. ## Issue and Commit Detail: ### Closed Issues: - 449: [bug]: PJSIP confuses media address after INVITE requiring authentication - 566: [bug]: core: SIGSEGV on DTMF when no timing modules loaded - 1356: [bug]: MESSAGE requests should not contain a Contact header - 1524: [bug]: PJSIP if sdp_session is blank the initial INVITE doesn't attach an SDP offer, worked in chan_sip - 1611: [bug]: asterisk deadlocked on start sometimes - 1612: [improvement]: pjsip: Upgrade bundled version to pjproject 2.16 - 1637: [improvement]: force_longest_waiting_caller should also consider caller priority - 1641: [bug]: res_pjsip_config_wizard: Endpoints fail to update when Named ACLs change after reload - 1651: [bug]: Asterisk crashes with munmap_chunk() when using sorcery realtime for PJSIP registration objects - 1657: [bug]: Wrong dtmf payload is used when inbound invite contains 8K and 16K, and outgoing leg is using G722 and SRTP - 1670: [new-feature]: Add new option to PJSIP_HEADER to pass headers from the inbound to outbound channel. - 1691: [bug]: force_longest_waiting_caller stops offering calls if a call joins at the first position - 1703: [bug]: res_pjsip_pubsub: ao2 reference leak of subscription tree in ast_sip_subscription - 1707: [bug]: chan_iax2: Crash when processing video frames with negative length - 1716: [bug]: Ghost call when UAC didn't respond with 487 for a cancel request from server even after original call hangup. - 1724: [improvement]: say.c - added language support for pashto and dari - 1730: [bug]: CPP channel storage get_by_name_prefix does not check prefix match - 1755: [bug]: app_dial, utils.h: Compilation failure with -Wold-style-declaration and -Wdiscarded-qualifiers - 1781: [bug]: More discarded-qualifiers errors with gcc 15.2.1 - 1783: [bug]: Several unused-but-set-variable warnings with gcc 16 - 1785: [bug]: chan_websocket doesn’t work with genericplc and transcoding - 1786: [bug]: chan_dahdi: A few more discarded-qualifiers errors not caught previously - 1795: [bug]: DTLS packets dropped when TURN configured in rtp.conf due to loopback re-injection occurring before ICE candidate source check - 1797: [bug]: Potential logic issue in translated frame write loop (main/file.c) - 1802: [improvement]: app_dial: Channel name should be included in warnings during wait_for_answer - 1804: [new-feature]: dsp.c: Add support for R2 signaling - 1814: [bug]: A pjsip transport with an invalid config can cause issues with other transports - 1816: [bug]: ARI: RTPAUDIO channel vars aren't set if call hung up by ARI. - 1819: [bug]: When a 302 is received from a UAS, the cause and tech_cause codes set on the channel are incorrect. - 1831: [bug]:raise_exception() and EXCEPTION() read use channel datastores without holding ast_channel_lock - 1833: [bug]: Address security vulnerabilities in pjproject - 1844: [bug]: cdrel_custom isn't respecting the default time format for CEL records - 1845: [bug]:res_cdrel_custom produces wrong float timestamps - 1852: [bug]: res_cdrel_custom: connection to the sqlite3 database closes from time to time ### Commit List: - res_cdrel_custom: do not free config when no new config was loaded - res_cdrel_custom: Resolve several formatting issues. - res_pjsip: Address pjproject security vulnerabilities - pbx: Hold channel lock for exception datastore access - xmldoc.c: Fix memory leaks in handling of provided_by. - SECURITY.md: Update with additional instructions. - res_audiosocket: Fix header read loop to use correct buffer offset - manager.c : Fix CLI event display - chan_pjsip: Set correct cause codes for non-2XX responses. - res_pjsip_config_wizard: Force reload on Named ACL change events - rtp: Set RTPAUDIOQOS variables when ast_softhangup is called. - channel: Prevent crash during DTMF emulation when no timing module is loaded - res_pjsip: Remove temp transport state when a transport fails to load. - res_pjsip_messaging: Remove Contact header from out-of-dialog MESSAGE as per RFC3428 - acl: Add ACL support to http and ari - res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check - dsp.c: Add support for detecting R2 signaling tones. - app_dial: Include channel name in warnings during wait_for_answer. - main/file: fix translated-frame write loop to use current frame - docs: Add "Provided-by" to doc XML and CLI output. - chan_websocket_doc.xml: Add d(media_direction) option. - resource_channels.c: Fix validation response for externalMedia with AudioSockets - CDR/CEL Custom Performance Improvements - chan_websocket: Remove silence generation and frame padding. - chan_websocket: Add media direction. - fix: Add macOS (Darwin) compatibility for building Asterisk - astconfigparser.py: Fix regex pattern error by properly escaping string - res_rtp_asterisk: use correct sample rate lookup to account for g722 - res_pjsip_outbound_registration.c: Prevent crash if load_module() fails - pjsip_configuration: Ensure s= and o= lines in SDP are never empty - res_pjsip_session: Make sure NAT hook runs when packet is retransmitted for whatever reason. - chan_dahdi: Fix discarded-qualifiers errors. - build: Fix unused-but-set-variable warnings with gcc 16. - build: Fix another GCC discarded-qualifiers const error. - chan_iax2: Fix crash due to negative length frame lengths. - build: Fix GCC discarded-qualifiers const errors. - endpoints: Allow access to latest snapshot directly. - app_dial, utils.h: Avoid old style declaration and discarded qualifier. - app_queue: Add 'prio' setting to the 'force_longest_waiting_caller' option - Upgrade bundled pjproject to 2.16. - res_pjsip_header_funcs: Add new PJSIP_INHERITABLE_HEADER dialplan function - app_queue: Queue Timing Parity with Dial() and Accurate Wait Metrics - stasis.c: Fix deadlock in stasis_topic_pool_get_topic during module load - app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric - app_queue: Only compare calls at 1st position across queues when forcing longest waiting caller. - channelstorage_cpp_map_name_id: Fix get_by_name_prefix prefix match - app_amd: Remove errant space in documentation for totalAnalysisTime. - say.c: added language support for pashto and dari - res_pjsip_session.c: Prevent INVITE failover when session is cancelled - res_pjsip_pubsub: Fix ao2 reference leak of subscription tree in ast_sip_subscription
*: remove OWNER definition OWNER, when it was introduced, was to protect packages deep in the infrastructure by emphasizing that they should not be touched by non-MAINTAINERs. No infrastructure package still sets OWNER. Note: non-trivial change to packages should be passed by MAINTAINERs. As discussed on tech-pkg.
update to Asterisk 23.2.2:
----- 23.2.2 -----
## Change Log for Release asterisk-23.2.2
### Links:
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.2.2.html)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.2.1...23.2.2)
### Summary:
- Commits: 4
- Commit Authors: 2
- Issues Resolved: 0
- Security Advisories Resolved: 4
- [GHSA-85x7-54wr-vh42](https://github.com/asterisk/asterisk/security/advisories/GHSA-85x7-54wr-vh42): Asterisk xml.c uses unsafe XML_PARSE_NOENT leading to potential XXE Injection
- [GHSA-rvch-3jmx-3jf3](https://github.com/asterisk/asterisk/security/advisories/GHSA-rvch-3jmx-3jf3): ast_coredumper running as root sources ast_debug_tools.conf from /etc/asterisk; potentially leading to privilege escalation
- [GHSA-v6hp-wh3r-cwxh](https://github.com/asterisk/asterisk/security/advisories/GHSA-v6hp-wh3r-cwxh): The Asterisk embedded web server's /httpstatus page echos user supplied values(cookie and query string) without sanitization
- [GHSA-xpc6-x892-v83c](https://github.com/asterisk/asterisk/security/advisories/GHSA-xpc6-x892-v83c): ast_coredumper runs as root, and writes gdb init file to world writeable folder; leading to potential privilege escalation
### User Notes:
- #### ast_coredumper: check ast_debug_tools.conf permissions
ast_debug_tools.conf must be owned by root and not be
writable by other users or groups to be used by ast_coredumper or
by ast_logescalator or ast_loggrabber when run as root.
### Upgrade Notes:
- #### http.c: Change httpstatus to default disabled and sanitize output.
To prevent possible security issues, the `/httpstatus` page
served by the internal web server is now disabled by default. To explicitly
enable it, set `enable_status=yes` in http.conf.
----- 23.2.1 -----
## Change Log for Release asterisk-23.2.1
### Links:
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.2.1.html)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.2.0...23.2.1)
### Summary:
- Commits: 1
- Commit Authors: 1
- Issues Resolved: 1
- Security Advisories Resolved: 0
## Issue and Commit Detail:
### Closed Issues:
- 1739: [bug]: Regression in 23.2.0 with regard to parsing fractional numbers when system locale is non-standard
----- 23.2.0 -----
## Change Log for Release asterisk-23.2.0
### Links:
- [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.2.0.html)
- [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.1.0...23.2.0)
### Summary:
- Commits: 58
- Commit Authors: 20
- Issues Resolved: 41
- Security Advisories Resolved: 0
### User Notes:
- #### chan_websocket.conf.sample: Fix category name.
The category name in the chan_websocket.conf.sample file was
incorrect. It should be "global" instead of "general".
- #### cli.c: Allow 'channel request hangup' to accept patterns.
The 'channel request hangup' CLI command now accepts
multiple channel names, POSIX Extended Regular Expressions, glob-like
patterns, or a combination of all of them. See the CLI command 'core
show help channel request hangup' for full details.
- #### res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate command
The AMI command sorcery memory cache populate will now
return an error if there is an internal error performing the populate.
The CLI command will display an error in this case as well.
- #### res_geolocation: Fix multiple issues with XML generation.
Geolocation: Two new optional profile parameters have been added.
* `pidf_element_id` which sets the value of the `id` attribute on the top-level
PIDF-LO `device`, `person` or `tuple` elements.
* `device_id` which sets the content of the `<deviceID>` element.
Both parameters can include channel variables.
- #### res_pjsip_messaging: Add support for following 3xx redirects
A new pjsip endpoint option follow_redirect_methods was added.
This option is a comma-delimited, case-insensitive list of SIP methods
for which SIP 3XX redirect responses are followed. An alembic upgrade
script has been added for adding this new option to the Asterisk
database.
- #### taskprocessors: Improve logging and add new cli options
New CLI command has been added -
core show taskprocessor name <taskprocessor-name>
- #### ccss: Add option to ccss.conf to globally disable it.
A new "enabled" parameter has been added to ccss.conf. It defaults
to "yes" to preserve backwards compatibility but CCSS is rarely used so
setting "enabled = no" in the "general" section can save some unneeded channel
locking operations and log message spam. Disabling ccss will also prevent
the func_callcompletion and chan_dahdi modules from loading.
- #### Makefile: Add module-list-* targets.
Try "make module-list-deprecated" to see what modules
are on their way out the door.
- #### app_mixmonitor: Add 's' (skip) option to delay recording.
This change introduces a new 's(<seconds>)' (skip) option to the MixMonitor
application. Example:
MixMonitor(${UNIQUEID}.wav,s(3))
This skips recording for the first 3 seconds before writing audio to the file.
Existing MixMonitor behavior remains unchanged when the 's' option is not used.
- #### app_queue.c: Only announce to head caller if announce_to_first_user
When announce_to_first_user is false, no announcements are played to the head caller
### Upgrade Notes:
- #### res_geolocation: Fix multiple issues with XML generation.
Geolocation: In order to correct bugs in both code and
documentation, the following changes to the parameters for GML geolocation
locations are now in effect:
* The documented but unimplemented `crs` (coordinate reference system) element
has been added to the location_info parameter that indicates whether the `2d`
or `3d` reference system is to be used. If the crs isn't valid for the shape
specified, an error will be generated. The default depends on the shape
specified.
* The Circle, Ellipse and ArcBand shapes MUST use a `2d` crs. If crs isn't
specified, it will default to `2d` for these shapes.
The Sphere, Ellipsoid and Prism shapes MUST use a `3d` crs. If crs isn't
specified, it will default to `3d` for these shapes.
The Point and Polygon shapes may use either crs. The default crs is `2d`
however so if `3d` positions are used, the crs must be explicitly set to `3d`.
* The `geoloc show gml_shape_defs` CLI command has been updated to show which
coordinate reference systems are valid for each shape.
* The `pos3d` element has been removed in favor of allowing the `pos` element
to include altitude if the crs is `3d`. The number of values in the `pos`
element MUST be 2 if the crs is `2d` and 3 if the crs is `3d`. An error
will be generated for any other combination.
* The angle unit-of-measure for shapes that use angles should now be included
in the respective parameter. The default is `degrees`. There were some
inconsistent references to `orientation_uom` in some documentation but that
parameter never worked and is now removed. See examples below.
Examples...
```
location_info = shape="Sphere", pos="39.0 -105.0 1620", radius="20"
location_info = shape="Point", crs="3d", pos="39.0 -105.0 1620"
location_info = shape="Point", pos="39.0 -105.0"
location_info = shape=Ellipsoid, pos="39.0 -105.0 1620", semiMajorAxis="20"
semiMinorAxis="10", verticalAxis="0", orientation="25 degrees"
pidf_element_id = ${CHANNEL(name)}-${EXTEN}
device_id = mac:001122334455
Set(GEOLOC_PROFILE(pidf_element_id)=${CHANNEL(name)}/${EXTEN})
```
- #### pjsip: Move from threadpool to taskpool
The threadpool_* options in pjsip.conf have now
been deprecated though they continue to be read and used.
They have been replaced with taskpool options that give greater
control over the underlying taskpool used for PJSIP. An alembic
upgrade script has been added to add these options to realtime
as well.
- #### app_directed_pickup.c: Change some log messages from NOTICE to VERBOSE.
In an effort to reduce log spam, two normal progress
"pickup attempted" log messages from app_directed_pickup have been changed
from NOTICE to VERBOSE(3). This puts them on par with other normal
dialplan progress messages.
### Developer Notes:
- #### ccss: Add option to ccss.conf to globally disable it.
A new API ast_is_cc_enabled() has been added. It should be
used to ensure that CCSS is enabled before making any other ast_cc_* calls.
- #### chan_websocket: Add ability to place a MARK in the media stream.
Apps can now send a `MARK_MEDIA` command with an optional
`correlation_id` parameter to chan_websocket which will be placed in the
media frame queue. When that frame is dequeued after all intervening media
has been played to the core, chan_websocket will send a
`MEDIA_MARK_PROCESSED` event to the app with the same correlation_id
(if any).
- #### chan_websocket: Add capability for JSON control messages and events.
The chan_websocket plain-text control and event messages are now
deprecated (but remain the default) in favor of JSON formatted messages.
See https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket for
more information.
A "transport_data" parameter has been added to the
*: recursive bump for nettle 4.0 shlib major bump
*: recursive bump for icu 78.1
Update to Asterisk 23.1.0. ## Change Log for Release asterisk-23.1.0 ### Links: - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-23.1.0.html) - [GitHub Diff](https://github.com/asterisk/asterisk/compare/23.0.0...23.1.0) ### Summary: - Commits: 53 - Commit Authors: 17 - Issues Resolved: 37 - Security Advisories Resolved: 0 ### User Notes: - #### res_stir_shaken: Add STIR_SHAKEN_ATTESTATION dialplan function. The STIR_SHAKEN_ATTESTATION dialplan function has been added which will allow suppressing attestation on a call-by-call basis regardless of the profile attached to the outgoing endpoint. - #### func_channel: Allow R/W of ADSI CPE capability setting. CHANNEL(adsicpe) can now be read or written to change the channels' ADSI CPE capability setting. - #### func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE() Added a new option to HANGUPCAUSE to access additional information about hangup reason. Reason headers from pjsip could be read using 'tech_extended' cause type. - #### func_math: Add DIGIT_SUM function. The DIGIT_SUM function can be used to return the digit sum of a number. - #### app_sf: Add post-digit timer option to ReceiveSF. The 't' option for ReceiveSF now allows for a timer since the last digit received, in addition to the number-wide timeout. - #### app_dial: Allow fractional seconds for dial timeouts. The answer and progress dial timeouts now have millisecond precision, instead of having to be whole numbers. - #### chan_dahdi: Add DAHDI_CHANNEL function. The DAHDI_CHANNEL function allows for getting/setting certain properties about DAHDI channels from the dialplan. ### Upgrade Notes: - #### app_queue.c: Fix error in Queue parameter documentation. As part of Asterisk 21, macros were removed from Asterisk. This resulted in argument order changing for the Queue dialplan application since the macro argument was removed. Upgrade notice was missed when this was done, so this upgrade note has been added to provide a record of such and a notice to users who may have not upgraded yet. - #### res_audiosocket: add message types for all slin sample rates New audiosocket message types 0x11 - 0x18 has been added for slin12, slin16, slin24, slin32, slin44, slin48, slin96, and slin192 audio. External applications using audiosocket may need to be updated to support these message types if the audiosocket channel is created with one of these audio formats. - #### taskpool: Add taskpool API, switch Stasis to using it. The threadpool_* options in stasis.conf have now been deprecated though they continue to be read and used. They have been replaced with taskpool options that give greater control over the underlying taskpool used for stasis. ### Developer Notes: - #### chan_pjsip: Add technology-specific off-nominal hangup cause to events. A "tech_cause" parameter has been added to the ChannelHangupRequest and ChannelDestroyed ARI event messages and a "TechCause" parameter has been added to the HangupRequest, SoftHangupRequest and Hangup AMI event messages. For chan_pjsip, these will be set to the last SIP response status code for off-nominally terminated calls. The parameter is suppressed for nominal termination. - #### ARI: The bridges play and record APIs now handle sample rates > 8K correctly. The ARI /bridges/play and /bridges/record REST APIs have new parameters that allow the caller to specify the format to be used on the "Announcer" and "Recorder" channels respecitvely. - #### taskpool: Add taskpool API, switch Stasis to using it. The taskpool API has been added for common usage of a pool of taskprocessors. It is suggested to use this API instead of the threadpool+taskprocessor approach. ## Issue and Commit Detail: ### Closed Issues: - 781: [improvement]: Allow call by call disabling Stir/Shaken header inclusion - 1340: [bug]: comfort noise packet corrupted - 1419: [bug]: static code analysis issues in app_adsiprog.c - 1422: [bug]: static code analysis issues in apps/app_externalivr.c - 1425: [bug]: static code analysis issues in apps/app_queue.c - 1434: [improvement]: pbx_variables: Create real channel for dialplan eval CLI command - 1436: [improvement]: res_cliexec: Avoid unnecessary cast to char* - 1451: [bug]: ast_config_text_file_save2(): incorrect handling of deep/wide template inheritance - 1455: [new-feature]: chan_dahdi: Add DAHDI_CHANNEL function - 1467: [bug]: Crash in res_pjsip_refer during REFER progress teardown with PJSIP_TRANSFER_HANDLING(ari-only) - 1478: [improvement]: Stasis threadpool -> taskpool - 1479: [bug]: The ARI bridge play and record APIs limit audio bandwidth by forcing the slin8 format. - 1483: [improvement]: sig_analog: Eliminate possible timeout for Last Number Redial - 1485: [improvement]: func_scramble: Add example to XML documentation. - 1487: [improvement]: app_dial: Allow partial seconds to be used for dial timeouts - 1489: [improvement]: config_options.c: Improve misleading error message - 1491: [bug]: Segfault: `channelstorage_cpp` fast lookup without lock (`get_by_name_exact`/`get_by_uniqueid`) leads to UAF during hangup - 1493: [new-feature]: app_sf: Add post-digit timer option - 1496: [improvement]: dsp.c: Minor fixes to debug log messages - 1499: [new-feature]: func_math: Add function to return the digit sum - 1501: [improvement]: codec_builtin: Fix some inaccurate quality weights. - 1505: [improvement]: res_fax: Add XML documentation for channel variables - 1507: [improvement]: res_tonedetect: Minor formatting issue in documentation - 1509: [improvement]: res_fax.c — log debug error as debug, not regular log - 1510: [new-feature]: sig_analog: Allow '#' to end the inter-digit timeout when dialing. - 1514: [improvement]: func_channel: Allow R/W of ADSI CPE capability setting. - 1517: [improvement]: core_unreal: Preserve ADSI capability when dialing Local channels - 1519: [improvement]: app_dial / func_callerid: DNIS information is not propagated by Dial - 1525: [bug]: chan_websocket: fix use of raw payload variable for string comparison in process_text_message - 1534: [bug]: app_queue when using gosub breaks dialplan when going from 20 to 21, What's new in 21 doesn't mention it's a breaking change, - 1535: [bug]: chan_pjsip changes SSRC on WebRTC channels, which is unsupported by some browsers - 1536: [bug]: asterisk -rx connects to console instead of executing a command - 1539: [bug]: safe_asterisk without TTY doesn't log to file - 1544: [improvement]: While Receiving the MediaConnect Message Using External Media Over websocket ChannelID is Details are missing - 1554: [bug]: safe_asterisk recurses into subdirectories of startup.d after f97361 - 1559: [improvement]: Handle TLS handshake attacks in order to resolve the issue of exceeding the maximum number of HTTPS sessions. - 1578: [bug]: Deadlock with externalMedia custom channel id and cpp map channel backend
comms/asterisk23: import asterisk-23.0.0 Asterisk is a complete PBX in software. It provides all of the features you would expect from a PBX and more. Asterisk does voice over IP in three protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware. Asterisk provides Voicemail services with Directory, Call Conferencing, Interactive Voice Response, Call Queuing. It has support for three-way calling, caller ID services, ADSI, SIP and H.323 (as both client and gateway). This is a standard version. It is scheduled to go to security fixes only on October 15th, 2026, and EOL on October 15th, 2027. See here for more information about Asterisk versions: https://docs.asterisk.org/About-the-Project/Asterisk-Versions/