Debian Codegraph @

ChangeLogs/ChangeLog-22.3.0.md

raw symbols SCIP
1
2 ## Change Log for Release asterisk-22.3.0
3
4 ### Links:
5
6 - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.3.0.html)
7 - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.2.0...22.3.0)
8 - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.3.0.tar.gz)
9 - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk)
10
11 ### Summary:
12
13 - Commits: 28
14 - Commit Authors: 12
15 - Issues Resolved: 12
16 - Security Advisories Resolved: 0
17
18 ### User Notes:
19
20 - #### ari/pjsip: Make it possible to control transfers through ARI
21 Call transfers on the PJSIP channel can now be controlled by
22 ARI. This can be enabled by using the PJSIP_TRANSFER_HANDLING(ari-only)
23 dialplan function.
24
25
26 ### Upgrade Notes:
27
28
29 ### Commit Authors:
30
31 - Allan Nathanson: (1)
32 - Ben Ford: (1)
33 - Fabriziopicconi: (1)
34 - George Joseph: (10)
35 - Holger Hans Peter Freyther: (1)
36 - Jeremy Lainé: (1)
37 - Joshua Elson: (1)
38 - Luz Paz: (3)
39 - Maximilian Fridrich: (1)
40 - Mike Bradeen: (1)
41 - Naveen Albert: (1)
42 - Sean Bright: (6)
43
44 ## Issue and Commit Detail:
45
46 ### Closed Issues:
47
48 - 211: [bug]: stasis: Off-nominal channel leave causes bridge to be destroyed
49 - 1085: [bug]: utils: Compilation failure with DEVMODE due to old-style definitions
50 - 1101: [bug]: when setting a var with a double quotes and using Set(HASH)
51 - 1109: [bug]: Off nominal memory leak in res/ari/resource_channels.c
52 - 1112: [bug]: STIR/SHAKEN verification doesn't allow anonymous callerid to be passed to the dialplan.
53 - 1119: [bug]: Realtime database not working after upgrade from 22.0.0 to 22.2.0
54 - 1122: Need status on CVE-2024-57520 claim.
55 - 1124: [bug]: Race condition between bridge and channel delete can over-write cause code set in hangup.
56 - 1131: [bug]: CHANGES link broken in README.md
57 - 1135: [bug]: Problems with video decoding due to RTP marker bit set
58 - 1149: [bug]: res_pjsip: Mismatch in tcp_keepalive_enable causes not to enable
59 - 1164: [bug]: WARNING Message in messages.log for res_curl.conf [globals]
60
61 ### Commits By Author:
62
63 - #### Allan Nathanson (1):
64 - config.c: #include of non-existent file should not crash
65
66 - #### Ben Ford (1):
67 - documentation: Update Gosub, Goto, and add new documentationtype.
68
69 - #### George Joseph (10):
70 - docs: Add version information to ARI resources and methods.
71 - docs: Add version information to AGI command XML elements.
72 - func_strings.c: Prevent SEGV in HASH single-argument mode.
73 - resource_channels.c: Fix memory leak in ast_ari_channels_external_media.
74 - res_stir_shaken: Allow missing or anonymous CID to continue to the dialplan.
75 - res_config_pgsql: Fix regression that removed dbname config.
76 - bridging: Fix multiple bridging issues causing SEGVs and FRACKs.
77 - swagger_model.py: Fix invalid escape sequence in get_list_parameter_type().
78 - manager.c: Check for restricted file in action_createconfig.
79 - README.md: Updates and Fixes
80
81 - #### Holger Hans Peter Freyther (1):
82 - ari/pjsip: Make it possible to control transfers through ARI
83
84 - #### Jeremy Lainé (1):
85 - docs: Fix minor typo in MixMonitor AMI action
86
87 - #### Joshua Elson (1):
88 - fix: Correct default flag for tcp_keepalive_enable option
89
90 - #### Luz Paz (3):
91 - docs: Fix various typos in main/ Found via `codespell -q 3 -S "./CREDITS" -L a..
92 - docs: Fix various typos in channels/ Found via `codespell -q 3 -S "./CREDITS,*..
93 - docs: Fix typos in cdr/ Found via codespell
94
95 - #### Maximilian Fridrich (1):
96 - Revert "res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big"
97
98 - #### Mike Bradeen (1):
99 - bridge_channel: don't set cause code on channel during bridge delete if alread..
100
101 - #### Naveen Albert (1):
102 - utils: Disable old style definition warnings for libdb.
103
104 - #### Sean Bright (6):
105 - docs: Indent <since> tags.
106 - channel.c: Remove dead AST_GENERATOR_FD code.
107 - res_rtp_asterisk.c: Use correct timeout value for T.140 RED timer.
108 - docs: AMI documentation fixes.
109 - res_rtp_asterisk.c: Don't truncate spec-compliant `ice-ufrag` or `ice-pwd`.
110 - res_config_curl.c: Remove unnecessary warnings.
111
112 - #### fabriziopicconi (1):
113 - rtp.conf.sample: Correct stunaddr example.
114
115
116 ### Commit List:
117
118 - documentation: Update Gosub, Goto, and add new documentationtype.
119 - res_config_curl.c: Remove unnecessary warnings.
120 - README.md: Updates and Fixes
121 - res_rtp_asterisk.c: Don't truncate spec-compliant `ice-ufrag` or `ice-pwd`.
122 - fix: Correct default flag for tcp_keepalive_enable option
123 - docs: AMI documentation fixes.
124 - config.c: #include of non-existent file should not crash
125 - manager.c: Check for restricted file in action_createconfig.
126 - swagger_model.py: Fix invalid escape sequence in get_list_parameter_type().
127 - Revert "res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big"
128 - res_rtp_asterisk.c: Use correct timeout value for T.140 RED timer.
129 - docs: Fix typos in cdr/ Found via codespell
130 - bridging: Fix multiple bridging issues causing SEGVs and FRACKs.
131 - res_config_pgsql: Fix regression that removed dbname config.
132 - res_stir_shaken: Allow missing or anonymous CID to continue to the dialplan.
133 - resource_channels.c: Fix memory leak in ast_ari_channels_external_media.
134 - ari/pjsip: Make it possible to control transfers through ARI
135 - channel.c: Remove dead AST_GENERATOR_FD code.
136 - func_strings.c: Prevent SEGV in HASH single-argument mode.
137 - docs: Add version information to AGI command XML elements.
138 - docs: Fix minor typo in MixMonitor AMI action
139 - utils: Disable old style definition warnings for libdb.
140 - rtp.conf.sample: Correct stunaddr example.
141 - docs: Add version information to ARI resources and methods.
142 - docs: Indent <since> tags.
143
144 ### Commit Details:
145
146 #### documentation: Update Gosub, Goto, and add new documentationtype.
147 Author: Ben Ford
148 Date: 2025-03-14
149
150 Gosub and Goto were not displaying their syntax correctly on the docs
151 site. This change adds a new way to specify an optional context, an
152 optional extension, and a required priority that the xml stylesheet can
153 parse without having to know which optional parameters come in which
154 order. In Asterisk, it looks like this:
155
156 parameter name="context" documentationtype="dialplan_context"
157 parameter name="extension" documentationtype="dialplan_extension"
158 parameter name="priority" documentationtype="dialplan_priority" required="true"
159
160 The stylesheet will ignore the context and extension parameters, but for
161 priority, it will automatically inject the following:
162
163 [[context,]extension,]priority
164
165 This is the correct oder for applications such as Gosub and Goto.
166
167
168 #### res_config_curl.c: Remove unnecessary warnings.
169 Author: Sean Bright
170 Date: 2025-03-17
171
172 Resolves: #1164
173
174 #### README.md: Updates and Fixes
175 Author: George Joseph
176 Date: 2025-03-05
177
178 * Outdated information has been removed.
179 * New links added.
180 * Placeholder added for link to change logs.
181
182 Going forward, the release process will create HTML versions of the README
183 and change log and will update the link in the README to the current
184 change log for the branch...
185
186 * In the development branches, the link will always point to the current
187 release on GitHub.
188 * In the "releases/*" branches and the tarballs, the link will point to the
189 ChangeLogs/ChangeLog-<version>.html file in the source directory.
190 * On the downloads website, the link will point to the
191 ChangeLog-<version>.html file in the same directory.
192
193 Resolves: #1131
194
195 #### res_rtp_asterisk.c: Don't truncate spec-compliant `ice-ufrag` or `ice-pwd`.
196 Author: Sean Bright
197 Date: 2025-03-07
198
199 RFC 8839[1] indicates that the `ice-ufrag` and `ice-pwd` attributes
200 can be up to 256 bytes long. While we don't generate values of that
201 size, we should be able to accomodate them without truncating.
202
203 1. https://www.rfc-editor.org/rfc/rfc8839#name-ice-ufrag-and-ice-pwd-attri
204
205
206 #### fix: Correct default flag for tcp_keepalive_enable option
207 Author: Joshua Elson
208 Date: 2025-03-06
209
210 Resolves an issue where the tcp_keepalive_enable option was not properly enabled in the sample configuration due to an incorrect default flag setting.
211
212 Fixes: #1149
213
214 #### docs: AMI documentation fixes.
215 Author: Sean Bright
216 Date: 2025-02-18
217
218 Most of this patch is adding missing PJSIP-related event
219 documentation, but the one functional change was adding a sorcery
220 to-string handler for endpoint's `redirect_method` which was not
221 showing up in the AMI event details or `pjsip show endpoint
222 <endpoint>` output.
223
224 The rest of the changes are summarized below:
225
226 * app_agent_pool.c: Typo fix Epoche -> Epoch.
227 * stasis_bridges.c: Add missing AttendedTransfer properties.
228 * stasis_channels.c: Add missing AgentLogoff properties.
229 * pjsip_manager.xml:
230 - Add missing AorList properties.
231 - Add missing AorDetail properties.
232 - Add missing ContactList properties.
233 - Add missing ContactStatusDetail properties.
234 - Add missing EventDetail properties.
235 - Add missing AuthList properties.
236 - Add missing AuthDetail properties.
237 - Add missing TransportDetail properties.
238 - Add missing EndpointList properties.
239 - Add missing IdentifyDetail properties.
240 * res_pjsip_registrar.c: Add missing InboundRegistrationDetail documentation.
241 * res_pjsip_pubsub.c:
242 - Add missing ResourceListDetail documentation.
243 - Add missing InboundSubscriptionDetail documentation.
244 - Add missing OutboundSubscriptionDetail documentation.
245 * res_pjsip_outbound_registration.c: Add missing OutboundRegistrationDetail documentation.
246
247
248 #### config.c: #include of non-existent file should not crash
249 Author: Allan Nathanson
250 Date: 2025-03-03
251
252 Corrects a segmentation fault when a configuration file has a #include
253 statement that referenced a file that does not exist.
254
255 Resolves: https://github.com/asterisk/asterisk/issues/1139
256
257 #### manager.c: Check for restricted file in action_createconfig.
258 Author: George Joseph
259 Date: 2025-03-03
260
261 The `CreateConfig` manager action now ensures that a config file can
262 only be created in the AST_CONFIG_DIR unless `live_dangerously` is set.
263
264 Resolves: #1122
265
266 #### swagger_model.py: Fix invalid escape sequence in get_list_parameter_type().
267 Author: George Joseph
268 Date: 2025-03-04
269
270 Recent python versions complain when backslashes in strings create invalid
271 escape sequences. This causes issues for strings used as regex patterns like
272 `'^List\[(.*)\]$'` where you want the regex parser to treat `[` and `]`
273 as literals. Double-backslashing is one way to fix it but simply converting
274 the string to a raw string `re.match(r'^List\[(.*)\]$', text)` is easier
275 and less error prone.
276
277
278 #### Revert "res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big"
279 Author: Maximilian Fridrich
280 Date: 2025-02-28
281
282 This reverts commit f30ad96b3f467739c38ff415e80bffc4afff1da7.
283
284 The original change was not RFC compliant and caused issues because it
285 set the RTP marker bit in cases when it shouldn't be set. See the
286 linked issue #1135 for a detailed explanation.
287
288 Fixes: #1135.
289
290 #### res_rtp_asterisk.c: Use correct timeout value for T.140 RED timer.
291 Author: Sean Bright
292 Date: 2025-02-24
293
294 Found while reviewing #1128
295
296
297 #### docs: Fix typos in cdr/ Found via codespell
298 Author: Luz Paz
299 Date: 2025-02-12
300
301
302 #### docs: Fix various typos in channels/ Found via `codespell -q 3 -S "./CREDITS,*..
303 Author: Luz Paz
304 Date: 2025-02-04
305
306
307 #### docs: Fix various typos in main/ Found via `codespell -q 3 -S "./CREDITS" -L a..
308 Author: Luz Paz
309 Date: 2025-02-04
310
311
312 #### bridging: Fix multiple bridging issues causing SEGVs and FRACKs.
313 Author: George Joseph
314 Date: 2025-01-22
315
316 Issues:
317
318 * The bridging core allowed multiple bridges to be created with the same
319 unique bridgeId at the same time. Only the last bridge created with the
320 duplicate name was actually saved to the core bridges container.
321
322 * The bridging core was creating a stasis topic for the bridge and saving it
323 in the bridge->topic field but not increasing its reference count. In the
324 case where two bridges were created with the same uniqueid (which is also
325 the topic name), the second bridge would get the _existing_ topic the first
326 bridge created. When the first bridge was destroyed, it would take the
327 topic with it so when the second bridge attempted to publish a message to
328 it it either FRACKed or SEGVd.
329
330 * The bridge destructor, which also destroys the bridge topic, is run from the
331 bridge manager thread not the caller's thread. This makes it possible for
332 an ARI developer to create a new one with the same uniqueid believing the
333 old one was destroyed when, in fact, the old one's destructor hadn't
334 completed. This could cause the new bridge to get the old one's topic just
335 before the topic was destroyed. When the new bridge attempted to publish
336 a message on that topic, asterisk could either FRACK or SEGV.
337
338 * The ARI bridges resource also allowed multiple bridges to be created with
339 the same uniqueid but it kept the duplicate bridges in its app_bridges
340 container. This created a situation where if you added two bridges with
341 the same "bridge1" uniqueid, all operations on "bridge1" were performed on
342 the first bridge created and the second was basically orphaned. If you
343 attempted to delete what you thought was the second bridge, you actually
344 deleted the first one created.
345
346 Changes:
347
348 * A new API `ast_bridge_topic_exists(uniqueid)` was created to determine if
349 a topic already exists for a bridge.
350
351 * `bridge_base_init()` in bridge.c and `ast_ari_bridges_create()` in
352 resource_bridges.c now call `ast_bridge_topic_exists(uniqueid)` to check
353 if a bridge with the requested uniqueid already exists and will fail if it
354 does.
355
356 * `bridge_register()` in bridges.c now checks the core bridges container to
357 make sure a bridge doesn't already exist with the requested uniqueid.
358 Although most callers of `bridge_register()` will have already called
359 `bridge_base_init()`, which will now fail on duplicate bridges, there
360 is no guarantee of this so we must check again.
361
362 * The core bridges container allocation was changed to reject duplicate
363 uniqueids instead of silently replacing an existing one. This is a "belt
364 and suspenders" check.
365
366 * A global mutex was added to bridge.c to prevent concurrent calls to
367 `bridge_base_init()` and `bridge_register()`.
368
369 * Even though you can no longer create multiple bridges with the same uniqueid
370 at the same time, it's still possible that the bridge topic might be
371 destroyed while a second bridge with the same uniqueid was trying to use
372 it. To address this, the bridging core now increments the reference count
373 on bridge->topic when a bridge is created and decrements it when the
374 bridge is destroyed.
375
376 * `bridge_create_common()` in res_stasis.c now checks the stasis app_bridges
377 container to make sure a bridge with the requested uniqueid doesn't already
378 exist. This may seem like overkill but there are so many entrypoints to
379 bridge creation that we need to be safe and catch issues as soon in the
380 process as possible.
381
382 * The stasis app_bridges container allocation was changed to reject duplicate
383 uniqueids instead of adding them. This is a "belt and suspenders" check.
384
385 * The `bridge show all` CLI command now shows the bridge name as well as the
386 bridge id.
387
388 * Response code 409 "Conflict" was added as a possible response from the ARI
389 bridge create resources to signal that a bridge with the requested uniqueid
390 already exists.
391
392 * Additional debugging was added to multiple bridging and stasis files.
393
394 Resolves: #211
395
396 #### bridge_channel: don't set cause code on channel during bridge delete if alread..
397 Author: Mike Bradeen
398 Date: 2025-02-18
399
400 Due to a potential race condition via ARI when hanging up a channel hangup with cause
401 while also deleting a bridge containing that channel, the bridge delete can over-write
402 the hangup cause code resulting in Normal Call Clearing instead of the set value.
403
404 With this change, bridge deletion will only set the hangup code if it hasn't been
405 previously set.
406
407 Resolves: #1124
408
409 #### res_config_pgsql: Fix regression that removed dbname config.
410 Author: George Joseph
411 Date: 2025-02-11
412
413 A recent commit accidentally removed the code that sets dbname.
414 This commit adds it back in.
415
416 Resolves: #1119
417
418 #### res_stir_shaken: Allow missing or anonymous CID to continue to the dialplan.
419 Author: George Joseph
420 Date: 2025-02-05
421
422 The verification check for missing or anonymous callerid was happening before
423 the endpoint's profile was retrieved which meant that the failure_action
424 parameter wasn't available. Therefore, if verification was enabled and there
425 was no callerid or it was "anonymous", the call was immediately terminated
426 instead of giving the dialplan the ability to decide what to do with the call.
427
428 * The callerid check now happens after the verification context is created and
429 the endpoint's stir_shaken_profile is available.
430
431 * The check now processes the callerid failure just as it does for other
432 verification failures and respects the failure_action parameter. If set
433 to "continue" or "continue_return_reason", `STIR_SHAKEN(0,verify_result)`
434 in the dialplan will return "invalid_or_no_callerid".
435
436 * If the endpoint's failure_action is "reject_request", the call will be
437 rejected with `433 "Anonymity Disallowed"`.
438
439 * If the endpoint's failure_action is "continue_return_reason", the call will
440 continue but a `Reason: STIR; cause=433; text="Anonymity Disallowed"`
441 header will be added to the next provisional or final response.
442
443 Resolves: #1112
444
445 #### resource_channels.c: Fix memory leak in ast_ari_channels_external_media.
446 Author: George Joseph
447 Date: 2025-02-04
448
449 Between ast_ari_channels_external_media(), external_media_rtp_udp(),
450 and external_media_audiosocket_tcp(), the `variables` structure being passed
451 around wasn't being cleaned up properly when there was a failure.
452
453 * In ast_ari_channels_external_media(), the `variables` structure is now
454 defined with RAII_VAR to ensure it always gets cleaned up.
455
456 * The ast_variables_destroy() call was removed from external_media_rtp_udp().
457
458 * The ast_variables_destroy() call was removed from
459 external_media_audiosocket_tcp(), its `endpoint` allocation was changed to
460 to use ast_asprintf() as external_media_rtp_udp() does, and it now
461 returns an error on failure.
462
463 * ast_ari_channels_external_media() now checks the new return code from
464 external_media_audiosocket_tcp() and sets the appropriate error response.
465
466 Resolves: #1109
467
468 #### ari/pjsip: Make it possible to control transfers through ARI
469 Author: Holger Hans Peter Freyther
470 Date: 2024-06-15
471
472 Introduce a ChannelTransfer event and the ability to notify progress to
473 ARI. Implement emitting this event from the PJSIP channel instead of
474 handling the transfer in Asterisk when configured.
475
476 Introduce a dialplan function to the PJSIP channel to switch between the
477 "core" and "ari-only" behavior.
478
479 UserNote: Call transfers on the PJSIP channel can now be controlled by
480 ARI. This can be enabled by using the PJSIP_TRANSFER_HANDLING(ari-only)
481 dialplan function.
482
483
484 #### channel.c: Remove dead AST_GENERATOR_FD code.
485 Author: Sean Bright
486 Date: 2025-02-06
487
488 Nothing ever sets the `AST_GENERATOR_FD`, so this block of code will
489 never execute. It also is the only place where the `generate` callback
490 is called with the channel lock held which made it difficult to reason
491 about the thread safety of `ast_generator`s.
492
493 In passing, also note that `AST_AGENT_FD` isn't used either.
494
495
496 #### func_strings.c: Prevent SEGV in HASH single-argument mode.
497 Author: George Joseph
498 Date: 2025-01-30
499
500 When in single-argument mode (very rarely used), a malformation of a column
501 name (also very rare) could cause a NULL to be returned when retrieving the
502 channel variable for that column. Passing that to strncat causes a SEGV. We
503 now check for the NULL and print a warning message.
504
505 Resolves: #1101
506
507 #### docs: Add version information to AGI command XML elements.
508 Author: George Joseph
509 Date: 2025-01-24
510
511 This process was a bit different than the others because everything
512 is in the same file, there's an array that contains the command
513 names and their handler functions, and the last command was created
514 over 15 years ago.
515
516 * Dump a `git blame` of res/res_agi.c from BEFORE the handle_* prototypes
517 were changed.
518 * Create a command <> handler function xref by parsing the the agi_command
519 array.
520 * For each entry, grep the function definition line "static int handle_*"
521 from the git blame output and capture the commit. This will be the
522 commit the command was created in.
523 * Do a `git tag --contains <commit> | sort -V | head -1` to get the
524 tag the function was created in.
525 * Add a single since/version element to the command XML. Multiple versions
526 aren't supported here because the branching and tagging scheme changed
527 several times in the 2000's.
528
529
530 #### docs: Fix minor typo in MixMonitor AMI action
531 Author: Jeremy Lainé
532 Date: 2025-01-28
533
534 The `Options` argument was erroneously documented as lowercase
535 `options`.
536
537
538 #### utils: Disable old style definition warnings for libdb.
539 Author: Naveen Albert
540 Date: 2025-01-23
541
542 Newer versions of gcc now warn about old style definitions, such
543 as those in libdb, which causes compilation failure with DEVMODE
544 enabled. Ignore these warnings for libdb.
545
546 Resolves: #1085
547
548 #### rtp.conf.sample: Correct stunaddr example.
549 Author: fabriziopicconi
550 Date: 2024-09-25
551
552
553 #### docs: Add version information to ARI resources and methods.
554 Author: George Joseph
555 Date: 2025-01-27
556
557 * Dump a git blame of each file in rest-api/api-docs.
558
559 * Get the commit for each "resourcePath" and "httpMethod" entry.
560
561 * Find the tags for each commit (same as other processes).
562
563 * Insert a "since" array after each "resourcePath" and "httpMethod" entry.
564
565
566 #### docs: Indent <since> tags.
567 Author: Sean Bright
568 Date: 2025-01-23
569
570 Also updates the 'since' of applications/functions that existed before
571 XML documentation was introduced (1.6.2.0).
572
573