Debian Codegraph @

ChangeLogs/ChangeLog-22.8.0.html

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