]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
3 years agofunc_talkdetect.c: Fix logical errors in silence detection.
Sean Bright [Thu, 14 Oct 2021 19:38:33 +0000 (15:38 -0400)] 
func_talkdetect.c: Fix logical errors in silence detection.

There are 3 separate changes here:

1. The documentation erroneously stated that the dsp_talking_threshold
   argument was a number of milliseconds when it is actually an energy
   level used by the DSP code to classify talking vs. silence.

2. Fixes a copy paste error in the argument handling code.

3. Don't erroneously switch to the talking state if we aren't actively
   handling a frame we've classified as talking.

Patch inspired by one provided by Moritz Fain (License #6961).

ASTERISK-27816 #close

Change-Id: I5953fd570b98b49c41cee55bfe3b941753fb2511

3 years agobuild: prevent binary downloads for non x86 architectures
Mike Bradeen [Tue, 12 Oct 2021 18:17:21 +0000 (12:17 -0600)] 
build: prevent binary downloads for non x86 architectures

download_externals: Add check for i686 and i386 (in addition
to the current x86_64) and exit if not one of the three.

ASTERISK-26497

Change-Id: Ia4d429fcefa5b2f5b6e99159d4607de8e8325b2f

3 years agoconfigure: Remove unused OpenSSL SRTP check.
Sean Bright [Mon, 11 Oct 2021 19:04:22 +0000 (15:04 -0400)] 
configure: Remove unused OpenSSL SRTP check.

Discovered while looking at ASTERISK~29684. Usage was removed in change
I3c77c7b00b2ffa2e935632097fa057b9fdf480c0.

Change-Id: Iaf2f7a16ea5a7eee6375319347e4b40b8e7b10e3

3 years agomain/stun.c: fix crash upon STUN request timeout
Sebastien Duthil [Thu, 14 Oct 2021 15:15:30 +0000 (11:15 -0400)] 
main/stun.c: fix crash upon STUN request timeout

Some ast_stun_request users do not provide a destination address when
sending to a connection-mode socket.

ASTERISK-29691

Change-Id: Idd9114c3380216ba48abfc3c68619e79ad37defc

3 years agoUpdate CHANGES and UPGRADE.txt for 19.0.0
Asterisk Development Team [Wed, 13 Oct 2021 10:21:51 +0000 (05:21 -0500)] 
Update CHANGES and UPGRADE.txt for 19.0.0

3 years agoMakefile: Use basename in a POSIX-compliant way.
Sean Bright [Thu, 7 Oct 2021 17:50:08 +0000 (13:50 -0400)] 
Makefile: Use basename in a POSIX-compliant way.

If you aren't using GNU coreutils, chances are that your basename
doesn't know about the -s argument. Luckily for us, basename does what
we need it do even without the -s argument.

Change-Id: I8b81a429bb037b997ee6640ff8a2b5e860962bb7

3 years agopbx_ael: Fix crash and lockup issue regarding 'ael reload'
Mark Murawski [Wed, 6 Oct 2021 00:59:05 +0000 (20:59 -0400)] 
pbx_ael:  Fix crash and lockup issue regarding 'ael reload'

Avoid infinite recursion and crash

Change-Id: I8ed05ec3aa2806c50c77edc5dd0cd4e4fa08b3f4

3 years agochan_iax2: Add encryption for RSA authentication
Naveen Albert [Mon, 24 May 2021 18:04:12 +0000 (14:04 -0400)] 
chan_iax2: Add encryption for RSA authentication

Adds support for encryption to RSA-authenticated
calls. Also prevents crashes if an RSA IAX2 call
is initiated to a switch requiring encryption
but no secret is provided.

ASTERISK-20219

Change-Id: I18f1f9d7c59b4f9cffa00f3b94a4c875846efd40

3 years agores_pjsip_t38: bind UDPTL sessions like RTP
Matthew Kern [Mon, 19 Jul 2021 16:34:00 +0000 (10:34 -0600)] 
res_pjsip_t38: bind UDPTL sessions like RTP

In res_pjsip_sdp_rtp, the bind_rtp_to_media_address option and the
fallback use of the transport's bind address solve problems sending
media on systems that cannot send ipv4 packets on ipv6 sockets, and
certain other situations. This change extends both of these behaviors
to UDPTL sessions as well in res_pjsip_t38, to fix fax-specific
problems on these systems, introducing a new option
endpoint/t38_bind_udptl_to_media_address.

ASTERISK-29402

Change-Id: I87220c0e9cdd2fe9d156846cb906debe08c63557

3 years agoapp_read: Fix null pointer crash
Naveen Albert [Wed, 29 Sep 2021 17:58:14 +0000 (17:58 +0000)] 
app_read: Fix null pointer crash

If the terminator character is not explicitly specified
and an indications tone is used for reading a digit,
there is no null pointer check so Asterisk crashes.
This prevents null usage from occuring.

ASTERISK-29673 #close

Change-Id: Ie941833e123c3dbfb88371b5de5edbbe065514ac

3 years agores_rtp_asterisk: fix memory leak
Jean Aunis [Wed, 29 Sep 2021 09:32:23 +0000 (11:32 +0200)] 
res_rtp_asterisk: fix memory leak

Add missing reference decrement in rtp_deallocate_transport()

ASTERISK-29671

Change-Id: I8d22dbedb90e8dade0829b7a28372f404b07caa9

3 years agomain/say.c: Support future dates with Q and q format params
Shloime Rosenblum [Sun, 19 Sep 2021 20:08:38 +0000 (16:08 -0400)] 
main/say.c: Support future dates with Q and q format params

The current versions do not support future dates in all say application when using the 'Q' or 'q' format parameter and says "today" for everything that is greater than today

ASTERISK-29637

Change-Id: I1fb1cef0ce3c18d87b1fc94ea309d13bc344af02

3 years agores_pjsip_registrar: Remove unavailable contacts if exceeds max_contacts
Joseph Nadiv [Wed, 21 Jul 2021 21:36:03 +0000 (17:36 -0400)] 
res_pjsip_registrar: Remove unavailable contacts if exceeds max_contacts

The behavior of max_contacts and remove_existing are connected.  If
remove_existing is enabled, the soonest expiring contacts are removed.
This may occur when there is an unavailable contact.  Similarly,
when remove_existing is not enabled, registrations from good
endpoints are rejected in favor of retaining unavailable contacts.

This commit adds a new AOR option remove_unavailable, and the effect
of this setting will depend on remove_existing.  If remove_existing
is set to no, we will still remove unavailable contacts when they
exceed max_contacts, if there are any. If remove_existing is set to
yes, we will prioritize the removal of unavailable contacts before
those that are expiring soonest.

ASTERISK-29525

Change-Id: Ia2711b08f2b4d1177411b1be23e970d7fdff5784

3 years agoari: Ignore invisible bridges when listing bridges.
Joshua C. Colp [Thu, 23 Sep 2021 14:13:17 +0000 (11:13 -0300)] 
ari: Ignore invisible bridges when listing bridges.

When listing bridges we go through the ones present in
ARI, get their snapshot, turn it into JSON, and add it
to the payload we ultimately return.

An invisible "dial bridge" exists within ARI that would
also try to be added to this payload if the channel
"create" and "dial" routes were used. This would ultimately
fail due to invisible bridges having no snapshot
resulting in the listing of bridges failing.

This change makes it so that the listing of bridges
ignores invisible ones.

ASTERISK-29668

Change-Id: I14fa4b589b4657d1c2a5226b0f527f45a0cd370a

3 years agofunc_vmcount: Add support for multiple mailboxes
Naveen Albert [Sun, 19 Sep 2021 11:14:10 +0000 (11:14 +0000)] 
func_vmcount: Add support for multiple mailboxes

Allows multiple mailboxes to be specified for VMCOUNT
instead of just one.

ASTERISK-29661 #close

Change-Id: I9108528300795fd5b607efa9d4dd7b74be031813

3 years agomessage.c: Support 'To' header override with AMI's MessageSend.
Sean Bright [Tue, 21 Sep 2021 14:58:09 +0000 (10:58 -0400)] 
message.c: Support 'To' header override with AMI's MessageSend.

The MessageSend AMI action has been updated to allow the Destination
and the To addresses to be provided separately. This brings the
MessageSend manager command in line with the capabilities of the
MessageSend dialplan application.

ASTERISK-29663 #close

Change-Id: I8513168d3e189a9fed88aaab6f5547ccb50d332c

3 years agofunc_channel: Add CHANNEL_EXISTS function.
Naveen Albert [Wed, 15 Sep 2021 18:21:13 +0000 (18:21 +0000)] 
func_channel: Add CHANNEL_EXISTS function.

Adds a function to check for the existence of a channel by
name or by UNIQUEID.

ASTERISK-29656 #close

Change-Id: Ib464e9eb6e13dc683a846286798fecff4fd943cb

3 years agoapp_queue: Fix hint updates for included contexts
Naveen Albert [Sun, 5 Sep 2021 18:11:57 +0000 (18:11 +0000)] 
app_queue: Fix hint updates for included contexts

Previously, if custom hints were used with the hint:
format in app_queue, when device state changes occured,
app_queue would only do a literal string comparison of
the context used for the hint in app_queue and the context
of the hint which just changed state. This caused hints
to not update and become stale if the context associated
with the agent included the context which actually changes
state, essentially completely breaking device state for
any such agents defined in this manner.

This fix adds an additional check to ensure that included
contexts are also compared against the context which changed
state, so that the behavior is correct no matter whether the
context is specified to app_queue directly or indirectly.

ASTERISK-29578 #close

Change-Id: I8caf2f8da8157ef3d9ea71a8568c1eec95592b78

3 years agores_http_media_cache.c: Compare unaltered MIME types.
Sean Bright [Fri, 10 Sep 2021 14:40:00 +0000 (10:40 -0400)] 
res_http_media_cache.c: Compare unaltered MIME types.

Rather than stripping parameters from Content-Type headers before
comparison, first try to compare the whole string. If no match is
found, strip the parameters and try that way.

ASTERISK-29275 #close

Change-Id: I2963c8ecbb3a9605b78b6421c415108d77a66a0f

3 years agologger: Add custom logging capabilities
Naveen Albert [Sun, 25 Jul 2021 22:19:08 +0000 (22:19 +0000)] 
logger: Add custom logging capabilities

Adds the ability for users to log to custom log levels
by providing custom log level names in logger.conf. Also
adds a logger show levels CLI command.

ASTERISK-29529

Change-Id: If082703cf81a436ae5a565c75225fa8c0554b702

3 years agoapp_externalivr.c: Fix mixed leading whitespace in source code.
Sean Bright [Fri, 17 Sep 2021 15:57:44 +0000 (11:57 -0400)] 
app_externalivr.c: Fix mixed leading whitespace in source code.

No functional changes.

Change-Id: I46514152c0af67f395526374aaa847ccd6a85378

3 years agores_rtp_asterisk.c: Fix build failure when not building with pjproject.
Guido Falsi [Fri, 17 Sep 2021 19:58:12 +0000 (21:58 +0200)] 
res_rtp_asterisk.c: Fix build failure when not building with pjproject.

Some code has been added referencing symbols defined in a block
protected by #ifdef HAVE_PJPROJECT. Protect those code parts in
ifdef blocks too.

ASTERISK-29660

Change-Id: Ib18d4392d51ac80ca5481dabf6e498a4e3e49e6f

3 years agopjproject: Add patch to fix trailing whitespace issue in rtpmap
George Joseph [Tue, 14 Sep 2021 17:02:01 +0000 (11:02 -0600)] 
pjproject: Add patch to fix trailing whitespace issue in rtpmap

An issue was found where a particular manufacturer's phones add a
trailing space to the end of the rtpmap attribute when specifying
a payload type that has a "param" after the format name and clock
rate. For example:

a=rtpmap:120 opus/48000/2 \r\n

Because pjmedia_sdp_attr_get_rtpmap currently takes everything after
the second '/' up to the line end as the param, the space is
included in future comparisons, which then fail if the param being
compared to doesn't also have the space.

We now use pj_scan_get() to parse the param part of rtpmap so
trailing whitespace is automatically stripped.

ASTERISK-29654

Change-Id: Ibd0a4e243a69cde7ba9312275b13ab62ab86bc1b

3 years agoapp_mp3: Force output to 16 bits in mpg123
Carlos Oliva [Mon, 13 Sep 2021 15:18:11 +0000 (17:18 +0200)] 
app_mp3: Force output to 16 bits in mpg123

In new mpg123 versions (since 1.26) the default output is 32 bits
Asterisk expects the output in 16 bits, so we force the output to be on 16 bits.
It will work wit new and old versions of mpg123.
Thanks Thomas Orgis <thomas-forum@orgis.org> for giving the key!

ASTERISK-29635 #close

Change-Id: I88c7740118b5af4e895bd8b765b68ed5c11fc816

3 years agoapp_mf: Add channel agnostic MF sender
Naveen Albert [Mon, 28 Jun 2021 15:37:52 +0000 (15:37 +0000)] 
app_mf: Add channel agnostic MF sender

Adds a SendMF application and PlayMF manager
event to send arbitrary R1 MF tones on the
current or specified channel.

ASTERISK-29496

Change-Id: I5d89afdbccee3f86cc702ed96d882f3d351327a4

3 years agores_pjsip_caller_id: Add ANI2/OLI parsing
Naveen Albert [Tue, 8 Jun 2021 20:44:23 +0000 (16:44 -0400)] 
res_pjsip_caller_id: Add ANI2/OLI parsing

Adds parsing of ANI II digits (Originating
Line Information) to PJSIP, on par with
what currently exists in chan_sip.

ASTERISK-29472

Change-Id: Ifc938a7a7d45ce33999ebf3656a542226f6d3847

3 years agoapp_stack: Include current location if branch fails
Naveen Albert [Thu, 2 Sep 2021 23:20:43 +0000 (23:20 +0000)] 
app_stack: Include current location if branch fails

Previously, the error emitted when app_stack tries
to branch to a dialplan location that doesn't exist
has included only the information about the attempted
branch in the error log. This adds the current location
as well so users can see where the branch failed in
the logs.

ASTERISK-29626

Change-Id: Ia23502ab2ad21485a1ac74295063a8f25a6df5ce

3 years agotest_http_media_cache.c: Fix copy/paste error during test deregistration.
Sean Bright [Fri, 10 Sep 2021 14:56:41 +0000 (10:56 -0400)] 
test_http_media_cache.c: Fix copy/paste error during test deregistration.

Change-Id: I9a3a978b2f818be464e062d97b93831b127ef28c

3 years agofunc_strings: Add STRBETWEEN function
Naveen Albert [Thu, 2 Sep 2021 23:57:03 +0000 (23:57 +0000)] 
func_strings: Add STRBETWEEN function

Adds the STRBETWEEN function, which can be used to insert a
substring between each character in a string. For instance,
this can be used to insert pauses between DTMF tones in a
string of digits.

ASTERISK-29627

Change-Id: Ice23009d4a8e9bb9718d2b2301d405567087d258

3 years agoresource_channels.c: Fix external media data option
Sungtae Kim [Fri, 3 Sep 2021 18:27:21 +0000 (03:27 +0900)] 
resource_channels.c: Fix external media data option

Fixed the external media creation handle to handle the 'data' option correctly.

ASTERISK-29629

Change-Id: I22e57fe8ebf3d3e08fb2121aa4a8a52cc62e8129

3 years agotest_abstract_jb.c: Fix put and put_out_of_order memory leaks.
Sean Bright [Wed, 8 Sep 2021 19:29:56 +0000 (15:29 -0400)] 
test_abstract_jb.c: Fix put and put_out_of_order memory leaks.

We can't rely on RAII_VAR(...) to properly clean up data that is
allocated within a loop.

ASTERISK-27176 #close

Change-Id: Ib575616101230c4f603519114ec62ebf3936882c

3 years agofunc_env: Add DIRNAME and BASENAME functions
Naveen Albert [Fri, 3 Sep 2021 00:00:50 +0000 (00:00 +0000)] 
func_env: Add DIRNAME and BASENAME functions

Adds the DIRNAME and BASENAME functions, which are
wrappers around the corresponding C library functions.
These can be used to safely and conveniently work with
file paths and names in the dialplan.

ASTERISK-29628 #close

Change-Id: Id3aeb907f65c0ff96b6e57751ff0cb49d61db7f3

3 years agofunc_sayfiles: Retrieve say file names
Naveen Albert [Mon, 26 Jul 2021 17:46:44 +0000 (17:46 +0000)] 
func_sayfiles: Retrieve say file names

Up until now, all of the logic used to translate
arguments to the Say applications has been
directly coupled to playback, preventing other
modules from using this logic.

This refactors code in say.c and adds a SAYFILES
function that can be used to retrieve the file
names that would be played. These can then be
used in other applications or for other purposes.

Additionally, a SayMoney application and a SayOrdinal
application are added. Both SayOrdinal and SayNumber
are also expanded to support integers greater than
one billion.

ASTERISK-29531

Change-Id: If9718c89353b8e153d84add3cc4637b79585db19

3 years agores_tonedetect: Tone detection module
Naveen Albert [Mon, 9 Aug 2021 17:41:24 +0000 (17:41 +0000)] 
res_tonedetect: Tone detection module

dsp.c contains arbitrary tone detection functionality
which is currently only used for fax tone recognition.
This change makes this functionality publicly
accessible so that other modules can take advantage
of this.

Additionally, a WaitForTone and TONE_DETECT app and
function are included to allow users to do their
own tone detection operations in the dialplan.

ASTERISK-29546

Change-Id: Ie38c395000f4fd4d04e942e8658e177f8f499b26

3 years agores_snmp: Add -fPIC to _ASTCFLAGS
George Joseph [Wed, 8 Sep 2021 14:36:40 +0000 (08:36 -0600)] 
res_snmp: Add -fPIC to _ASTCFLAGS

With gcc 11, res/res_snmp.c and res/snmp/agent.c need the
-fPIC option added to its _ASTCFLAGS.

ASTERISK-29634

Change-Id: I34649c85e075fd954e578378fabf798c3f038f50

3 years agoterm.c: Add support for extended number format terminfo files.
Sean Bright [Sat, 4 Sep 2021 17:07:14 +0000 (13:07 -0400)] 
term.c: Add support for extended number format terminfo files.

ncurses 6.1 introduced an extended number format for terminfo files
which the terminfo parsing in Asterisk is not able to parse. This
results in some TERM values that do support color (screen-256color on
Ubuntu 20.04 for example) to not get a color console.

ASTERISK-29630 #close

Change-Id: I27a4fcfab502219924af2d6b1c46feba92903cb3

3 years agoapp_voicemail.c: Ability to silence instructions if greeting is present.
Sean Bright [Tue, 7 Sep 2021 17:32:33 +0000 (13:32 -0400)] 
app_voicemail.c: Ability to silence instructions if greeting is present.

There is an option to silence voicemail instructions but it does not
take into consideration if a recorded greeting exists or not. Add a
new 'S' option that does that.

ASTERISK-29632 #close

Change-Id: I03f2f043a9beb9d99deab302247e2a8686066fb4

3 years agores_srtp: Disable parsing of not enabled cryptos
Jasper Hafkenscheid [Fri, 3 Sep 2021 05:30:59 +0000 (07:30 +0200)] 
res_srtp: Disable parsing of not enabled cryptos

When compiled without extended srtp crypto suites also disable parsing
these from received SDP. This prevents using these, as some client
implementations are not stable.

ASTERISK-29625

Change-Id: I7dafb29be1cdaabdc984002573f4bea87520533a

3 years agodns.c: Load IPv6 DNS resolvers if configured.
Sean Bright [Mon, 6 Sep 2021 16:37:08 +0000 (12:37 -0400)] 
dns.c: Load IPv6 DNS resolvers if configured.

IPv6 nameserver addresses are stored in different part of the
__res_state structure, so look there if we appear to have support for
it.

ASTERISK-28004 #close

Change-Id: I67067077d8a406ee996664518d9c8fbf11f6977d

3 years agobridge_softmix: Suppress error on topology change failure
George Joseph [Wed, 8 Sep 2021 12:52:43 +0000 (06:52 -0600)] 
bridge_softmix: Suppress error on topology change failure

There are conditions under which a failure to change topology
is expected so there's no need to print an ERROR message.

ASTERISK-29618
Reported by: Alexander

Change-Id: Idc168b8588e018bf3a23769f08c4ad646086d481

3 years agoresource_channels.c: Fix wrong external media parameter parse
sungtae kim [Tue, 31 Aug 2021 07:50:58 +0000 (16:50 +0900)] 
resource_channels.c: Fix wrong external media parameter parse

Fixed ARI external media handler to accept body parameters.

ASTERISK-29622

Change-Id: I49509c48a6cbc0fb4165bfa4f834b5e8b9ace20d

3 years agoconfig_options: Handle ACO arrays correctly in generated XML docs.
Sean Bright [Wed, 25 Aug 2021 15:21:07 +0000 (11:21 -0400)] 
config_options: Handle ACO arrays correctly in generated XML docs.

There are 3 separate changes here but they are all closely related:

* Only try to set matchfield attributes on 'field' nodes

* We need to adjust how we treat the category pointer based on the
  value of the category_match, to avoid memory corruption. We now
  generate a regex-like string when match types other than
  ACO_WHITELIST and ACO_BLACKLIST are used.

* Switch app_agent_pool from ACO_BLACKLIST_ARRAY to
  ACO_BLACKLIST_EXACT since we only have one category we need to
  ignore, not two.

ASTERISK-29614 #close

Change-Id: I7be7bdb1bb9814f942bc6bb4fdd0a55a7b7efe1e

3 years agochan_iax2: Add ANI2/OLI information element
Naveen Albert [Wed, 18 Aug 2021 19:44:17 +0000 (19:44 +0000)] 
chan_iax2: Add ANI2/OLI information element

Adds an information element for ANI2 so that
Originating Line Information can be transmitted
over IAX2 channels.

ASTERISK-29605 #close

Change-Id: Iaeacdf6ccde18eaff7f776a0f49fee87dcb549d2

3 years agopbx_ael: Fix crash and lockup issue regarding 'ael reload'
Mark Murawski [Tue, 31 Aug 2021 20:03:56 +0000 (16:03 -0400)] 
pbx_ael:  Fix crash and lockup issue regarding 'ael reload'

Currently pbx_ael does not check if a reload is currently pending
before proceeding with a reload. This can cause multiple threads to
operate at the same time on what should be mutex protected data. This
change adds protection to reloading to ensure only one ael reload is
executing at a time.

ASTERISK-29609 #close

Change-Id: I5ed392ad226f6e4e7696ad742076d3e45c57af35

3 years agoapp_read: Allow reading # as a digit
Naveen Albert [Wed, 25 Aug 2021 11:49:06 +0000 (11:49 +0000)] 
app_read: Allow reading # as a digit

Allows for the digit # to be read as a digit,
just like any other DTMF digit, as opposed to
forcing it to be used as an end of input
indicator. The default behavior remains
unchanged.

ASTERISK-18454 #close

Change-Id: I3033432adb9d296ad227e76b540b8b4a2417665b

3 years agores_rtp_asterisk: Automatically refresh stunaddr from DNS
Sebastien Duthil [Mon, 5 Apr 2021 19:06:38 +0000 (15:06 -0400)] 
res_rtp_asterisk: Automatically refresh stunaddr from DNS

This allows the STUN server to change its IP address without having to
reload the res_rtp_asterisk module.

The refresh of the name resolution occurs first when the module is
loaded, then recurringly, slightly after the previous DNS answer TTL
expires.

ASTERISK-29508 #close

Change-Id: I7955a046293f913ba121bbd82153b04439e3465f

3 years agobridge_basic: Change warning to verbose if transfer cancelled
Naveen Albert [Wed, 25 Aug 2021 01:04:31 +0000 (01:04 +0000)] 
bridge_basic: Change warning to verbose if transfer cancelled

The attended transfer feature will emit a warning if the user
cancels the transfer or the attended transfer doesn't complete
for any reason. Changes the warning to a verbose message,
since nothing is actually wrong here.

ASTERISK-29612 #close

Change-Id: I64c93cdb21360a0a8d45e9cb6db3af8168f66e6d

3 years agoapp_queue: Don't reset queue stats on reload
Naveen Albert [Fri, 20 Aug 2021 20:35:35 +0000 (20:35 +0000)] 
app_queue: Don't reset queue stats on reload

Prevents reloads of app_queue from also resetting
queue statistics.

Also preserves individual queue agent statistics
if we're just reloading members.

ASTERISK-28701

Change-Id: Ib5d4cdec175e44de38ef0f6ede4a7701751766f1

3 years agodialplan: Add one static and fix two whitespace errors.
Alexander Traud [Wed, 25 Aug 2021 14:29:09 +0000 (16:29 +0200)] 
dialplan: Add one static and fix two whitespace errors.

Change-Id: Ia14d515ab63e773097adc6af772ca7123a392f83

3 years agores_rtp_asterisk: sqrt(.) requires the header math.h.
Alexander Traud [Wed, 25 Aug 2021 14:23:27 +0000 (16:23 +0200)] 
res_rtp_asterisk: sqrt(.) requires the header math.h.

ASTERISK-29616

Change-Id: I6c01623926bf10ccac32612687a50fdab3ba0900

3 years agosig_analog: Changes to improve electromechanical signalling compatibility
Sarah Autumn [Sun, 20 Jun 2021 04:36:34 +0000 (21:36 -0700)] 
sig_analog: Changes to improve electromechanical signalling compatibility

This changeset is intended to address compatibility issues encountered
when interfacing Asterisk to electromechanical telephone switches that
implement ANI-B, ANI-C, or ANI-D.

In particular the behaviours that this impacts include:

 - FGC-CAMA did not work at all when using MF signaling. Modified the
   switch case block to send calls to the correct part of the
   signaling-handling state machine.

 - For FGC-CAMA operation, the delay between called number ST and
   second wink for ANI spill has been made configurable; previously
   all calls were made to wait for one full second.

 - After the ANI spill, previous behavior was to require a 'ST' tone
   to advance the call.  This has been changed to allow 'STP' 'ST2P'
   or 'ST3P' as well, for compatibility with ANI-D.

 - Store ANI2 (ANI INFO) digits in the CALLERID(ANI2) channel variable.

 - For calls with an ANI failure, No. 1 Crossbar switches will send
   forward a single-digit failure code, with no calling number digits
   and no ST pulse to terminate the spill.  I've made the ANI timeout
   configurable so to reduce dead air time on calls with ANI fail.

 - ANI info digits configurable.  Modern digital switches will send 2
   digits, but ANI-B sends only a single info digit.  This caused the
   ANI reported by Asterisk to be misaligned.

 - Changed a confusing log message to be more informative.

ASTERISK-29518

Change-Id: Ib7e27d987aee4ed9bc3663c57ef413e21b404256

3 years agores_pjproject: Allow mapping to Asterisk TRACE level
George Joseph [Mon, 16 Aug 2021 13:25:44 +0000 (07:25 -0600)] 
res_pjproject: Allow mapping to Asterisk TRACE level

Allow mapping pjproject log messages to the Asterisk TRACE
log level.  The defaults were also changes to log pjproject
levels 3,4 to DEBUG and 5,6 to TRACE.  Previously 3,4,5,6
all went to DEBUG.

ASTERISK-29582

Change-Id: I859a37a8dec263ed68099709cfbd3e665324c72d

3 years agomedia_cache: Don't lock when curl the remote file
Andre Barbosa [Thu, 5 Aug 2021 16:55:33 +0000 (17:55 +0100)] 
media_cache: Don't lock when curl the remote file

When playing a remote sound file, which is not in cache, first we need
to download it with ast_bucket_file_retrieve.

This can take a while if the remote host is slow. The current CURL
timeout is 180secs, so in extreme situations, it can take 3 minutes to
return.

Because ast_media_cache_retrieve has a lock on all function, while we
are waiting for the delayed download, Asterisk is not able to play any
more files, even the files already cached locally.

ASTERISK-29544 #close

Change-Id: I8d4142b463ae4a1d4c41bff2bf63324821567408

3 years agofunc_scramble: Audio scrambler function
Naveen Albert [Wed, 4 Aug 2021 19:16:59 +0000 (19:16 +0000)] 
func_scramble: Audio scrambler function

Adds a function to scramble audio on a channel using
whole spectrum frequency inversion. This can be used
as a privacy enhancement with applications like
ChanSpy or other potentially sensitive audio.

ASTERISK-29542

Change-Id: I01020769d91060a1f56a708eb405f87648d1a67e

3 years agofunc_math: Return integer instead of float if possible
Naveen Albert [Mon, 28 Jun 2021 14:25:24 +0000 (14:25 +0000)] 
func_math: Return integer instead of float if possible

The MIN, MAX, and ABS functions all support float
arguments, but currently return floats even if the
arguments are all integers and the response is
a whole number, in which case the user is likely
expecting an integer. This casts the float to an integer
before printing into the response buffer if possible.

ASTERISK-29495

Change-Id: I902d29eacf3ecd0f8a6a5e433c97f0421d205488

3 years agoapp_morsecode: Add American Morse code
Naveen Albert [Wed, 4 Aug 2021 14:46:42 +0000 (14:46 +0000)] 
app_morsecode: Add American Morse code

Previously, the Morsecode application only supported international
Morse code. This adds support for American Morse code and adds an
option to configure the frequency used in off intervals.

Additionally, the application checks for hangup between tones
to prevent application execution from continuing after hangup.

ASTERISK-29541

Change-Id: I172431a2e18e6527d577e74adfb05b154cba7bd4

3 years agoapp_milliwatt: Timing fix
Naveen Albert [Thu, 12 Aug 2021 21:02:27 +0000 (21:02 +0000)] 
app_milliwatt: Timing fix

The Milliwatt application uses incorrect tone timings
that cause it to play the 1004 Hz tone constantly.

This adds an option to enable the correct timing
behavior, so that the Milliwatt application can
be used for milliwatt test lines. The default behavior
remains unchanged for compatability reasons, even
though it is incorrect.

ASTERISK-29575 #close

Change-Id: I73ccc6c6fcaa31931c6fff3b85ad1805b2ce9d8c

3 years agoapp_originate: Add ability to set codecs
Naveen Albert [Thu, 5 Aug 2021 00:28:46 +0000 (00:28 +0000)] 
app_originate: Add ability to set codecs

A list of codecs to use for dialplan-originated calls can
now be specified in Originate, similar to the ability
in call files and the manager action.

Additionally, we now default to just using the slin codec
for originated calls, rather than all the slin* codecs up
through slin192, which has been known to cause issues
and inconsistencies from AMI and call file behavior.

ASTERISK-29543

Change-Id: I96a1aeb83d54b635b7a51e1b4680f03791622883

3 years agoBuildSystem: Remove two dead exceptions for compiler Clang.
Alexander Traud [Mon, 16 Aug 2021 16:11:56 +0000 (18:11 +0200)] 
BuildSystem: Remove two dead exceptions for compiler Clang.

Commit 305ce3d added -Wno-parentheses-equality to Makefile.rules,
turning the previous two warning suppressions from commit e9520db
redundant. Let us remove the latter.

Change-Id: I0b471254b31e6e05902062761dded4b3e626c7ac

3 years agochan_alsa, chan_sip: Add replacement to moduleinfo
Naveen Albert [Mon, 16 Aug 2021 19:31:55 +0000 (19:31 +0000)] 
chan_alsa, chan_sip: Add replacement to moduleinfo

Adds replacement modules to the moduleinfo for
chan_alsa and chan_sip.

ASTERISK-29601 #close

Change-Id: I7a4877b0d5c0c17e088e8fa8ebbfa9a195223cbc

3 years agores_monitor: Disable building by default.
Joshua C. Colp [Tue, 17 Aug 2021 13:11:43 +0000 (10:11 -0300)] 
res_monitor: Disable building by default.

ASTERISK-29602

Change-Id: I6f0af0a959409cdbc6b185b1604301bafc872a5a

3 years agomuted: Remove deprecated application.
Joshua C. Colp [Mon, 16 Aug 2021 18:47:49 +0000 (15:47 -0300)] 
muted: Remove deprecated application.

ASTERISK-29600

Change-Id: I0ae1c6a2996da43217126f094de90761314dcf82

3 years agoconf2ael: Remove deprecated application.
Joshua C. Colp [Mon, 16 Aug 2021 18:39:22 +0000 (15:39 -0300)] 
conf2ael: Remove deprecated application.

ASTERISK-29599

Change-Id: I75dc77162926fb17e7c6caf8f04e3aabd792fb0c

3 years agores_config_sqlite: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:26:12 +0000 (15:26 -0300)] 
res_config_sqlite: Remove deprecated module.

ASTERISK-29598

Change-Id: I8ef17023f55bf01f2e309b06f4778a8ca7252c91

3 years agochan_vpb: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:22:11 +0000 (15:22 -0300)] 
chan_vpb: Remove deprecated module.

ASTERISK-29597

Change-Id: I19bb39eed0257ddfef453eb2df5646d073d50fe1

3 years agochan_misdn: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:18:14 +0000 (15:18 -0300)] 
chan_misdn: Remove deprecated module.

ASTERISK-29596

Change-Id: Ibae9490c1b35cadbf7028d24610f745277c8535e

3 years agochan_nbs: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:13:36 +0000 (15:13 -0300)] 
chan_nbs: Remove deprecated module.

ASTERISK-29595

Change-Id: Ib5c7d43a780f2fb94cee90738e4c1af211ae4a33

3 years agochan_phone: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:10:58 +0000 (15:10 -0300)] 
chan_phone: Remove deprecated module.

ASTERISK-29594

Change-Id: I79a9961cb5062fadbccb0ea93f087bdd32685316

3 years agochan_oss: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:06:50 +0000 (15:06 -0300)] 
chan_oss: Remove deprecated module.

ASTERISK-29593

Change-Id: Ib53a42ad974c63871344b95078c61c188e43da99

3 years agocdr_syslog: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 18:04:21 +0000 (15:04 -0300)] 
cdr_syslog: Remove deprecated module.

ASTERISK-29592

Change-Id: Ic8eb6a2100ad5bc3b48338a6d0a6cfa70ecbc50f

3 years agoapp_dahdiras: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:56:56 +0000 (14:56 -0300)] 
app_dahdiras: Remove deprecated module.

ASTERISK-29591

Change-Id: I021d37b729631d40f84e35bb21e2893777be1858

3 years agoapp_nbscat: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:55:01 +0000 (14:55 -0300)] 
app_nbscat: Remove deprecated module.

ASTERISK-29590

Change-Id: I87cf0f536b77d222c8eda003376ac47fae86ed43

3 years agoapp_image: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:52:55 +0000 (14:52 -0300)] 
app_image: Remove deprecated module.

ASTERISK-29589

Change-Id: I8057eb2ca1ca4c3b27ed2fe04bea10e9cb551cdd

3 years agoapp_url: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:50:54 +0000 (14:50 -0300)] 
app_url: Remove deprecated module.

ASTERISK-29588

Change-Id: If846d40b37c5b646bcd7326111db280529a5971b

3 years agoapp_fax: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:48:51 +0000 (14:48 -0300)] 
app_fax: Remove deprecated module.

ASTERISK-29587

Change-Id: I038237bbb56b1161d7d5e20cda11ed32e13d3ca2

3 years agoapp_ices: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:46:41 +0000 (14:46 -0300)] 
app_ices: Remove deprecated module.

ASTERISK-29586

Change-Id: I1e0a4535135b00938b609fe0ccba9bbddbac93ad

3 years agoapp_mysql: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:43:52 +0000 (14:43 -0300)] 
app_mysql: Remove deprecated module.

ASTERISK-29585

Change-Id: I262930d0387d043f2a3345e8a977b314528059bf

3 years agocdr_mysql: Remove deprecated module.
Joshua C. Colp [Mon, 16 Aug 2021 17:39:43 +0000 (14:39 -0300)] 
cdr_mysql: Remove deprecated module.

ASTERISK-29584

Change-Id: I4bd3695d089121f810d692a82361d39d2f97ae39

3 years agomgcp: Remove dead debug code
Sean Bright [Tue, 10 Aug 2021 17:41:31 +0000 (13:41 -0400)] 
mgcp: Remove dead debug code

ASTERISK-20339 #close

Change-Id: I36f364aaa1971241d8f3ea1a5909b463d185a2d5

3 years agopolicy: Deprecate modules and add versions to others.
Joshua C. Colp [Wed, 11 Aug 2021 11:15:16 +0000 (08:15 -0300)] 
policy: Deprecate modules and add versions to others.

app_meetme is deprecated in 19, to be removed in 21.
app_osplookup is deprecated in 19, to be removed in 21.
chan_alsa is deprecated in 19, to be removed in 21.
chan_mgcp is deprecated in 19, to be removed in 21.
chan_skinny is deprecated in 19, to be removed in 21.
res_pktccops is deprecated in 19, to be removed in 21.
app_macro was deprecated in 16, to be removed in 21.
chan_sip was deprecated in 17, to be removed in 21.
res_monitor was deprecated in 16, to be removed in 21.

ASTERISK-29548
ASTERISK-29549
ASTERISK-29550
ASTERISK-29551
ASTERISK-29552
ASTERISK-29553
ASTERISK-29558
ASTERISK-29567
ASTERISK-29572

Change-Id: Ic3bee31a10d42c4b3bbc913d893f7b2a28a27131

3 years agofunc_frame_drop: New function
Naveen Albert [Wed, 16 Jun 2021 20:30:05 +0000 (16:30 -0400)] 
func_frame_drop: New function

Adds function to selectively drop specified frames
in the TX or RX direction on a channel, including
control frames.

ASTERISK-29478

Change-Id: I8147c9d55d74e2e48861edba6b22f930920541ec

3 years agoaelparse: Accept an included context with timings.
Alexander Traud [Mon, 2 Aug 2021 17:33:07 +0000 (19:33 +0200)] 
aelparse: Accept an included context with timings.

With Asterisk 1.6.0, in the main parser for the configuration file
extensions.conf, the separator was changed from vertical bar to comma.
However, the first separator was not changed in aelparse; it still had
to be a vertical bar, and no comma was allowed.

Additionally, this change allows the vertical bar for the first and
last parameter again, even in the main parser, because the vertical bar
was still accepted for the other parameters.

ASTERISK-29540

Change-Id: I882e17c73adf4bf2f20f9046390860d04a9f8d81

3 years agoformat_ogg_speex: Implement a "not supported" write handler
Kevin Harwell [Tue, 3 Aug 2021 16:30:54 +0000 (11:30 -0500)] 
format_ogg_speex: Implement a "not supported" write handler

This format did not specify a "write" handler, so when attempting to write
to it (ast_writestream) a crash would occur.

This patch adds a default handler that simply issues a "not supported"
warning, thus no longer crashing.

ASTERISK-29539

Change-Id: I8f6ddc7cc3b15da30803be3b1cf68e2ba0fbce91

4 years agocdr_adaptive_odbc: Prevent filter warnings
Naveen Albert [Mon, 28 Jun 2021 13:48:16 +0000 (13:48 +0000)] 
cdr_adaptive_odbc: Prevent filter warnings

Previously, if CDR filters were used so that
not all CDR records used all sections defined
in cdr_adaptive_odbc.conf, then warnings will
always be emitted (if each CDR record is unique
to a particular section, n-1 warnings to be
specific).

This turns the offending warning log into
a verbose message like the other one, since
this behavior is intentional and not
indicative of anything wrong.

ASTERISK-29494

Change-Id: Ifd314fa9298722bc99494d5ca2658a5caa94a5f8

4 years agoapp_queue: Allow streaming multiple announcement files
Naveen Albert [Sun, 25 Jul 2021 21:53:38 +0000 (21:53 +0000)] 
app_queue: Allow streaming multiple announcement files

Allows multiple files comprising an agent announcement
to be played by separating on the ampersand, similar
to the multi-file support in other Asterisk applications.

ASTERISK-29528

Change-Id: Iec600d8cd5ba14aa1e4e37f906accb356cd7891a

4 years agores_pjsip_header_funcs: Add PJSIP_HEADERS() ability to read header by pattern
Igor Goncharovsky [Tue, 13 Apr 2021 07:36:17 +0000 (13:36 +0600)] 
res_pjsip_header_funcs: Add PJSIP_HEADERS() ability to read header by pattern

PJSIP currently does not provide a function to replace SIP_HEADERS() function to get a list of headers from INVITE request.
It may be used to get all X- headers in case the actual set and names of headers unknown.

ASTERISK-29389

Change-Id: Ic09d395de71a0021e0d6c5c29e1e19d689079f8b

4 years agores_statsd: handle non-standard meter type safely
Rijnhard Hessel [Thu, 8 Jul 2021 12:34:27 +0000 (14:34 +0200)] 
res_statsd: handle non-standard meter type safely

Meter types are not well supported,
lacking support in telegraf, datadog and the official statsd servers.
We deprecate meters and provide a compliant fallback for any existing usages.

A flag has been introduced to allow meters to fallback to counters.

ASTERISK-29513

Change-Id: I5fcb385983a1b88f03696ff30a26b55c546a1dd7

4 years agores_http_media_cache: Cleanup audio format lookup in HTTP requests
Sean Bright [Fri, 23 Jul 2021 16:00:00 +0000 (12:00 -0400)] 
res_http_media_cache: Cleanup audio format lookup in HTTP requests

Asterisk first looks at the end of the URL to determine the file
extension of the returned audio, which in many cases will not work
because the URL may end with a query string or a URL fragment. If that
fails, Asterisk then looks at the Content-Type header and then finally
parses the URL to get the extension.

The order has been changed such that we look at the Content-Type
header first, followed by looking for the extension of the parsed
URL. We no longer look at the end of the URL, which was error prone.

ASTERISK-29527 #close

Change-Id: I1e3f83b339ef2b80661704717c23568536511032

4 years agocodec_builtin.c: G729 audio gets corrupted by Asterisk due to smoother
under [Thu, 22 Jul 2021 16:39:11 +0000 (19:39 +0300)] 
codec_builtin.c: G729 audio gets corrupted by Asterisk due to smoother

If Asterisk gets G.729 6-byte VAD frames inbound, then at outbound Asterisk sends this G.729 stream with non-continuous timestamps.
This makes the audio stream not-playable at the receiver side.
Linphone isn't able to play such an audio - lots of disruptions are heard.
Also I had complains of bad audio from users which use other types of phones.

After debugging, I found this is a regression connected with RTP Smoother (main/smoother.c).

Smoother has a special code to handle G.729 VAD frames (search for AST_SMOOTHER_FLAG_G729 in smoother.c).

However, this flag is never set in Asterisk-12 and newer.
Previously it has been set (see Asterisk-11).

ASTERISK-29526 #close

Change-Id: I6f51ecb1a3ecd9c6d59ec5a6811a27446e17065d

4 years agoapp_dtmfstore: New application to store digits
Naveen Albert [Wed, 16 Jun 2021 20:26:46 +0000 (16:26 -0400)] 
app_dtmfstore: New application to store digits

Adds application to asynchronously collect digits
dialed on a channel in the TX or RX direction
using a framehook and stores them in a specified
variable, up to a configurable number of digits.

ASTERISK-29477

Change-Id: I51aa93fc9507f7636ac44806c4420ce690423e6f

4 years agodocs: Remove embedded macro in WaitForCond XML documentation.
Joshua C. Colp [Tue, 27 Jul 2021 12:53:08 +0000 (09:53 -0300)] 
docs: Remove embedded macro in WaitForCond XML documentation.

Change-Id: I40c6514e1843e320f3cbe0b2c70d4a98c0e35b9c

4 years agoAST-2021-008 - chan_iax2: remote crash on unsupported media format
Kevin Harwell [Mon, 10 May 2021 22:59:00 +0000 (17:59 -0500)] 
AST-2021-008 - chan_iax2: remote crash on unsupported media format

If chan_iax2 received a packet with an unsupported media format, for
example vp9, then it would set the frame's format to NULL. This could
then result in a crash later when an attempt was made to access the
format.

This patch makes it so chan_iax2 now ignores/drops frames received
with unsupported media format types.

ASTERISK-29392 #close

Change-Id: Ifa869a90dafe33eed8fd9463574fe6f1c0ad3eb1
(cherry picked from commit 2a141a58b61ba0ed91061e1acc2c1955e0160f73)

4 years agoAST-2021-007 - res_pjsip_session: Don't offer if no channel exists.
Joshua C. Colp [Wed, 28 Apr 2021 12:36:35 +0000 (09:36 -0300)] 
AST-2021-007 - res_pjsip_session: Don't offer if no channel exists.

If a re-INVITE is received after we have sent a BYE request then it
is possible for no channel to be present on the session. If this
occurs we allow PJSIP to produce the offer instead. Since the call
is being hung up if it produces an incorrect offer it doesn't
actually matter. This also ensures that code which produces SDP
does not need to handle if a channel is not present.

ASTERISK-29381

Change-Id: I673cb88c432f38f69b2e0851d55cc57a62236042
(cherry picked from commit 523a79528932e63c6aaad2fffb3fa08427f8f920)

4 years agoAST-2021-009 - pjproject-bundled: Avoid crash during handshake for TLS
Kevin Harwell [Mon, 14 Jun 2021 18:28:25 +0000 (13:28 -0500)] 
AST-2021-009 - pjproject-bundled: Avoid crash during handshake for TLS

If an SSL socket parent/listener was destroyed during the handshake,
depending on timing, it was possible for the handling callback to
attempt access of it after the fact thus causing a crash.

ASTERISK-29415 #close

Change-Id: I105dacdcd130ea7fdd4cf2010ccf35b5eaf1432d
(cherry picked from commit 3025ef4f6e79730d35c4514bf9c6dc4be87fa532)

4 years agoUpdate default branch for Asterisk 19.
Ben Ford [Wed, 21 Jul 2021 15:20:24 +0000 (10:20 -0500)] 
Update default branch for Asterisk 19.

Changed default branch to correct version for Asterisk 19.

Change-Id: I6244c8ac14b9c0eb8bdf07fe58db24dc95cb1086

4 years agores_stasis_playback: Check for chan hangup on play_on_channels
Andre Barbosa [Tue, 29 Jun 2021 16:07:44 +0000 (17:07 +0100)] 
res_stasis_playback: Check for chan hangup on play_on_channels

Verify `ast_check_hangup` before looping to the next sound file.
If the call is already hangup we just break the cycle.
It also ensures that the PlaybackFinished event is sent if the call was hangup.

This is also use-full when we are playing a big list of file for a channel that is hangup.
Before this patch Asterisk will give a warning for every sound not played and fire a PlaybackStart for every sound file on the list tried to be played.

With the patch we just break the playback cycle when the chan is hangup.

ASTERISK-29501 #close

Change-Id: Ic4e1c01b974c9a1f2d9678c9d6b380bcfc69feb8

4 years agores_http_media_cache.c: Fix merge errors from 18 -> master
Sean Bright [Fri, 2 Jul 2021 15:15:05 +0000 (11:15 -0400)] 
res_http_media_cache.c: Fix merge errors from 18 -> master

ASTERISK-27871 #close

Change-Id: I6624f2d3a57f76a89bb372ef54a124929a0338d7

4 years agores_pjsip_stir_shaken: RFC 8225 compliance and error message cleanup.
Sean Bright [Thu, 15 Jul 2021 20:04:01 +0000 (16:04 -0400)] 
res_pjsip_stir_shaken: RFC 8225 compliance and error message cleanup.

From RFC 8225 Section 5.2.1:

    The "dest" claim is a JSON object with the claim name of "dest"
    and MUST have at least one identity claim object.  The "dest"
    claim value is an array containing one or more identity claim JSON
    objects representing the destination identities of any type
    (currently "tn" or "uri").  If the "dest" claim value array
    contains both "tn" and "uri" claim names, the JSON object should
    list the "tn" array first and the "uri" array second.  Within the
    "tn" and "uri" arrays, the identity strings should be put in
    lexicographical order, including the scheme-specific portion of
    the URI characters.

Additionally, make it clear that there was a failure to sign the JWT
payload and not necessarily a memory allocation failure.

Change-Id: Ia8733b861aef6edfaa9c2136e97b447a01578dc9

4 years agores_http_media_cache.c: Parse media URLs to find extensions.
Sean Bright [Fri, 2 Jul 2021 15:15:05 +0000 (11:15 -0400)] 
res_http_media_cache.c: Parse media URLs to find extensions.

Use cURL's URL parsing API, falling back to the urlparser library, to
parse playback URLs in order to find their file extensions.

For backwards compatibility, we first look at the full URL, then at
any Content-Type header, and finally at just the path portion of the
URL.

ASTERISK-27871 #close

Change-Id: I16d0682f6d794be96539261b3e48f237909139cb

4 years agomain/cdr.c: Correct Party A selection.
Sean Bright [Tue, 13 Jul 2021 15:31:01 +0000 (11:31 -0400)] 
main/cdr.c: Correct Party A selection.

This appears to just have been a copy/paste error from 6258bbe7. Fix
suggested by Ross Beer in ASTERISK~29166.

Change-Id: I51e0de92042e53f37597c6f83a75621ef0d1ae37