Debian Codegraph @

ChangeLogs/ChangeLog-22.8.0.md

raw symbols SCIP
1
2 ## Change Log for Release asterisk-22.8.0
3
4 ### Links:
5
6 - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.8.0.html)
7 - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.7.0...22.8.0)
8 - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.8.0.tar.gz)
9 - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk)
10
11 ### Summary:
12
13 - Commits: 57
14 - Commit Authors: 19
15 - Issues Resolved: 40
16 - Security Advisories Resolved: 0
17
18 ### User Notes:
19
20 - #### chan_websocket.conf.sample: Fix category name.
21 The category name in the chan_websocket.conf.sample file was
22 incorrect. It should be "global" instead of "general".
23
24 - #### cli.c: Allow 'channel request hangup' to accept patterns.
25 The 'channel request hangup' CLI command now accepts
26 multiple channel names, POSIX Extended Regular Expressions, glob-like
27 patterns, or a combination of all of them. See the CLI command 'core
28 show help channel request hangup' for full details.
29
30 - #### res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate command
31 The AMI command sorcery memory cache populate will now
32 return an error if there is an internal error performing the populate.
33 The CLI command will display an error in this case as well.
34
35 - #### res_geolocation: Fix multiple issues with XML generation.
36 Geolocation: Two new optional profile parameters have been added.
37 * `pidf_element_id` which sets the value of the `id` attribute on the top-level
38 PIDF-LO `device`, `person` or `tuple` elements.
39 * `device_id` which sets the content of the `<deviceID>` element.
40 Both parameters can include channel variables.
41
42 - #### res_pjsip_messaging: Add support for following 3xx redirects
43 A new pjsip endpoint option follow_redirect_methods was added.
44 This option is a comma-delimited, case-insensitive list of SIP methods
45 for which SIP 3XX redirect responses are followed. An alembic upgrade
46 script has been added for adding this new option to the Asterisk
47 database.
48
49 - #### taskprocessors: Improve logging and add new cli options
50 New CLI command has been added -
51 core show taskprocessor name <taskprocessor-name>
52
53 - #### ccss: Add option to ccss.conf to globally disable it.
54 A new "enabled" parameter has been added to ccss.conf. It defaults
55 to "yes" to preserve backwards compatibility but CCSS is rarely used so
56 setting "enabled = no" in the "general" section can save some unneeded channel
57 locking operations and log message spam. Disabling ccss will also prevent
58 the func_callcompletion and chan_dahdi modules from loading.
59
60 - #### Makefile: Add module-list-* targets.
61 Try "make module-list-deprecated" to see what modules
62 are on their way out the door.
63
64 - #### app_mixmonitor: Add 's' (skip) option to delay recording.
65 This change introduces a new 's(<seconds>)' (skip) option to the MixMonitor
66 application. Example:
67 MixMonitor(${UNIQUEID}.wav,s(3))
68 This skips recording for the first 3 seconds before writing audio to the file.
69 Existing MixMonitor behavior remains unchanged when the 's' option is not used.
70
71 - #### app_queue.c: Only announce to head caller if announce_to_first_user
72 When announce_to_first_user is false, no announcements are played to the head caller
73
74
75 ### Upgrade Notes:
76
77 - #### res_geolocation: Fix multiple issues with XML generation.
78 Geolocation: In order to correct bugs in both code and
79 documentation, the following changes to the parameters for GML geolocation
80 locations are now in effect:
81 * The documented but unimplemented `crs` (coordinate reference system) element
82 has been added to the location_info parameter that indicates whether the `2d`
83 or `3d` reference system is to be used. If the crs isn't valid for the shape
84 specified, an error will be generated. The default depends on the shape
85 specified.
86 * The Circle, Ellipse and ArcBand shapes MUST use a `2d` crs. If crs isn't
87 specified, it will default to `2d` for these shapes.
88 The Sphere, Ellipsoid and Prism shapes MUST use a `3d` crs. If crs isn't
89 specified, it will default to `3d` for these shapes.
90 The Point and Polygon shapes may use either crs. The default crs is `2d`
91 however so if `3d` positions are used, the crs must be explicitly set to `3d`.
92 * The `geoloc show gml_shape_defs` CLI command has been updated to show which
93 coordinate reference systems are valid for each shape.
94 * The `pos3d` element has been removed in favor of allowing the `pos` element
95 to include altitude if the crs is `3d`. The number of values in the `pos`
96 element MUST be 2 if the crs is `2d` and 3 if the crs is `3d`. An error
97 will be generated for any other combination.
98 * The angle unit-of-measure for shapes that use angles should now be included
99 in the respective parameter. The default is `degrees`. There were some
100 inconsistent references to `orientation_uom` in some documentation but that
101 parameter never worked and is now removed. See examples below.
102 Examples...
103 ```
104 location_info = shape="Sphere", pos="39.0 -105.0 1620", radius="20"
105 location_info = shape="Point", crs="3d", pos="39.0 -105.0 1620"
106 location_info = shape="Point", pos="39.0 -105.0"
107 location_info = shape=Ellipsoid, pos="39.0 -105.0 1620", semiMajorAxis="20"
108 semiMinorAxis="10", verticalAxis="0", orientation="25 degrees"
109 pidf_element_id = ${CHANNEL(name)}-${EXTEN}
110 device_id = mac:001122334455
111 Set(GEOLOC_PROFILE(pidf_element_id)=${CHANNEL(name)}/${EXTEN})
112 ```
113
114 - #### pjsip: Move from threadpool to taskpool
115 The threadpool_* options in pjsip.conf have now
116 been deprecated though they continue to be read and used.
117 They have been replaced with taskpool options that give greater
118 control over the underlying taskpool used for PJSIP. An alembic
119 upgrade script has been added to add these options to realtime
120 as well.
121
122 - #### app_directed_pickup.c: Change some log messages from NOTICE to VERBOSE.
123 In an effort to reduce log spam, two normal progress
124 "pickup attempted" log messages from app_directed_pickup have been changed
125 from NOTICE to VERBOSE(3). This puts them on par with other normal
126 dialplan progress messages.
127
128
129 ### Developer Notes:
130
131 - #### ccss: Add option to ccss.conf to globally disable it.
132 A new API ast_is_cc_enabled() has been added. It should be
133 used to ensure that CCSS is enabled before making any other ast_cc_* calls.
134
135 - #### chan_websocket: Add ability to place a MARK in the media stream.
136 Apps can now send a `MARK_MEDIA` command with an optional
137 `correlation_id` parameter to chan_websocket which will be placed in the
138 media frame queue. When that frame is dequeued after all intervening media
139 has been played to the core, chan_websocket will send a
140 `MEDIA_MARK_PROCESSED` event to the app with the same correlation_id
141 (if any).
142
143 - #### chan_websocket: Add capability for JSON control messages and events.
144 The chan_websocket plain-text control and event messages are now
145 deprecated (but remain the default) in favor of JSON formatted messages.
146 See https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket for
147 more information.
148 A "transport_data" parameter has been added to the
149
150 ### Commit Authors:
151
152 - Alexei Gradinari: (1)
153 - C. Maj: (1)
154 - Daouda Taha: (1)
155 - George Joseph: (12)
156 - Joe Garlick: (2)
157 - Joshua C. Colp: (1)
158 - Justin T. Gibbs: (1)
159 - Kristian F. Høgh: (1)
160 - Maximilian Fridrich: (2)
161 - Michal Hajek: (1)
162 - Mike Bradeen: (2)
163 - Nathaniel Wesley Filardo: (1)
164 - Naveen Albert: (4)
165 - Peter Krall: (1)
166 - Sean Bright: (17)
167 - Sven Kube: (1)
168 - Tinet-mucw: (2)
169 - phoneben: (5)
170 - sarangr7: (1)
171
172 ## Issue and Commit Detail:
173
174 ### Closed Issues:
175
176 - 60: [bug]: Can't enter any of UTF-8 character in the CLI prompt
177 - 1417: [bug]: static code analysis issues in abstract_jb
178 - 1421: [bug]: static code analysis issues in apps/app_dtmfstore.c
179 - 1427: [bug]: static code analysis issues in apps/app_stream_echo.c
180 - 1430: [bug]: static code analysis issues in res/stasis/app.c
181 - 1442: [bug]: static code analysis issues in main/bridge_basic.c
182 - 1444: [bug]: static code analysis issues in bridges/bridge_simple.c
183 - 1446: [bug]: static code analysis issues in bridges/bridge_softmix.c
184 - 1531: [bug]: Memory corruption in manager.c due to double free of criteria variable.
185 - 1546: [improvement]: Not able to pass the custom variables over the websockets using external Media with ari client library nodejs
186 - 1552: [improvement]: chan_dahdi.conf.sample: Warnings for callgroup/pickupgroup in stock config
187 - 1563: [bug]: chan_websocket.c: Wrong variable used in ast_strings_equal() (payload instead of command)
188 - 1566: [improvement]: Improve Taskprocessor logging
189 - 1568: [improvement]: Queue is playing announcements when announce_to_first_user is false
190 - 1572: [improvement]: List modules at various support levels
191 - 1574: [improvement]: Add playback progress acknowledgment for WebSocket media (per-chunk or byte-level acknowledgment)
192 - 1576: [improvement]: res_pjsip_messaging: Follow 3xx redirect messages if redirect_method=uri_pjsip
193 - 1585: [bug]: cli 'stasis show topics' calls a read lock which freezes asterisk till the process is done
194 - 1587: [bug]: chan_websocket terminates websocket on CNG/non-audio
195 - 1590: [bug]: Fix: Use ast instead of p->chan to get the DIALSTATUS variable
196 - 1592: [bug]: app_disa: ResetCDR warning on most invocations
197 - 1597: [bug]: app_reload: Reload() without arguments doesn't work.
198 - 1599: [bug]: pbx.c: Running "dialplan reload" shows wrong number of contexts
199 - 1604: [bug]: asterisk crashes during dtmf input thru websocket -- fixed
200 - 1609: [bug]: Crash: Double free in ast_channel_destructor leading to SIGABRT (Asterisk 20.17.0) with C++ channel storage
201 - 1635: [bug]: Regression: Fix endpoint memory leak
202 - 1638: [bug]: Channel drivers creating ephemeral channels create per-endpoint topics and cache when they shouldn't
203 - 1643: [bug]: chan_websocket crash when channel hung up before read thread is started
204 - 1645: [bug]: chan_websocket stuck channels
205 - 1647: [bug]: "presencestate change" CLI command doesn't accept NOT_SET
206 - 1648: [bug]: ARI announcer channel can cause crash in specific scenario due to unreffing of borrowed format
207 - 1660: [bug]: missing hangup cause for ARI ChannelDestroyed when Originated channel times out
208 - 1662: [improvement]: Include remote IP address in http.c “Requested URI has no handler” log entries
209 - 1667: [bug]: Multiple geolocation issues with rendering XML
210 - 1673: [bug]: A crash occurs during the call to mixmonitor_ds_remove_and_free
211 - 1675: [bug]: res_pjsip_mwi: off-nominal endpoint ao2 reference leak in mwi_get_notify_data()
212 - 1681: [bug]: stasis/control.c: Memory leak of hangup_time in set-timeout
213 - 1683: [improvement]: chan_websocket: Use channel FD polling to read data from websocket instead of dedicated thread.
214 - 1692: [improvement]: Add comment to asterisk.conf.sample clarifying that template sections are ignored
215 - 1700: [improvement]: Improve sorcery cache populate
216
217 ### Commits By Author:
218
219 - #### Alexei Gradinari (1):
220
221 - #### C. Maj (1):
222
223 - #### Daouda Taha (1):
224
225 - #### George Joseph (12):
226
227 - #### Joe Garlick (2):
228
229 - #### Joshua C. Colp (1):
230
231 - #### Justin T. Gibbs (1):
232
233 - #### Kristian F. Høgh (1):
234
235 - #### Maximilian Fridrich (2):
236
237 - #### Michal Hajek (1):
238
239 - #### Mike Bradeen (2):
240
241 - #### Nathaniel Wesley Filardo (1):
242
243 - #### Naveen Albert (4):
244
245 - #### Peter Krall (1):
246
247 - #### Sean Bright (17):
248
249 - #### Sven Kube (1):
250
251 - #### Tinet-mucw (2):
252
253 - #### phoneben (5):
254
255 - #### sarangr7 (1):
256
257 ### Commit List:
258
259 - chan_websocket.conf.sample: Fix category name.
260 - chan_websocket: Fixed Ping/Pong messages hanging up the websocket channel
261 - cli.c: Allow 'channel request hangup' to accept patterns.
262 - res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate command
263 - Add comment to asterisk.conf.sample clarifying that template sections are ignored
264 - chan_websocket: Use the channel's ability to poll fds for the websocket read.
265 - asterisk.c: Allow multi-byte characters on the Asterisk CLI.
266 - func_presencestate.c: Allow `NOT_SET` to be set from CLI.
267 - res/ari/resource_bridges.c: Normalize channel_format ref handling for bridge media
268 - res_geolocation: Fix multiple issues with XML generation.
269 - stasis/control.c: Add destructor to timeout_datastore.
270 - func_talkdetect.c: Remove reference to non-existent variables.
271 - configure.ac: use AC_PATH_TOOL for nm
272 - res_pjsip_mwi: Fix off-nominal endpoint ao2 ref leak in mwi_get_notify_data
273 - res_pjsip_messaging: Add support for following 3xx redirects
274 - res_pjsip: Introduce redirect module for handling 3xx responses
275 - app_mixmonitor.c: Fix crash in mixmonitor_ds_remove_and_free when datastore is NULL
276 - res_pjsip_refer: don't defer session termination for ari transfer
277 - chan_dahdi.conf.sample: Avoid warnings with default configs.
278 - main/dial.c: Set channel hangup cause on timeout in handle_timeout_trip
279 - cel: Add missing manager documentation.
280 - res_odbc: Use SQL_SUCCEEDED() macro where applicable.
281 - rtp/rtcp: Configure dual-stack behavior via IPV6_V6ONLY
282 - http.c: Include remote address in URI handler message.
283 - pjsip: Move from threadpool to taskpool
284 - Disable device state caching for ephemeral channels
285 - chan_websocket: Add locking in send_event and check for NULL websocket handle.
286 - Fix false null-deref warning in channel_state
287 - endpoint.c: Plug a memory leak in ast_endpoint_shutdown().
288 - Revert "func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE()"
289 - cel_manager.c: Correct manager event mask for CEL events.
290 - app_queue.c: Update docs to correct QueueMemberPause event name.
291 - taskprocessors: Improve logging and add new cli options
292 - manager: fix double free of criteria variable when adding filter
293 - app_stream_echo.c: Check that stream is non-NULL before dereferencing.
294 - abstract_jb.c: Remove redundant timer check per static analysis.
295 - channelstorage_cpp: Fix fallback return value in channelstorage callback
296 - ccss: Add option to ccss.conf to globally disable it.
297 - app_directed_pickup.c: Change some log messages from NOTICE to VERBOSE.
298 - chan_websocket: Fix crash on DTMF_END event.
299 - chan_websocket.c: Tolerate other frame types
300 - app_reload: Fix Reload() without arguments.
301 - pbx.c: Print new context count when reloading dialplan.
302 - Makefile: Add module-list-* targets.
303 - app_disa: Avoid use of removed ResetCDR() option.
304 - core_unreal.c: Use ast instead of p->chan to get the DIALSTATUS variable
305 - ast_coredumper: Fix multiple issues
306 - app_mixmonitor: Add 's' (skip) option to delay recording.
307 - stasis: switch stasis show topics temporary container from list - RBtree
308 - app_dtmfstore: Avoid a potential buffer overflow.
309 - main: Explicitly mark case statement fallthrough as such.
310 - bridge_softmix: Return early on topology allocation failure.
311 - bridge_simple: Increase code verbosity for clarity.
312 - app_queue.c: Only announce to head caller if announce_to_first_user
313 - chan_websocket: Add ability to place a MARK in the media stream.
314 - chan_websocket: Add capability for JSON control messages and events.
315 - build: Add menuselect options to facilitate code tracing and coverage
316
317 ### Commit Details:
318
319 #### chan_websocket.conf.sample: Fix category name.
320 Author: George Joseph
321 Date: 2026-01-21
322
323 UserNote: The category name in the chan_websocket.conf.sample file was
324 incorrect. It should be "global" instead of "general".
325
326 #### chan_websocket: Fixed Ping/Pong messages hanging up the websocket channel
327 Author: Joe Garlick
328 Date: 2026-01-15
329
330 When chan_websocket received a Ping or a Pong opcode it would cause the channel to hangup. This change allows Ping/Pong opcodes and allows them to silently pass
331
332 #### cli.c: Allow 'channel request hangup' to accept patterns.
333 Author: Sean Bright
334 Date: 2026-01-05
335
336 This extends 'channel request hangup' to accept multiple channel
337 names, a POSIX Extended Regular Expression, a glob-like pattern, or a
338 combination of all of them.
339
340 UserNote: The 'channel request hangup' CLI command now accepts
341 multiple channel names, POSIX Extended Regular Expressions, glob-like
342 patterns, or a combination of all of them. See the CLI command 'core
343 show help channel request hangup' for full details.
344
345 #### res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate command
346 Author: Mike Bradeen
347 Date: 2026-01-06
348
349 Reduce cache lock time for AMI and CLI sorcery memory cache populate
350 commands by adding a new populate_lock to the sorcery_memory_cache
351 struct which is locked separately from the existing cache lock so that
352 the cache lock can be maintained for a reduced time, locking only when
353 the cache objects are removed and re-populated.
354
355 Resolves: #1700
356
357 UserNote: The AMI command sorcery memory cache populate will now
358 return an error if there is an internal error performing the populate.
359 The CLI command will display an error in this case as well.
360
361 #### Add comment to asterisk.conf.sample clarifying that template sections are ignored
362 Author: phoneben
363 Date: 2026-01-05
364
365 Add comment to asterisk.conf.sample clarifying that template sections are ignored.
366
367 Resolves: #1692
368
369 #### chan_websocket: Use the channel's ability to poll fds for the websocket read.
370 Author: George Joseph
371 Date: 2025-12-30
372
373 We now add the websocket's file descriptor to the channel's fd array and let
374 it poll for data availability instead if having a dedicated thread that
375 does the polling. This eliminates the thread and allows removal of most
376 explicit locking since the core channel code will lock the channel to prevent
377 simultaneous calls to webchan_read, webchan_hangup, etc.
378
379 While we were here, the hangup code was refactored to use ast_hangup_with_cause
380 instead of directly queueing an AST_CONTROL_HANGUP frame. This allows us
381 to set hangup causes and generate snapshots.
382
383 For a bit of extra debugging, a table of websocket close codes was added
384 to http_websocket.h with an accompanying "to string" function added to
385 res_http_websocket.c
386
387 Resolves: #1683
388
389 #### asterisk.c: Allow multi-byte characters on the Asterisk CLI.
390 Author: Sean Bright
391 Date: 2025-12-13
392
393 Versions of libedit that support Unicode expect that the
394 EL_GETCFN (the function that does character I/O) will fill in a
395 `wchar_t` with a character, which may be multi-byte. The built-in
396 function that libedit provides, but does not expose with a public API,
397 does properly handle multi-byte sequences.
398
399 Due to the design of Asterisk's console processing loop, Asterisk
400 provides its own implementation which does not handle multi-byte
401 characters. Changing Asterisk to use libedit's built-in function would
402 be ideal, but would also require changing some fundamental things
403 about console processing which could be fairly disruptive.
404
405 Instead, we bring in libedit's `read_char` implementation and modify
406 it to suit our specific needs.
407
408 Resolves: #60
409
410 #### func_presencestate.c: Allow `NOT_SET` to be set from CLI.
411 Author: Sean Bright
412 Date: 2026-01-01
413
414 Resolves: #1647
415
416 #### res/ari/resource_bridges.c: Normalize channel_format ref handling for bridge media
417 Author: Peter Krall
418 Date: 2025-12-17
419
420 Always take an explicit reference on the format used for bridge playback
421 and recording channels, regardless of where it was sourced, and release
422 it after prepare_bridge_media_channel. This aligns the code paths and
423 avoids mixing borrowed and owned references while preserving behavior.
424
425 Fixes: #1648
426
427 #### res_geolocation: Fix multiple issues with XML generation.
428 Author: George Joseph
429 Date: 2025-12-17
430
431 * 3d positions were being rendered without an enclosing `<gml:pos>`
432 element resulting in invalid XML.
433 * There was no way to set the `id` attribute on the enclosing `tuple`, `device`
434 and `person` elements.
435 * There was no way to set the value of the `deviceID` element.
436 * Parsing of degree and radian UOMs was broken resulting in them appearing
437 outside an XML element.
438 * The UOM schemas for degrees and radians were reversed.
439 * The Ellipsoid shape was missing and the Ellipse shape was defined multiple
440 times.
441 * The `crs` location_info parameter, although documented, didn't work.
442 * The `pos3d` location_info parameter appears in some documentation but
443 wasn't being parsed correctly.
444 * The retransmission-allowed and retention-expiry sub-elements of usage-rules
445 were using the `gp` namespace instead of the `gbp` namespace.
446
447 In addition to fixing the above, several other code refactorings were
448 performed and the unit test enhanced to include a round trip
449 XML -> eprofile -> XML validation.
450
451 Resolves: #1667
452
453 UserNote: Geolocation: Two new optional profile parameters have been added.
454 * `pidf_element_id` which sets the value of the `id` attribute on the top-level
455 PIDF-LO `device`, `person` or `tuple` elements.
456 * `device_id` which sets the content of the `<deviceID>` element.
457 Both parameters can include channel variables.
458
459 UpgradeNote: Geolocation: In order to correct bugs in both code and
460 documentation, the following changes to the parameters for GML geolocation
461 locations are now in effect:
462 * The documented but unimplemented `crs` (coordinate reference system) element
463 has been added to the location_info parameter that indicates whether the `2d`
464 or `3d` reference system is to be used. If the crs isn't valid for the shape
465 specified, an error will be generated. The default depends on the shape
466 specified.
467 * The Circle, Ellipse and ArcBand shapes MUST use a `2d` crs. If crs isn't
468 specified, it will default to `2d` for these shapes.
469 The Sphere, Ellipsoid and Prism shapes MUST use a `3d` crs. If crs isn't
470 specified, it will default to `3d` for these shapes.
471 The Point and Polygon shapes may use either crs. The default crs is `2d`
472 however so if `3d` positions are used, the crs must be explicitly set to `3d`.
473 * The `geoloc show gml_shape_defs` CLI command has been updated to show which
474 coordinate reference systems are valid for each shape.
475 * The `pos3d` element has been removed in favor of allowing the `pos` element
476 to include altitude if the crs is `3d`. The number of values in the `pos`
477 element MUST be 2 if the crs is `2d` and 3 if the crs is `3d`. An error
478 will be generated for any other combination.
479 * The angle unit-of-measure for shapes that use angles should now be included
480 in the respective parameter. The default is `degrees`. There were some
481 inconsistent references to `orientation_uom` in some documentation but that
482 parameter never worked and is now removed. See examples below.
483 Examples...
484 ```
485 location_info = shape="Sphere", pos="39.0 -105.0 1620", radius="20"
486 location_info = shape="Point", crs="3d", pos="39.0 -105.0 1620"
487 location_info = shape="Point", pos="39.0 -105.0"
488 location_info = shape=Ellipsoid, pos="39.0 -105.0 1620", semiMajorAxis="20"
489 semiMinorAxis="10", verticalAxis="0", orientation="25 degrees"
490 pidf_element_id = ${CHANNEL(name)}-${EXTEN}
491 device_id = mac:001122334455
492 Set(GEOLOC_PROFILE(pidf_element_id)=${CHANNEL(name)}/${EXTEN})
493 ```
494
495 #### stasis/control.c: Add destructor to timeout_datastore.
496 Author: George Joseph
497 Date: 2025-12-31
498
499 The timeout_datastore was missing a destructor resulting in a leak
500 of 16 bytes for every outgoing ARI call.
501
502 Resolves: #1681
503
504 #### func_talkdetect.c: Remove reference to non-existent variables.
505 Author: Sean Bright
506 Date: 2025-12-30
507
508
509 #### configure.ac: use AC_PATH_TOOL for nm
510 Author: Nathaniel Wesley Filardo
511 Date: 2025-11-27
512
513 `nm` might, especially in cross-compilation scenarios, be available but prefixed with the target triple. So: use `AC_PATH_TOOL` rather than `AC_PATH_PROG` to find it. (See https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Generic-Programs.html .)
514
515 Found and proposed fix tested by cross-compiling Asterisk using Nixpkgs on x86_64 targeting aarch64. :)
516
517 #### res_pjsip_mwi: Fix off-nominal endpoint ao2 ref leak in mwi_get_notify_data
518 Author: Alexei Gradinari
519 Date: 2025-12-29
520
521 Delay acquisition of the ast_sip_endpoint reference in mwi_get_notify_data()
522 to avoid an ao2 ref leak on early-return error paths.
523
524 Move ast_sip_subscription_get_endpoint() to just before first use so all
525 acquired references are properly cleaned up.
526
527 Fixes: #1675
528
529 #### res_pjsip_messaging: Add support for following 3xx redirects
530 Author: Maximilian Fridrich
531 Date: 2025-11-07
532
533 This commit integrates the redirect module into res_pjsip_messaging
534 to enable following 3xx redirect responses for outgoing SIP MESSAGEs.
535
536 When follow_redirect_methods contains 'message' on an endpoint, Asterisk
537 will now follow 3xx redirect responses for MESSAGEs, similar to how
538 it behaves for INVITE responses.
539
540 Resolves: #1576
541
542 UserNote: A new pjsip endpoint option follow_redirect_methods was added.
543 This option is a comma-delimited, case-insensitive list of SIP methods
544 for which SIP 3XX redirect responses are followed. An alembic upgrade
545 script has been added for adding this new option to the Asterisk
546 database.
547
548 #### res_pjsip: Introduce redirect module for handling 3xx responses
549 Author: Maximilian Fridrich
550 Date: 2025-11-07
551
552 This commit introduces a new redirect handling module that provides
553 infrastructure for following SIP 3xx redirect responses. The redirect
554 functionality respects the endpoint's redirect_method setting and only
555 follows redirects when set to 'uri_pjsip'. This infrastructure can be
556 used by any PJSIP module that needs to handle 3xx redirect responses.
557
558 #### app_mixmonitor.c: Fix crash in mixmonitor_ds_remove_and_free when datastore is NULL
559 Author: Tinet-mucw
560 Date: 2025-12-25
561
562 The datastore may be NULL, so a null pointer check needs to be added.
563
564 Resolves: #1673
565
566 #### res_pjsip_refer: don't defer session termination for ari transfer
567 Author: Sven Kube
568 Date: 2025-10-23
569
570 Allow session termination during an in progress ari handled transfer.
571
572 #### chan_dahdi.conf.sample: Avoid warnings with default configs.
573 Author: Naveen Albert
574 Date: 2025-10-23
575
576 callgroup and pickupgroup may only be specified for FXO-signaled channels;
577 however, the chan_dahdi sample config had these options uncommented in
578 the [channels] section, thus applying these settings to all channels,
579 resulting in warnings. Comment these out so there are no warnings with
580 an unmodified sample config.
581
582 Resolves: #1552
583
584 #### main/dial.c: Set channel hangup cause on timeout in handle_timeout_trip
585 Author: sarangr7
586 Date: 2025-12-18
587
588 When dial attempts timeout in the core dialing API, the channel's hangup
589 cause was not being set before hanging up. Only the ast_dial_channel
590 structure's internal cause field was updated, but the actual ast_channel
591 hangup cause remained unset.
592
593 This resulted in incorrect or missing hangup cause information being
594 reported through CDRs, AMI events, and other mechanisms that read the
595 channel's hangup cause when dial timeouts occurred via applications
596 using the dialing API (FollowMe, Page, etc.).
597
598 The fix adds proper channel locking and sets AST_CAUSE_NO_ANSWER on
599 the channel before calling ast_hangup(), ensuring consistent hangup
600 cause reporting across all interfaces.
601
602 Resolves: #1660
603
604 #### cel: Add missing manager documentation.
605 Author: Sean Bright
606 Date: 2025-12-12
607
608 The LOCAL_OPTIMIZE_BEGIN, STREAM_BEGIN, STREAM_END, and DTMF CEL
609 events were not all documented in the CEL configuration file or the
610 manager documentation for the CEL event.
611
612 #### res_odbc: Use SQL_SUCCEEDED() macro where applicable.
613 Author: Sean Bright
614 Date: 2025-12-17
615
616 This is just a cleanup of some repetitive code.
617
618 #### rtp/rtcp: Configure dual-stack behavior via IPV6_V6ONLY
619 Author: Justin T. Gibbs
620 Date: 2025-12-21
621
622 Dual-stack behavior (simultaneous listening for IPV4 and IPV6
623 connections on a single socket) is required by Asterisk's ICE
624 implementation. On systems with the IPV6_V6ONLY sockopt, set
625 the option to 0 (dual-stack enabled) when binding to the IPV6
626 any address. This ensures correct behavior regardless of the
627 system's default dual-stack configuration.
628
629 #### http.c: Include remote address in URI handler message.
630 Author: Sean Bright
631 Date: 2025-12-22
632
633 Resolves: #1662
634
635 #### pjsip: Move from threadpool to taskpool
636 Author: Joshua C. Colp
637 Date: 2025-12-04
638
639 This change moves the PJSIP module from the threadpool API
640 to the taskpool API. PJSIP-specific implementations for
641 task usage have been removed and replaced with calls to
642 the optimized taskpool implementations instead. The need
643 for a pool of serializers has also been removed as
644 taskpool inherently provides this. The default settings
645 have also been changed to be more realistic for common
646 usage.
647
648 UpgradeNote: The threadpool_* options in pjsip.conf have now
649 been deprecated though they continue to be read and used.
650 They have been replaced with taskpool options that give greater
651 control over the underlying taskpool used for PJSIP. An alembic
652 upgrade script has been added to add these options to realtime
653 as well.
654
655 #### Disable device state caching for ephemeral channels
656 Author: phoneben
657 Date: 2025-12-09
658
659 chan_audiosocket/chan_rtp/res_stasis_snoop: Disable device state caching for ephemeral channels
660
661 Resolves: #1638
662
663 #### chan_websocket: Add locking in send_event and check for NULL websocket handle.
664 Author: George Joseph
665 Date: 2025-12-10
666
667 On an outbound websocket connection, when the triggering caller hangs up,
668 webchan_hangup() closes the outbound websocket session and sets the websocket
669 session handle to NULL. If the hangup happened in the tiny window between
670 opening the outbound websocket connection and before read_thread_handler()
671 was able to send the MEDIA_START message, it could segfault because the
672 websocket session handle was NULL. If it didn't actually segfault, there was
673 also the possibility that the websocket instance wouldn't get cleaned up which
674 could also cause the channel snapshot to not get cleaned up. That could
675 cause memory leaks and `core show channels` to list phantom WebSocket
676 channels.
677
678 To prevent the race, the send_event() macro now locks the websocket_pvt
679 instance and checks the websocket session handle before attempting to send
680 the MEDIA_START message.
681
682 Resolves: #1643
683 Resolves: #1645
684
685 #### Fix false null-deref warning in channel_state
686 Author: phoneben
687 Date: 2025-12-08
688
689 Resolve analyzer warning in channel_state by checking AST_FLAG_DEAD on snapshot, which is guaranteed non-NULL.
690
691 Resolves: #1430
692
693 #### endpoint.c: Plug a memory leak in ast_endpoint_shutdown().
694 Author: George Joseph
695 Date: 2025-12-08
696
697 Commit 26795be introduced a memory leak of ast_endpoint when
698 ast_endpoint_shutdown() was called. The leak occurs only if a configuration
699 change removes an endpoint and isn't related to call volume or the length of
700 time asterisk has been running. An ao2_ref(-1) has been added to
701 ast_endpoint_shutdown() to plug the leak.
702
703 Resolves: #1635
704
705 #### Revert "func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE()"
706 Author: Sean Bright
707 Date: 2025-12-03
708
709 This reverts commit 517766299093d7a9798af68b39951ed8b2469836.
710
711 For rationale, see #1621 and #1606
712
713 #### cel_manager.c: Correct manager event mask for CEL events.
714 Author: Sean Bright
715 Date: 2025-12-05
716
717 There is no EVENT_FLAG_CEL and these events are raised with as
718 EVENT_FLAG_CALL.
719
720 #### app_queue.c: Update docs to correct QueueMemberPause event name.
721 Author: Sean Bright
722 Date: 2025-12-04
723
724
725 #### taskprocessors: Improve logging and add new cli options
726 Author: Mike Bradeen
727 Date: 2025-10-28
728
729 This change makes some small changes to improve log readability in
730 addition to the following changes:
731
732 Modified 'core show taskprocessors' to now show Low time and High time
733 for task execution.
734
735 New command 'core show taskprocessor name <taskprocessor-name>' to dump
736 taskprocessor info and current queue.
737
738 Addionally, a new test was added to demonstrate the 'show taskprocessor
739 name' functionality:
740 test execute category /main/taskprocessor/ name taskprocessor_cli_show
741
742 Setting 'core set debug 3 taskprocessor.c' will now log pushed tasks.
743 (Warning this is will cause extremely high levels of logging at even
744 low traffic levels.)
745
746 Resolves: #1566
747
748 UserNote: New CLI command has been added -
749 core show taskprocessor name <taskprocessor-name>
750
751 #### manager: fix double free of criteria variable when adding filter
752 Author: Michal Hajek
753 Date: 2025-10-13
754
755 Signed-off-by: Michal Hajek <[email protected]>
756
757 Fixes: #1531
758
759 #### app_stream_echo.c: Check that stream is non-NULL before dereferencing.
760 Author: Sean Bright
761 Date: 2025-12-01
762
763 Also re-order and rename the arguments of `stream_echo_write_error` to
764 match those of `ast_write_stream` for consistency.
765
766 Resolves: #1427
767
768 #### abstract_jb.c: Remove redundant timer check per static analysis.
769 Author: Sean Bright
770 Date: 2025-12-01
771
772 While this check is technically unnecessary, it also was not harmful.
773
774 The 2 other items mentioned in the linked issue are false positives
775 and require no action.
776
777 Resolves: #1417
778
779 #### channelstorage_cpp: Fix fallback return value in channelstorage callback
780 Author: phoneben
781 Date: 2025-11-26
782
783 callback returned the last iterated channel when no match existed, causing invalid channel references and potential double frees. Updated to correctly return NULL when there is no match.
784
785 Resolves: #1609
786
787 #### ccss: Add option to ccss.conf to globally disable it.
788 Author: George Joseph
789 Date: 2025-11-19
790
791 The Call Completion Supplementary Service feature is rarely used but many of
792 it's functions are called by app_dial and channel.c "just in case". These
793 functions lock and unlock the channel just to see if CCSS is enabled on it,
794 which it isn't 99.99% of the time.
795
796 UserNote: A new "enabled" parameter has been added to ccss.conf. It defaults
797 to "yes" to preserve backwards compatibility but CCSS is rarely used so
798 setting "enabled = no" in the "general" section can save some unneeded channel
799 locking operations and log message spam. Disabling ccss will also prevent
800 the func_callcompletion and chan_dahdi modules from loading.
801
802 DeveloperNote: A new API ast_is_cc_enabled() has been added. It should be
803 used to ensure that CCSS is enabled before making any other ast_cc_* calls.
804
805 #### app_directed_pickup.c: Change some log messages from NOTICE to VERBOSE.
806 Author: George Joseph
807 Date: 2025-11-20
808
809 UpgradeNote: In an effort to reduce log spam, two normal progress
810 "pickup attempted" log messages from app_directed_pickup have been changed
811 from NOTICE to VERBOSE(3). This puts them on par with other normal
812 dialplan progress messages.
813
814 #### chan_websocket: Fix crash on DTMF_END event.
815 Author: Sean Bright
816 Date: 2025-11-20
817
818 Resolves: #1604
819 #### chan_websocket.c: Tolerate other frame types
820 Author: Joe Garlick
821 Date: 2025-11-12
822
823 Currently, if chan_websocket receives an un supported frame like comfort noise it will exit the websocket. The proposed change is to tolerate the other frames by not sending them down the websocket but instead just ignoring them.
824
825 Resolves: #1587
826
827 #### app_reload: Fix Reload() without arguments.
828 Author: Naveen Albert
829 Date: 2025-11-17
830
831 Calling Reload() without any arguments is supposed to reload
832 everything (equivalent to a 'core reload'), but actually does
833 nothing. This is because it was calling ast_module_reload with
834 an empty string, and the argument needs to explicitly be NULL.
835
836 Resolves: #1597
837
838 #### pbx.c: Print new context count when reloading dialplan.
839 Author: Naveen Albert
840 Date: 2025-11-17
841
842 When running "dialplan reload", the number of contexts reported
843 is initially wrong, as it is the old context count. Running
844 "dialplan reload" a second time returns the correct number of
845 contexts that are loaded. This can confuse users into thinking
846 that the reload didn't work successfully the first time.
847
848 This counter is currently only incremented when iterating the
849 old contexts prior to the context merge; at the very end, get
850 the current number of elements in the context hash table and
851 report that instead. This way, the count is correct immediately
852 whenever a reload occurs.
853
854 Resolves: #1599
855
856 #### Makefile: Add module-list-* targets.
857 Author: C. Maj
858 Date: 2025-11-17
859
860 Convenience wrappers for showing modules at various support levels.
861
862 * module-list-core
863 * module-list-extended
864 * module-list-deprecated
865
866 Resolves: #1572
867
868 UserNote: Try "make module-list-deprecated" to see what modules
869 are on their way out the door.
870
871 #### app_disa: Avoid use of removed ResetCDR() option.
872 Author: Naveen Albert
873 Date: 2025-11-14
874
875 Commit a46d5f9b760f84b9f27f594b62507c1443aa661b removed the deprecated
876 'e' option to ResetCDR; this now causes DISA() to emit a warning
877 if attempting to call ResetCDR() with the deprecated option (in
878 all cases except when the no answer option is provided). Rewrite
879 the code to do this the current way.
880
881 Resolves: #1592
882
883 #### core_unreal.c: Use ast instead of p->chan to get the DIALSTATUS variable
884 Author: Tinet-mucw
885 Date: 2025-11-13
886
887 After p->chan = NULL, ast still points to the valid channel object,
888 using ast safely accesses the channel's DIALSTATUS variable before it's fully destroyed
889
890 Resolves: #1590
891
892 #### ast_coredumper: Fix multiple issues
893 Author: George Joseph
894 Date: 2025-11-07
895
896 * Fixed an issue with tarball-coredumps when asterisk was invoked without an
897 absolute path.
898
899 * Fixed an issue with gdb itself segfaulting when trying to get symbols from
900 separate debuginfo files. The command line arguments needed to be altered
901 such that the gdbinit files is loaded before anything else but the
902 `dump-asterisk` command is run after full initialization.
903
904 In the embedded gdbinit script:
905
906 * The extract_string_symbol function needed a `char *` cast to work properly.
907
908 * The s_strip function needed to be updated to continue to work with the
909 cpp_map_name_id channel storage backend.
910
911 * A new function was added to dump the channels when cpp_map_name_id was
912 used.
913
914 * The Channel object was updated to account for the new channel storage
915 backends
916
917 * The show_locks function was refactored to work correctly.
918
919 #### app_mixmonitor: Add 's' (skip) option to delay recording.
920 Author: Daouda Taha
921 Date: 2025-10-28
922
923 The 's' (skip) option delays MixMonitor recording until the specified number of seconds
924 (can be fractional) have elapsed since MixMonitor was invoked.
925
926 No audio is written to the recording file during this time. If the call ends before this
927 period, no audio will be saved. This is useful for avoiding early audio such as
928 announcements, ringback tones, or other non-essential sounds.
929
930 UserNote: This change introduces a new 's(<seconds>)' (skip) option to the MixMonitor
931 application. Example:
932 MixMonitor(${UNIQUEID}.wav,s(3))
933
934 This skips recording for the first 3 seconds before writing audio to the file.
935 Existing MixMonitor behavior remains unchanged when the 's' option is not used.
936
937 #### stasis: switch stasis show topics temporary container from list - RBtree
938 Author: phoneben
939 Date: 2025-11-11
940
941 switch stasis show topics temporary container from list to RB-tree
942 minimizing lock time
943
944 Resolves: #1585
945
946 #### app_dtmfstore: Avoid a potential buffer overflow.
947 Author: Sean Bright
948 Date: 2025-11-07
949
950 Prefer snprintf() so we can readily detect if our output was
951 truncated.
952
953 Resolves: #1421
954
955 #### main: Explicitly mark case statement fallthrough as such.
956 Author: Sean Bright
957 Date: 2025-11-07
958
959 Resolves: #1442
960
961 #### bridge_softmix: Return early on topology allocation failure.
962 Author: Sean Bright
963 Date: 2025-11-07
964
965 Resolves: #1446
966
967 #### bridge_simple: Increase code verbosity for clarity.
968 Author: Sean Bright
969 Date: 2025-11-07
970
971 There's no actual problem here, but I can see how it might by
972 confusing.
973
974 Resolves: #1444
975
976 #### app_queue.c: Only announce to head caller if announce_to_first_user
977 Author: Kristian F. Høgh
978 Date: 2025-10-30
979
980 Only make announcements to head caller if announce_to_first_user is true
981
982 Fixes: #1568
983
984 UserNote: When announce_to_first_user is false, no announcements are played to the head caller
985
986 #### chan_websocket: Add ability to place a MARK in the media stream.
987 Author: George Joseph
988 Date: 2025-11-05
989
990 Also cleaned up a few unused #if blocks, and started sending a few ERROR
991 events back to the apps.
992
993 Resolves: #1574
994
995 DeveloperNote: Apps can now send a `MARK_MEDIA` command with an optional
996 `correlation_id` parameter to chan_websocket which will be placed in the
997 media frame queue. When that frame is dequeued after all intervening media
998 has been played to the core, chan_websocket will send a
999 `MEDIA_MARK_PROCESSED` event to the app with the same correlation_id
1000 (if any).
1001
1002 #### chan_websocket: Add capability for JSON control messages and events.
1003 Author: George Joseph
1004 Date: 2025-10-22
1005
1006 With recent enhancements to chan_websocket, the original plain-text
1007 implementation of control messages and events is now too limiting. We
1008 probably should have used JSON initially but better late than never. Going
1009 forward, enhancements that require control message or event changes will
1010 only be done to the JSON variants and the plain-text variants are now
1011 deprecated but not yet removed.
1012
1013 * Added the chan_websocket.conf config file that allows setting which control
1014 message format to use globally: "json" or "plain-text". "plain-text" is the
1015 default for now to preserve existing behavior.
1016
1017 * Added a dialstring option `f(json|plain-text)` to allow the format to be
1018 overridden on a call-by-call basis. Again, 'plain-text' is the default for
1019 now to preserve existing behavior.
1020
1021 The JSON for commands sent by the app to Asterisk must be...
1022 `{ "command": "<command>" ... }` where `<command>` is one of `ANSWER`, `HANGUP`,
1023 `START_MEDIA_BUFFERING`, etc. The `STOP_MEDIA_BUFFERING` command takes an
1024 additional, optional parameter to be returned in the corresponding
1025 `MEDIA_BUFFERING_COMPLETED` event:
1026 `{ "command": "STOP_MEDIA_BUFFERING", "correlation_id": "<correlation id>" }`.
1027
1028 The JSON for events sent from Asterisk to the app will be...
1029 `{ "event": "<event>", "channel_id": "<channel_id>" ... }`.
1030 The `MEDIA_START` event will now look like...
1031
1032 ```
1033 {
1034 "event": "MEDIA_START",
1035 "connection_id": "media_connection1",
1036 "channel": "WebSocket/media_connection1/0x5140001a0040",
1037 "channel_id": "1761245643.1",
1038 "format": "ulaw",
1039 "optimal_frame_size": 160,
1040 "ptime": 20,
1041 "channel_variables": {
1042 "DIALEDPEERNUMBER": "media_connection1/c(ulaw)",
1043 "MEDIA_WEBSOCKET_CONNECTION_ID": "media_connection1",
1044 "MEDIA_WEBSOCKET_OPTIMAL_FRAME_SIZE": "160"
1045 }
1046 }
1047 ```
1048
1049 Note the addition of the channel variables which can't be supported
1050 with the plain-text formatting.
1051
1052 The documentation will be updated with the exact formats for all commands
1053 and events.
1054
1055 Resolves: #1546
1056 Resolves: #1563
1057
1058 DeveloperNote: The chan_websocket plain-text control and event messages are now
1059 deprecated (but remain the default) in favor of JSON formatted messages.
1060 See https://docs.asterisk.org/Configuration/Channel-Drivers/WebSocket for
1061 more information.
1062
1063 DeveloperNote: A "transport_data" parameter has been added to the
1064 channels/externalMedia ARI endpoint which, for websocket, allows the caller
1065 to specify parameters to be added to the dialstring for the channel. For
1066 instance, `"transport_data": "f(json)"`.
1067
1068 #### build: Add menuselect options to facilitate code tracing and coverage
1069 Author: George Joseph
1070 Date: 2025-10-30
1071
1072 The following options have been added to the menuselect "Compiler Flags"
1073 section...
1074
1075 CODE_COVERAGE: The ability to enable code coverage via the `--enable-coverage`
1076 configure flag has existed for many years but changing it requires
1077 re-running ./configure which is painfully slow. With this commit, you can
1078 now enable and disable it via menuselect. Setting this option adds the
1079 `-ftest-coverage` and `-fprofile-arcs` flags on the gcc and ld command lines.
1080 It also sets DONT_OPTIMIZE. Note: If you use the `--enable-coverage` configure
1081 flag, you can't turn it off via menuselect so choose one method and stick to
1082 it.
1083
1084 KEEP_FRAME_POINTERS: This option sets `-fno-omit-frame-pointers` on the gcc
1085 command line which can facilitate debugging with 'gdb' and tracing with 'perf'.
1086 Unlike CODE_COVERAGE, this option doesn't depend on optimization being
1087 disabled. It does however conflict with COMPILE_DOUBLE.
1088