Debian Codegraph @

ChangeLogs/ChangeLog-22.2.0.md

raw symbols SCIP
1
2 ## Change Log for Release asterisk-22.2.0
3
4 ### Links:
5
6 - [Full ChangeLog](https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.2.0.md)
7 - [GitHub Diff](https://github.com/asterisk/asterisk/compare/22.1.1...22.2.0)
8 - [Tarball](https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.2.0.tar.gz)
9 - [Downloads](https://downloads.asterisk.org/pub/telephony/asterisk)
10
11 ### Summary:
12
13 - Commits: 53
14 - Commit Authors: 20
15 - Issues Resolved: 19
16 - Security Advisories Resolved: 0
17
18 ### User Notes:
19
20 - #### sig_analog: Add Last Number Redial feature.
21 Users can now redial the last number
22 called if the lastnumredial setting is set to yes.
23 Resolves: #437
24
25 - #### Add SHA-256 and SHA-512-256 as authentication digest algorithms
26 The SHA-256 and SHA-512-256 algorithms are now available
27 for authentication as both a UAS and a UAC.
28
29 - #### Upgrade bundled pjproject to 2.15.1 Resolves: asterisk#1016
30 Bundled pjproject has been upgraded to 2.15.1. For more
31 information visit pjproject Github page: https://github.com/pjsip/pjproject/releases/tag/2.15.1
32
33 - #### res_pjsip: Add new AOR option "qualify_2xx_only"
34 The pjsip.conf AOR section now has a "qualify_2xx_only"
35 option that can be set so that only 2XX responses to OPTIONS requests
36 used to qualify a contact will mark the contact as available.
37
38 - #### app_queue: allow dynamically adding a queue member in paused state.
39 use the p option of AddQueueMember() for paused member state.
40 Optionally, use the r(reason) option to specify a custom reason for the pause.
41
42 - #### manager.c: Add Processed Call Count to CoreStatus output
43 The current processed call count is now returned as CoreProcessedCalls from the
44 CoreStatus AMI Action.
45
46 - #### func_curl.c: Add additional CURL options for SSL requests
47 The following new configuration options are now available
48 in the res_curl.conf file, and the CURL() function: 'ssl_verifyhost'
49 (CURLOPT_SSL_VERIFYHOST), 'ssl_cainfo' (CURLOPT_CAINFO), 'ssl_capath'
50 (CURLOPT_CAPATH), 'ssl_cert' (CURLOPT_SSLCERT), 'ssl_certtype'
51 (CURLOPT_SSLCERTTYPE), 'ssl_key' (CURLOPT_SSLKEY), 'ssl_keytype',
52 (CURLOPT_SSLKEYTYPE) and 'ssl_keypasswd' (CURLOPT_KEYPASSWD). See the
53 libcurl documentation for more details.
54
55 - #### res_stir_shaken: Allow sending Identity headers for unknown TNs
56 You can now set the "unknown_tn_attest_level" option
57 in the attestation and/or profile objects in stir_shaken.conf to
58 enable sending Identity headers for callerid TNs not explicitly
59 configured.
60
61
62 ### Upgrade Notes:
63
64 - #### alembic: Database updates required.
65 Two commits in this release...
66 'Add SHA-256 and SHA-512-256 as authentication digest algorithms'
67 'res_pjsip: Add new AOR option "qualify_2xx_only"'
68 ...have modified alembic scripts for the following database tables: ps_aors,
69 ps_contacts, ps_auths, ps_globals. If you don't use the scripts to update
70 your database, reads from those tables will succeeed but inserts into the
71 ps_contacts table by res_pjsip_registrar will fail.
72
73
74 ### Commit Authors:
75
76 - Abdelkader Boudih: (3)
77 - Alexey Khabulyak: (1)
78 - Alexey Vasilyev: (1)
79 - Allan Nathanson: (2)
80 - Artem Umerov: (1)
81 - George Joseph: (17)
82 - Jaco Kroon: (1)
83 - James Terhune: (1)
84 - Joshua C. Colp: (1)
85 - Kent: (1)
86 - Maksim Nesterov: (1)
87 - Maximilian Fridrich: (1)
88 - Mike Pultz: (3)
89 - Naveen Albert: (6)
90 - Sean Bright: (6)
91 - Sperl Viktor: (2)
92 - Stanislav Abramenkov: (2)
93 - Steffen Arntz: (1)
94 - Tinet-Mucw: (1)
95 - Viktor Litvinov: (1)
96
97 ## Issue and Commit Detail:
98
99 ### Closed Issues:
100
101 - 437: [new-feature]: sig_analog: Add Last Number Redial
102 - 851: [bug]: unable to read audiohook both side when packet lost on one side of the call
103 - 921: [bug]: Stir-Shaken doesn’t allow B or C attestation for unknown callerid which is allowed by ATIS-1000074.v003, §5.2.4
104 - 927: [bug]: no audio when media source changed during the call
105 - 948: [improvement]: Support SHA-256 algorithm on REGISTER and INVITE challenges
106 - 993: [bug]: sig_analog: Feature Group D / E911 no longer work
107 - 999: [bug]: Crash when setting a global variable with invalid UTF8 characters
108 - 1007: [improvement]: Cannot dynamically add queue member in paused state from dialplan or command line
109 - 1013: [improvement]: chan_pjsip: Send VIDUPDATE RTP frames for H.264 streams on endpoints without WebRTC
110 - 1021: [improvement]: proper queue_log paused state when member added dynamically
111 - 1023: [improvement]: Improve PJSIP_MEDIA_OFFER documentation
112 - 1028: [bug]: "pjsip show endpoints" shows some identifies on endpoints that shouldn't be there
113 - 1029: [bug]: chan_dahdi: Wrong channel state set when RINGING received
114 - 1054: [bug]: chan_iax2: Frames unnecessarily backlogged with jitterbuffer if no voice frames have been received yet
115 - 1058: [bug]: Asterisk fails to compile following commit 71a2e8c on Ubuntu 20.04
116 - 1064: [improvement]: ast_tls_script: Add option to skip passphrase for CA private key
117 - 1075: [bug]: res_prometheus does not set Content-Type header in HTTP response
118 - 1095: [bug]: res_pjsip missing "Failed to authenticate" log entry for unknown endpoint
119 - 1097: [bug]: res_pjsip/pjsip_options. ODBC: Unknown column 'qualify_2xx_only'
120
121 ### Commits By Author:
122
123 - #### Abdelkader Boudih (3):
124 - normalize contrib/ast-db-manage/queue_log.ini.sample
125 - res_config_pgsql: normalize database connection option with cel and cdr by sup..
126 - samples: Use "asterisk" instead of "postgres" for username
127
128 - #### Alexey Khabulyak (1):
129 - format_gsm.c: Added mime type
130
131 - #### Alexey Vasilyev (1):
132 - res_rtp_asterisk.c: Fix bridged_payload matching with sample rate for DTMF
133
134 - #### Allan Nathanson (2):
135 - config.c: retain leading whitespace before comments
136 - config.c: fix #tryinclude being converted to #include on rewrite
137
138 - #### Artem Umerov (1):
139 - logger.h: Fix build when AST_DEVMODE is not defined.
140
141 - #### George Joseph (17):
142 - res_stir_shaken: Allow sending Identity headers for unknown TNs
143 - Allow C++ source files (as extension .cc) in the main directory
144 - Add ability to pass arguments to unit tests from the CLI
145 - Header fixes for compiling C++ source files
146 - gcc14: Fix issues caught by gcc 14
147 - Add C++ Standard detection to configure and fix a new C++20 compile issue
148 - Add SHA-256 and SHA-512-256 as authentication digest algorithms
149 - docs: Enable since/version handling for XML, CLI and ARI documentation
150 - docs: Various XML fixes
151 - res_pjsip_authenticator_digest: Fix issue with missing auth and DONT_OPTIMIZE
152 - docs: Add version information to configObject and configOption XML elements
153 - README.md, asterisk.c: Update Copyright Dates
154 - docs: Add version information to manager event instance XML elements
155 - docs: Add version information to application and function XML elements
156 - res_pjsip: Fix startup/reload memory leak in config_auth.
157 - alembic: Database updates required.
158 - res_pjsip_authenticator_digest: Make correct error messages appear again.
159
160 - #### Jaco Kroon (1):
161 - res_odbc: release threads from potential starvation.
162
163 - #### James Terhune (1):
164 - main/stasis_channels.c: Fix crash when setting a global variable with invalid ..
165
166 - #### Joshua C. Colp (1):
167 - LICENSE: Update company name, email, and address.
168
169 - #### Kent (1):
170 - res_pjsip: Add new AOR option "qualify_2xx_only"
171
172 - #### Maksim Nesterov (1):
173 - func_uuid: Add a new dialplan function to generate UUIDs
174
175 - #### Maximilian Fridrich (1):
176 - chan_pjsip: Send VIDUPDATE RTP frame for all H.264 streams
177
178 - #### Mike Pultz (3):
179 - func_curl.c: Add additional CURL options for SSL requests
180 - manager.c: Add Processed Call Count to CoreStatus output
181 - res_curl.conf.sample: clean up sample configuration and add new SSL options
182
183 - #### Naveen Albert (6):
184 - sig_analog: Fix regression with FGD and E911 signaling.
185 - chan_iax2: Add log message for rejected calls.
186 - chan_dahdi: Fix wrong channel state when RINGING recieved.
187 - sig_analog: Add Last Number Redial feature.
188 - chan_iax2: Avoid unnecessarily backlogging non-voice frames.
189 - ast_tls_cert: Add option to skip passphrase for CA private key.
190
191 - #### Sean Bright (6):
192 - config.c: Fix off-nominal reference leak.
193 - manager.c: Rename restrictedFile to is_restricted_file.
194 - manager: Add `<since>` tags for all AMI actions.
195 - dialplan_functions_doc.xml: Document PJSIP_MEDIA_OFFER's `media` argument.
196 - strings.c: Improve numeric detection in `ast_strings_match()`.
197 - res_prometheus.c: Set Content-Type header on /metrics response.
198
199 - #### Sperl Viktor (2):
200 - app_queue: allow dynamically adding a queue member in paused state.
201 - app_queue: indicate the paused state of a dynamically added member in queue_log.
202
203 - #### Stanislav Abramenkov (2):
204 - Upgrade bundled pjproject to 2.15.1 Resolves: asterisk#1016
205 - res_pjproject: Fix typo (OpenmSSL->OpenSSL)
206
207 - #### Steffen Arntz (1):
208 - logger.c fix: malformed JSON template
209
210 - #### Tinet-mucw (1):
211 - audiohook.c: resolving the issue with audiohook both reading when packet loss ..
212
213 - #### Viktor Litvinov (1):
214 - res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big
215
216
217 ### Commit List:
218
219 - res_pjsip_authenticator_digest: Make correct error messages appear again.
220 - alembic: Database updates required.
221 - res_pjsip: Fix startup/reload memory leak in config_auth.
222 - docs: Add version information to application and function XML elements
223 - docs: Add version information to manager event instance XML elements
224 - LICENSE: Update company name, email, and address.
225 - res_prometheus.c: Set Content-Type header on /metrics response.
226 - README.md, asterisk.c: Update Copyright Dates
227 - docs: Add version information to configObject and configOption XML elements
228 - res_pjsip_authenticator_digest: Fix issue with missing auth and DONT_OPTIMIZE
229 - ast_tls_cert: Add option to skip passphrase for CA private key.
230 - chan_iax2: Avoid unnecessarily backlogging non-voice frames.
231 - config.c: fix #tryinclude being converted to #include on rewrite
232 - sig_analog: Add Last Number Redial feature.
233 - docs: Various XML fixes
234 - strings.c: Improve numeric detection in `ast_strings_match()`.
235 - docs: Enable since/version handling for XML, CLI and ARI documentation
236 - logger.h: Fix build when AST_DEVMODE is not defined.
237 - dialplan_functions_doc.xml: Document PJSIP_MEDIA_OFFER's `media` argument.
238 - samples: Use "asterisk" instead of "postgres" for username
239 - manager: Add `<since>` tags for all AMI actions.
240 - logger.c fix: malformed JSON template
241 - manager.c: Rename restrictedFile to is_restricted_file.
242 - res_pjproject: Fix typo (OpenmSSL->OpenSSL)
243 - Add SHA-256 and SHA-512-256 as authentication digest algorithms
244 - config.c: retain leading whitespace before comments
245 - config.c: Fix off-nominal reference leak.
246 - normalize contrib/ast-db-manage/queue_log.ini.sample
247 - Add C++ Standard detection to configure and fix a new C++20 compile issue
248 - chan_dahdi: Fix wrong channel state when RINGING recieved.
249 - Upgrade bundled pjproject to 2.15.1 Resolves: asterisk#1016
250 - gcc14: Fix issues caught by gcc 14
251 - Header fixes for compiling C++ source files
252 - Add ability to pass arguments to unit tests from the CLI
253 - res_pjsip: Add new AOR option "qualify_2xx_only"
254 - res_odbc: release threads from potential starvation.
255 - Allow C++ source files (as extension .cc) in the main directory
256 - format_gsm.c: Added mime type
257 - func_uuid: Add a new dialplan function to generate UUIDs
258 - app_queue: allow dynamically adding a queue member in paused state.
259 - chan_iax2: Add log message for rejected calls.
260 - chan_pjsip: Send VIDUPDATE RTP frame for all H.264 streams
261 - res_curl.conf.sample: clean up sample configuration and add new SSL options
262 - res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big
263 - res_rtp_asterisk.c: Fix bridged_payload matching with sample rate for DTMF
264 - manager.c: Add Processed Call Count to CoreStatus output
265 - func_curl.c: Add additional CURL options for SSL requests
266 - sig_analog: Fix regression with FGD and E911 signaling.
267 - res_stir_shaken: Allow sending Identity headers for unknown TNs
268
269 ### Commit Details:
270
271 #### res_pjsip_authenticator_digest: Make correct error messages appear again.
272 Author: George Joseph
273 Date: 2025-01-28
274
275 When an incoming request can't be matched to an endpoint, the "artificial"
276 auth object is used to create a challenge to return in a 401 response and we
277 emit a "No matching endpoint found" log message. If the client then responds
278 with an Authorization header but the request still can't be matched to an
279 endpoint, the verification will fail and, as before, we'll create a challenge
280 to return in a 401 response and we emit a "No matching endpoint found" log
281 message. HOWEVER, because there WAS an Authorization header and it failed
282 verification, we should have also been emitting a "Failed to authenticate"
283 log message but weren't because there was a check that short-circuited that
284 it if the artificial auth was used. Since many admins use the "Failed to
285 authenticate" message with log parsers like fail2ban, those attempts were not
286 being recognized as suspicious.
287
288 Changes:
289
290 * digest_check_auth() now always emits the "Failed to authenticate" log
291 message if verification of an Authorization header failed even if the
292 artificial auth was used.
293
294 * The verification logic was refactored to be clearer about the handling
295 of the return codes from verify().
296
297 * Comments were added clarify what return codes digest_check_auth() should
298 return to the distributor and the implications of changing them.
299
300 Resolves: #1095
301
302 #### alembic: Database updates required.
303 Author: George Joseph
304 Date: 2025-01-28
305
306 This commit doesn't actually change anything. It just adds the following
307 upgrade notes that were omitted from the original commits.
308
309 Resolves: #1097
310
311 UpgradeNote: Two commits in this release...
312 'Add SHA-256 and SHA-512-256 as authentication digest algorithms'
313 'res_pjsip: Add new AOR option "qualify_2xx_only"'
314 ...have modified alembic scripts for the following database tables: ps_aors,
315 ps_contacts, ps_auths, ps_globals. If you don't use the scripts to update
316 your database, reads from those tables will succeeed but inserts into the
317 ps_contacts table by res_pjsip_registrar will fail.
318
319 #### res_pjsip: Fix startup/reload memory leak in config_auth.
320 Author: George Joseph
321 Date: 2025-01-23
322
323 An issue in config_auth.c:ast_sip_auth_digest_algorithms_vector_init() was
324 causing double allocations for the two supported_algorithms vectors to the
325 tune of 915 bytes. The leak only happens on startup and when a reload is done
326 and doesn't get bigger with the number of auth objects defined.
327
328 * Pre-initialized the two vectors in config_auth:auth_alloc().
329 * Removed the allocations in ast_sip_auth_digest_algorithms_vector_init().
330 * Added a note to the doc for ast_sip_auth_digest_algorithms_vector_init()
331 noting that the vector passed in should be initialized and empty.
332 * Simplified the create_artificial_auth() function in pjsip_distributor.
333 * Set the vector initialization count to 0 in config_global:global_apply().
334
335 #### docs: Add version information to application and function XML elements
336 Author: George Joseph
337 Date: 2025-01-23
338
339 * Do a git blame on the embedded XML application or function element.
340
341 * From the commit hash, grab the summary line.
342
343 * Do a git log --grep <summary> to find the cherry-pick commits in all
344 branches that match.
345
346 * Do a git patch-id to ensure the commits are all related and didn't get
347 a false match on the summary.
348
349 * Do a git tag --contains <commit> to find the tags that contain each
350 commit.
351
352 * Weed out all tags not ..0.
353
354 * Sort and discard any .0.0 and following tags where the commit
355 appeared in an earlier branch.
356
357 * The result is a single tag for each branch where the application or function
358 was defined.
359
360 The applications and functions defined in the following files were done by
361 hand because the XML was extracted from the C source file relatively recently.
362 * channels/pjsip/dialplan_functions_doc.xml
363 * main/logger_doc.xml
364 * main/manager_doc.xml
365 * res/res_geolocation/geoloc_doc.xml
366 * res/res_stir_shaken/stir_shaken_doc.xml
367
368
369 #### docs: Add version information to manager event instance XML elements
370 Author: George Joseph
371 Date: 2025-01-20
372
373 * Do a git blame on the embedded XML managerEvent elements.
374
375 * From the commit hash, grab the summary line.
376
377 * Do a git log --grep <summary> to find the cherry-pick commits in all
378 branches that match.
379
380 * Do a git patch-id to ensure the commits are all related and didn't get
381 a false match on the summary.
382
383 * Do a git tag --contains <commit> to find the tags that contain each
384 commit.
385
386 * Weed out all tags not ..0.
387
388 * Sort and discard any .0.0 and following tags where the commit
389 appeared in an earlier branch.
390
391 * The result is a single tag for each branch where the application or function
392 was defined.
393
394 The events defined in res/res_pjsip/pjsip_manager.xml were done by hand
395 because the XML was extracted from the C source file relatively recently.
396
397 Two bugs were fixed along the way...
398
399 * The get_documentation awk script was exiting after it processed the first
400 DOCUMENTATION block it found in a file. We have at least 1 source file
401 with multiple DOCUMENTATION blocks so only the first one in them was being
402 processed. The awk script was changed to continue searching rather
403 than exiting after the first block.
404
405 * Fixing the awk script revealed an issue in logger.c where the third
406 DOCUMENTATION block contained a XML fragment that consisted only of
407 a managerEventInstance element that wasn't wrapped in a managerEvent
408 element. Since logger_doc.xml already existed, the remaining fragments
409 in logger.c were moved to it and properly organized.
410
411
412 #### LICENSE: Update company name, email, and address.
413 Author: Joshua C. Colp
414 Date: 2025-01-21
415
416
417 #### res_prometheus.c: Set Content-Type header on /metrics response.
418 Author: Sean Bright
419 Date: 2025-01-21
420
421 This should resolve the Prometheus error:
422
423 > Error scraping target: non-compliant scrape target
424 sending blank Content-Type and no
425 fallback_scrape_protocol specified for target.
426
427 Resolves: #1075
428
429 #### README.md, asterisk.c: Update Copyright Dates
430 Author: George Joseph
431 Date: 2025-01-20
432
433
434 #### docs: Add version information to configObject and configOption XML elements
435 Author: George Joseph
436 Date: 2025-01-16
437
438 Most of the configObjects and configOptions that are implemented with
439 ACO or Sorcery now have `<since>/<version>` elements added. There are
440 probably some that the script I used didn't catch. The version tags were
441 determined by the following...
442 * Do a git blame on the API call that created the object or option.
443 * From the commit hash, grab the summary line.
444 * Do a `git log --grep <summary>` to find the cherry-pick commits in all
445 branches that match.
446 * Do a `git patch-id` to ensure the commits are all related and didn't get
447 a false match on the summary.
448 * Do a `git tag --contains <commit>` to find the tags that contain each
449 commit.
450 * Weed out all tags not <major>.<minor>.0.
451 * Sort and discard any <major>.0.0 and following tags where the commit
452 appeared in an earlier branch.
453 * The result is a single tag for each branch where the API was last touched.
454
455 configObjects and configOptions elements implemented with the base
456 ast_config APIs were just not possible to find due to the non-deterministic
457 way they are accessed.
458
459 Also note that if the API call was on modified after it was added, the
460 version will be the one it was last modified in.
461
462 Final note: The configObject and configOption elements were introduced in
463 12.0.0 so options created before then may not have any XML documentation.
464
465
466 #### res_pjsip_authenticator_digest: Fix issue with missing auth and DONT_OPTIMIZE
467 Author: George Joseph
468 Date: 2025-01-17
469
470 The return code fom digest_check_auth wasn't explicitly being initialized.
471 The return code also wasn't explicitly set to CHALLENGE when challenges
472 were sent. When optimization was turned off (DONT_OPTIMIZE), the compiler
473 was setting it to "0"(CHALLENGE) which worked fine. However, with
474 optimization turned on, it was setting it to "1" (SUCCESS) so if there was
475 no incoming Authorization header, the function was returning SUCCESS to the
476 distributor allowing the request to incorrectly succeed.
477
478 The return code is now initialized correctly and is now explicitly set
479 to CHALLENGE when we send challenges.
480
481
482 #### ast_tls_cert: Add option to skip passphrase for CA private key.
483 Author: Naveen Albert
484 Date: 2025-01-14
485
486 Currently, the ast_tls_cert file is hardcoded to use the -des3 option
487 for 3DES encryption, and the script needs to be manually modified
488 to not require a passphrase. Add an option (-e) that disables
489 encryption of the CA private key so no passphrase is required.
490
491 Resolves: #1064
492
493 #### chan_iax2: Avoid unnecessarily backlogging non-voice frames.
494 Author: Naveen Albert
495 Date: 2025-01-09
496
497 Currently, when receiving an unauthenticated call, we keep track
498 of the negotiated format in the chosenformat, which allows us
499 to later create the channel using the right format. However,
500 this was not done for authenticated calls. This meant that in
501 certain circumstances, if we had not yet received a voice frame
502 from the peer, only certain other types of frames (e.g. text),
503 there were no variables containing the appropriate frame.
504 This led to problems in the jitterbuffer callback where we
505 unnecessarily bailed out of retrieving a frame from the jitterbuffer.
506 This was logic intentionally added in commit 73103bdcd5b342ce5dfa32039333ffadad551151
507 in response to an earlier regression, and while this prevents
508 crashes, it also backlogs legitimate frames unnecessarily.
509
510 The abort logic was initially added because at this point in the
511 code, we did not have the negotiated format available to us.
512 However, it should always be available to us as a last resort
513 in chosenformat, so we now pull it from there if needed. This
514 allows us to process frames the jitterbuffer even if voicefmt
515 and peerfmt aren't set and still avoid the crash. The failsafe
516 logic is retained, but now it shouldn't be triggered anymore.
517
518 Resolves: #1054
519
520 #### config.c: fix #tryinclude being converted to #include on rewrite
521 Author: Allan Nathanson
522 Date: 2024-09-16
523
524 Correct an issue in ast_config_text_file_save2() when updating configuration
525 files with "#tryinclude" statements. The API currently replaces "#tryinclude"
526 with "#include". The API also creates empty template files if the referenced
527 files do not exist. This change resolves these problems.
528
529 Resolves: https://github.com/asterisk/asterisk/issues/920
530
531 #### sig_analog: Add Last Number Redial feature.
532 Author: Naveen Albert
533 Date: 2023-11-10
534
535 This adds the Last Number Redial feature to
536 simple switch.
537
538 UserNote: Users can now redial the last number
539 called if the lastnumredial setting is set to yes.
540
541 Resolves: #437
542
543 #### docs: Various XML fixes
544 Author: George Joseph
545 Date: 2025-01-15
546
547 * channels/pjsip/dialplan_functions_doc.xml: Added xmlns:xi to docs element.
548
549 * main/bucket.c: Removed XML completely since the "bucket" and "file" objects
550 are internal only with no config file.
551
552 * main/named_acl.c: Fixed the configFile element name. It was "named_acl.conf"
553 and should have been "acl.conf"
554
555 * res/res_geolocation/geoloc_doc.xml: Added xmlns:xi to docs element.
556
557 * res/res_http_media_cache.c: Fixed the configFile element name. It was
558 "http_media_cache.conf" and should have been "res_http_media_cache.conf".
559
560
561 #### strings.c: Improve numeric detection in `ast_strings_match()`.
562 Author: Sean Bright
563 Date: 2025-01-15
564
565 Essentially, we were treating 1234x1234 and 1234x5678 as 'equal'
566 because we were able to convert the prefix of each of these strings to
567 the same number.
568
569 Resolves: #1028
570
571 #### docs: Enable since/version handling for XML, CLI and ARI documentation
572 Author: George Joseph
573 Date: 2025-01-09
574
575 * Added the "since" element to the XML configObject and configOption elements
576 in appdocsxml.dtd.
577
578 * Added the "Since" section to the following CLI output:
579 ```
580 config show help <module> <object>
581 config show help <module> <object> <option>
582 core show application <app>
583 core show function <func>
584 manager show command <command>
585 manager show event <event>
586 agi show commands topic <topic>
587 ```
588
589 * Refactored the commands above to output their sections in the same order:
590 Synopsis, Since, Description, Syntax, Arguments, SeeAlso
591
592 * Refactored the commands above so they all use the same pattern for writing
593 the output to the CLI.
594
595 * Fixed several memory leaks caused by failure to free temporary output
596 buffers.
597
598 * Added a "since" array to the mustache template for the top-level resources
599 (Channel, Endpoint, etc.) and to the paths/methods underneath them. These
600 will be added to the generated markdown if present.
601 Example:
602 ```
603 "resourcePath": "/api-docs/channels.{format}",
604 "requiresModules": [
605 "res_stasis_answer",
606 "res_stasis_playback",
607 "res_stasis_recording",
608 "res_stasis_snoop"
609 ],
610 "since": [
611 "18.0.0",
612 "21.0.0"
613 ],
614 "apis": [
615 {
616 "path": "/channels",
617 "description": "Active channels",
618 "operations": [
619 {
620 "httpMethod": "GET",
621 "since": [
622 "18.6.0",
623 "21.8.0"
624 ],
625 "summary": "List all active channels in Asterisk.",
626 "nickname": "list",
627 "responseClass": "List[Channel]"
628 },
629
630 ```
631
632 NOTE: No versioning information is actually added in this commit.
633 Those will be added separately and instructions for adding and maintaining
634 them will be published on the documentation site at a later date.
635
636
637 #### logger.h: Fix build when AST_DEVMODE is not defined.
638 Author: Artem Umerov
639 Date: 2025-01-13
640
641 Resolves: #1058
642
643 #### dialplan_functions_doc.xml: Document PJSIP_MEDIA_OFFER's `media` argument.
644 Author: Sean Bright
645 Date: 2025-01-14
646
647 Resolves: #1023
648
649 #### samples: Use "asterisk" instead of "postgres" for username
650 Author: Abdelkader Boudih
651 Date: 2025-01-07
652
653
654 #### manager: Add `<since>` tags for all AMI actions.
655 Author: Sean Bright
656 Date: 2025-01-02
657
658
659 #### logger.c fix: malformed JSON template
660 Author: Steffen Arntz
661 Date: 2025-01-08
662
663 this typo was mentioned before, but never got fixed.
664 https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618/6
665
666
667 #### manager.c: Rename restrictedFile to is_restricted_file.
668 Author: Sean Bright
669 Date: 2025-01-09
670
671 Also correct the spelling of 'privileges.'
672
673
674 #### res_config_pgsql: normalize database connection option with cel and cdr by sup..
675 Author: Abdelkader Boudih
676 Date: 2025-01-08
677
678
679 #### res_pjproject: Fix typo (OpenmSSL->OpenSSL)
680 Author: Stanislav Abramenkov
681 Date: 2025-01-10
682
683 Fix typo (OpenmSSL->OpenSSL) mentioned by bkford in #972
684
685
686 #### Add SHA-256 and SHA-512-256 as authentication digest algorithms
687 Author: George Joseph
688 Date: 2024-10-17
689
690 * Refactored pjproject code to support the new algorithms and
691 added a patch file to third-party/pjproject/patches
692
693 * Added new parameters to the pjsip auth object:
694 * password_digest = <algorithm>:<digest>
695 * supported_algorithms_uac = List of algorithms to support
696 when acting as a UAC.
697 * supported_algorithms_uas = List of algorithms to support
698 when acting as a UAS.
699 See the auth object in pjsip.conf.sample for detailed info.
700
701 * Updated both res_pjsip_authenticator_digest.c (for UAS) and
702 res_pjsip_outbound_authentocator_digest.c (UAC) to suport the
703 new algorithms.
704
705 The new algorithms are only available with the bundled version
706 of pjproject, or an external version > 2.14.1. OpenSSL version
707 1.1.1 or greater is required to support SHA-512-256.
708
709 Resolves: #948
710
711 UserNote: The SHA-256 and SHA-512-256 algorithms are now available
712 for authentication as both a UAS and a UAC.
713
714
715 #### config.c: retain leading whitespace before comments
716 Author: Allan Nathanson
717 Date: 2024-10-30
718
719 Configurations loaded with the ast_config_load2() API and later written
720 out with ast_config_text_file_save2() will have any leading whitespace
721 stripped away. The APIs should make reasonable efforts to maintain the
722 content and formatting of the configuration files.
723
724 This change retains any leading whitespace from comment lines that start
725 with a ";".
726
727 Resolves: https://github.com/asterisk/asterisk/issues/970
728
729 #### config.c: Fix off-nominal reference leak.
730 Author: Sean Bright
731 Date: 2025-01-07
732
733 This was identified and fixed by @Allan-N in #918 but it is an
734 important fix in its own right.
735
736 The fix here is slightly different than Allan's in that we just move
737 the initialization of the problematic AO2 container to where it is
738 first used.
739
740 Fixes #1046
741
742
743 #### normalize contrib/ast-db-manage/queue_log.ini.sample
744 Author: Abdelkader Boudih
745 Date: 2025-01-05
746
747
748 #### Add C++ Standard detection to configure and fix a new C++20 compile issue
749 Author: George Joseph
750 Date: 2025-01-03
751
752 * The autoconf-archive package contains macros useful for detecting C++
753 standard and testing other C++ capabilities but that package was never
754 included in the install_prereq script so many existing build environments
755 won't have it. Even if it is installed, older versions won't newer C++
756 standards and will actually cause an error if you try to test for that
757 version. To make it available for those environments, the
758 ax_cxx_compile_stdcxx.m4 macro has copied from the latest release of
759 autoconf-archive into the autoconf directory.
760
761 * A convenience wrapper(ast_cxx_check_std) around ax_cxx_compile_stdcxx was
762 also added so checking the standard version and setting the
763 asterisk-specific PBX_ variables becomes a one-liner:
764 `AST_CXX_CHECK_STD([std], [force_latest_std])`.
765 Calling that with a version of `17` for instance, will set PBX_CXX17
766 to 0 or 1 depending on whether the current c++ compiler supports stdc++17.
767 HAVE_CXX17 will also be 'defined" or not depending on the result.
768
769 * C++ compilers hardly ever default to the latest standard they support. g++
770 version 14 for instance supports up to C++23 but only uses C++17 by default.
771 If you want to use C++23, you have to add `-std=gnu++=23` to the g++
772 command line. If you set the second argument of AST_CXX_CHECK_STD to "yes",
773 the macro will automatically keep the highest `-std=gnu++` value that
774 worked and pass that to the Makefiles.
775
776 * The autoconf-archive package was added to install_prereq for future use.
777
778 * Updated configure.ac to use AST_CXX_CHECK_STD() to check for C++
779 versions 11, 14, 17, 20 and 23.
780
781 * Updated configure.ac to accept the `--enable-latest-cxx-std` option which
782 will set the second option to AST_CXX_CHECK_STD() to "yes". The default
783 is "no".
784
785 * ast_copy_string() in strings.h declares the 'sz' variable as volatile and
786 does an `sz--` on it later. C++20 no longer allows the `++` and `--`
787 increment and decrement operators to be used on variables declared as
788 volatile however so that was changed to `sz -= 1`.
789
790
791 #### chan_dahdi: Fix wrong channel state when RINGING recieved.
792 Author: Naveen Albert
793 Date: 2024-12-16
794
795 Previously, when AST_CONTROL_RINGING was received by
796 a DAHDI device, it would set its channel state to
797 AST_STATE_RINGING. However, an analysis of the codebase
798 and other channel drivers reveals RINGING corresponds to
799 physical power ringing, whereas AST_STATE_RING should be
800 used for audible ringback on the channel. This also ensures
801 the correct device state is returned by the channel state
802 to device state conversion.
803
804 Since there seems to be confusion in various places regarding
805 AST_STATE_RING vs. AST_STATE_RINGING, some documentation has
806 been added or corrected to clarify the actual purposes of these
807 two channel states, and the associated device state mapping.
808
809 An edge case that prompted this fix, but isn't explicitly
810 addressed here, is that of an incoming call to an FXO port.
811 The channel state will be "Ring", which maps to a device state
812 of "In Use", not "Ringing" as would be more intuitive. However,
813 this is semantic, since technically, Asterisk is treating this
814 the same as any other incoming call, and so "Ring" is the
815 semantic state (put another way, Asterisk isn't ringing anything,
816 like in the cases where channels are in the "Ringing" state).
817
818 Since FXO ports don't currently support Call Waiting, a suitable
819 workaround for the above would be to ignore the device state and
820 instead check the channel state (e.g. IMPORT(DAHDI/1-1,CHANNEL(state)))
821 since it will be Ring if the FXO port is idle (but a call is ringing
822 on it) and Up if the FXO port is actually in use. (In both cases,
823 the device state would misleadingly be "In Use".)
824
825 Resolves: #1029
826
827 #### Upgrade bundled pjproject to 2.15.1 Resolves: asterisk#1016
828 Author: Stanislav Abramenkov
829 Date: 2024-12-03
830
831 UserNote: Bundled pjproject has been upgraded to 2.15.1. For more
832 information visit pjproject Github page: https://github.com/pjsip/pjproject/releases/tag/2.15.1
833
834
835 #### gcc14: Fix issues caught by gcc 14
836 Author: George Joseph
837 Date: 2025-01-03
838
839 * test_message.c: Fix segfaults caused by passing NULL as an sprintf fmt.
840
841
842 #### Header fixes for compiling C++ source files
843 Author: George Joseph
844 Date: 2024-12-31
845
846 A few tweaks needed to be done to some existing header files to allow them to
847 be compiled when included from C++ source files.
848
849 logger.h had declarations for ast_register_verbose() and
850 ast_unregister_verbose() which caused C++ issues but those functions were
851 actually removed from logger.c many years ago so the declarations were just
852 removed from logger.h.
853
854
855 #### Add ability to pass arguments to unit tests from the CLI
856 Author: George Joseph
857 Date: 2024-12-27
858
859 Unit tests can now be passed custom arguments from the command
860 line. For example, the following command would run the "mytest" test
861 in the "/main/mycat" category with the option "myoption=54"
862
863 `CLI> test execute category /main/mycat name mytest options myoption=54`
864
865 You can also pass options to an entire category...
866
867 `CLI> test execute category /main/mycat options myoption=54`
868
869 Basically, everything after the "options" keyword is passed verbatim to
870 the test which must decide what to do with it.
871
872 * A new API ast_test_get_cli_args() was created to give the tests access to
873 the cli_args->argc and cli_args->argv elements.
874
875 * Although not needed for the option processing, a new macro
876 ast_test_validate_cleanup_custom() was added to test.h that allows you
877 to specify a custom error message instead of just "Condition failed".
878
879 * The test_skel.c was updated to demonstrate parsing options and the use
880 of the ast_test_validate_cleanup_custom() macro.
881
882
883 #### res_pjsip: Add new AOR option "qualify_2xx_only"
884 Author: Kent
885 Date: 2024-12-03
886
887 Added a new option "qualify_2xx_only" to the res_pjsip AOR qualify
888 feature to mark a contact as available only if an OPTIONS request
889 returns a 2XX response. If the option is not specified or is false,
890 any response to the OPTIONS request marks the contact as available.
891
892 UserNote: The pjsip.conf AOR section now has a "qualify_2xx_only"
893 option that can be set so that only 2XX responses to OPTIONS requests
894 used to qualify a contact will mark the contact as available.
895
896
897 #### res_odbc: release threads from potential starvation.
898 Author: Jaco Kroon
899 Date: 2024-12-10
900
901 Whenever a slot is freed up due to a failed connection, wake up a waiter
902 before failing.
903
904 In the case of a dead connection there could be waiters, for example,
905 let's say two threads tries to acquire objects at the same time, with
906 one in the cached connections, one will acquire the dead connection, and
907 the other will enter into the wait state. The thread with the dead
908 connection will clear up the dead connection, and then attempt a
909 re-acquire (at this point there cannot be cached connections else the
910 other thread would have received that and tried to clean up), as such,
911 at this point we're guaranteed that either there are no waiting threads,
912 or that the maxconnections - connection_cnt threads will attempt to
913 re-acquire connections, and then either succeed, using those
914 connections, or failing, and then signalling to release more waiters.
915
916 Also fix the pointer log for ODBC handle %p dead which would always
917 reflect NULL.
918
919 Signed-off-by: Jaco Kroon <[email protected]>
920
921 #### app_queue: indicate the paused state of a dynamically added member in queue_log.
922 Author: Sperl Viktor
923 Date: 2024-12-05
924
925 Fixes: #1021
926
927 #### Allow C++ source files (as extension .cc) in the main directory
928 Author: George Joseph
929 Date: 2024-12-09
930
931 Although C++ files (as extension .cc) have been handled in the module
932 directories for many years, the main directory was missing one line in its
933 Makefile that prevented C++ files from being recognised there.
934
935
936 #### format_gsm.c: Added mime type
937 Author: Alexey Khabulyak
938 Date: 2024-12-03
939
940 Sometimes it's impossible to get a file extension from URL
941 (eg. http://example.com/gsm/your) so we have to rely on content-type header.
942 Currenly, asterisk does not support content-type for gsm format(unlike wav).
943 Added audio/gsm according to https://www.rfc-editor.org/rfc/rfc4856.html
944
945
946 #### func_uuid: Add a new dialplan function to generate UUIDs
947 Author: Maksim Nesterov
948 Date: 2024-12-01
949
950 This function is useful for uniquely identifying calls, recordings, and other entities in distributed environments, as well as for generating an argument for the AudioSocket application.
951
952
953 #### app_queue: allow dynamically adding a queue member in paused state.
954 Author: Sperl Viktor
955 Date: 2024-11-27
956
957 Fixes: #1007
958
959 UserNote: use the p option of AddQueueMember() for paused member state.
960 Optionally, use the r(reason) option to specify a custom reason for the pause.
961
962
963 #### chan_iax2: Add log message for rejected calls.
964 Author: Naveen Albert
965 Date: 2023-11-06
966
967 Add a log message for a path that currently silently drops IAX2
968 frames without indicating that anything is wrong.
969
970
971 #### chan_pjsip: Send VIDUPDATE RTP frame for all H.264 streams
972 Author: Maximilian Fridrich
973 Date: 2024-12-02
974
975 Currently, when a chan_pjsip channel receives a VIDUPDATE indication,
976 an RTP VIDUPDATE frame is only queued on a H.264 stream if WebRTC is
977 enabled on that endpoint. This restriction does not really make sense.
978
979 Now, a VIDUPDATE RTP frame is written even if WebRTC is not enabled (as
980 is the case with VP8, VP9, and H.265 streams).
981
982 Resolves: #1013
983
984 #### audiohook.c: resolving the issue with audiohook both reading when packet loss ..
985 Author: Tinet-mucw
986 Date: 2024-08-22
987
988 When there is 0% packet loss on one side of the call and 15% packet loss on the other side, reading frame is often failed when reading direction_both audiohook. when read_factory available = 0, write_factory available = 320; i think write factory is usable read; because after reading one frame, there is still another frame that can be read together with the next read factory frame.
989
990 Resolves: #851
991
992 #### res_curl.conf.sample: clean up sample configuration and add new SSL options
993 Author: Mike Pultz
994 Date: 2024-11-21
995
996 This update properly documents all the current configuration options supported
997 by the curl implementation, including the new ssl_* options.
998
999
1000 #### res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big
1001 Author: Viktor Litvinov
1002 Date: 2024-10-02
1003
1004 Set Mark bit in rtp stream when timestamp skew is bigger than MAX_TIMESTAMP_SKEW.
1005
1006 Fixes: #927
1007
1008 #### res_rtp_asterisk.c: Fix bridged_payload matching with sample rate for DTMF
1009 Author: Alexey Vasilyev
1010 Date: 2024-11-25
1011
1012 Fixes #1004
1013
1014
1015 #### manager.c: Add Processed Call Count to CoreStatus output
1016 Author: Mike Pultz
1017 Date: 2024-11-21
1018
1019 This update adds the processed call count to the CoreStatus AMI Action responsie. This output is
1020 similar to the values returned by "core show channels" or "core show calls" in the CLI.
1021
1022 UserNote: The current processed call count is now returned as CoreProcessedCalls from the
1023 CoreStatus AMI Action.
1024
1025
1026 #### func_curl.c: Add additional CURL options for SSL requests
1027 Author: Mike Pultz
1028 Date: 2024-11-09
1029
1030 This patch adds additional CURL TLS options / options to support mTLS authenticated requests:
1031
1032 * ssl_verifyhost - perform a host verification on the peer certificate (CURLOPT_SSL_VERIFYHOST)
1033 * ssl_cainfo - define a CA certificate file (CURLOPT_CAINFO)
1034 * ssl_capath - define a CA certificate directory (CURLOPT_CAPATH)
1035 * ssl_cert - define a client certificate for the request (CURLOPT_SSLCERT)
1036 * ssl_certtype - specify the client certificate type (CURLOPT_SSLCERTTYPE)
1037 * ssl_key - define a client private key for the request (CURLOPT_SSLKEY)
1038 * ssl_keytype - specify the client private key type (CURLOPT_SSLKEYTYPE)
1039 * ssl_keypasswd - set a password for the private key, if required (CURLOPT_KEYPASSWD)
1040
1041 UserNote: The following new configuration options are now available
1042 in the res_curl.conf file, and the CURL() function: 'ssl_verifyhost'
1043 (CURLOPT_SSL_VERIFYHOST), 'ssl_cainfo' (CURLOPT_CAINFO), 'ssl_capath'
1044 (CURLOPT_CAPATH), 'ssl_cert' (CURLOPT_SSLCERT), 'ssl_certtype'
1045 (CURLOPT_SSLCERTTYPE), 'ssl_key' (CURLOPT_SSLKEY), 'ssl_keytype',
1046 (CURLOPT_SSLKEYTYPE) and 'ssl_keypasswd' (CURLOPT_KEYPASSWD). See the
1047 libcurl documentation for more details.
1048
1049
1050 #### sig_analog: Fix regression with FGD and E911 signaling.
1051 Author: Naveen Albert
1052 Date: 2024-11-14
1053
1054 Commit 466eb4a52b69e6dead7ebba13a83f14ef8a559c1 introduced a regression
1055 which completely broke Feature Group D and E911 signaling, by removing
1056 the call to analog_my_getsigstr, which affected multiple switch cases.
1057 Restore the original behavior for all protocols except Feature Group C
1058 CAMA (MF), which is all that patch was attempting to target.
1059
1060 Resolves: #993
1061
1062 #### main/stasis_channels.c: Fix crash when setting a global variable with invalid ..
1063 Author: James Terhune
1064 Date: 2024-11-18
1065
1066 Add check for null value of chan before referencing it with ast_channel_name()
1067
1068 Resolves: #999
1069
1070 #### res_stir_shaken: Allow sending Identity headers for unknown TNs
1071 Author: George Joseph
1072 Date: 2024-11-08
1073
1074 Added a new option "unknown_tn_attest_level" to allow Identity
1075 headers to be sent when a callerid TN isn't explicitly configured
1076 in stir_shaken.conf. Since there's no TN object, a private_key_file
1077 and public_cert_url must be configured in the attestation or profile
1078 objects.
1079
1080 Since "unknown_tn_attest_level" uses the same enum as attest_level,
1081 some of the sorcery macros had to be refactored to allow sharing
1082 the enum and to/from string conversion functions.
1083
1084 Also fixed a memory leak in crypto_utils:pem_file_cb().
1085
1086 Resolves: #921
1087
1088 UserNote: You can now set the "unknown_tn_attest_level" option
1089 in the attestation and/or profile objects in stir_shaken.conf to
1090 enable sending Identity headers for callerid TNs not explicitly
1091 configured.
1092
1093