]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
3 years agoCI: Fixing path issue on venv check
Mike Bradeen [Wed, 31 Aug 2022 19:16:12 +0000 (13:16 -0600)] 
CI: Fixing path issue on venv check

ASTERISK-26826

Change-Id: I07388d16f74452cebc9c981f99044eb6b77df792

3 years agoCI: use Python3 virtual environment
Mike Bradeen [Thu, 11 Aug 2022 18:39:06 +0000 (12:39 -0600)] 
CI: use Python3 virtual environment

Requires Python3 testsuite changes

ASTERISK-26826

Change-Id: I92ec7dec751ad455503a584d6e860db88c56d6bc

3 years agopjsip_config.xml: Fix omissions caused by wrong cherry-pick order
George Joseph [Thu, 14 Jul 2022 11:13:19 +0000 (05:13 -0600)] 
pjsip_config.xml: Fix omissions caused by wrong cherry-pick order

When cherry-picking geolocation prerequisites to the certified/18.9
branch, the commit that moved res_pjsip documentation to separate
XML files was cherry-picked after other that assumed it was
already there.  This caused a few configuration options to be
dropped from the XML and prevented res_stir_shaken and some
pjsip transports to fail to load.

Those entries are now in their correct spots in pjsip_config.xml.

A housekeeping change was also made to both pjsip_config.xml and
pjsip_manager.xml to add stylesheet and namespace info.

Change-Id: I0ea2eb191e006673f4fa3caafb2edbc92b3e1214

3 years agogeoloc_eprofile.c: Fix setting of loc_src in set_loc_src()
George Joseph [Wed, 13 Jul 2022 18:38:10 +0000 (12:38 -0600)] 
geoloc_eprofile.c: Fix setting of loc_src in set_loc_src()

line 196:    loc_src = '\0';
should have been
line 196:    *loc_src = '\0';

The issue was caught by the gcc optimizer complaining that
loc_src had a zero length because the pointer itself was being
set to NULL instead of the _contents_ of the pointer being set
to the NULL terminator.

ASTERISK-30138
Reported-by: Sean Bright
Change-Id: Id247be113cc8510f043ca053d5b4f5f3d32acd29

3 years agoGeolocation: chan_pjsip Capability Preview
George Joseph [Thu, 7 Jul 2022 15:32:38 +0000 (09:32 -0600)] 
Geolocation:  chan_pjsip Capability Preview

This commit adds res_pjsip_geolocation which gives chan_pjsip
the ability to use the core geolocation capabilities.

This commit message is intentionally short because this isn't
a simple capability.  See the documentation at
https://wiki.asterisk.org/wiki/display/AST/Geolocation
for more information.

THE CAPABILITIES IMPLEMENTED HERE MAY CHANGE BASED ON
USER FEEDBACK!

ASTERISK-30128

Change-Id: Ie2e2bcd87243c2cfabc43eb823d4427c7086f4d9

3 years agoGeolocation: Core Capability Preview
George Joseph [Tue, 15 Feb 2022 13:29:50 +0000 (06:29 -0700)] 
Geolocation:  Core Capability Preview

This commit adds res_geolocation which creates the core capabilities
to manipulate Geolocation information on SIP INVITEs.

An upcoming commit will add res_pjsip_geolocation which will
allow the capabilities to be used with the pjsip channel driver.

This commit message is intentionally short because this isn't
a simple capability.  See the documentation at
https://wiki.asterisk.org/wiki/display/AST/Geolocation
for more information.

THE CAPABILITIES IMPLEMENTED HERE MAY CHANGE BASED ON
USER FEEDBACK!

ASTERISK-30127

Change-Id: Ibfde963121b1ecf57fd98ee7060c4f0808416303

3 years agoGeolocation: Base Asterisk Prereqs
George Joseph [Mon, 27 Jun 2022 17:31:04 +0000 (11:31 -0600)] 
Geolocation: Base Asterisk Prereqs

* Added ast_variable_list_from_quoted_string()
  Parse a quoted string into an ast_variable list.

* Added ast_str_substitute_variables_full2()
  Perform variable/function/expression substitution on an ast_str.

* Added ast_strsep_quoted()
  Like ast_strsep except you can specify a specific quote character.
  Also added unit test.

* Added ast_xml_find_child_element()
  Find a direct child element by name.

* Added ast_xml_doc_dump_memory()
  Dump the specified document to a buffer

* ast_datastore_free() now checks for a NULL datastore
  before attempting to destroy it.

Change-Id: I5dcefed2f5f93a109e8b489e18d80d42e45244ec

3 years agoxml.c, config,c: Add stylesheets and variable list string parsing
George Joseph [Wed, 2 Mar 2022 14:57:26 +0000 (07:57 -0700)] 
xml.c, config,c:  Add stylesheets and variable list string parsing

Added functions to open, close, and apply XML Stylesheets
to XML documents.  Although the presence of libxslt was already
being checked by configure, it was only happening if xmldoc was
enabled.  Now it's checked regardless.

Added ability to parse a string consisting of comma separated
name/value pairs into an ast_variable list.  The reverse of
ast_variable_list_join().

Change-Id: I1e1d149be22165a1fb8e88e2903a36bba1a6cf2e

3 years agocore: Config and XML tweaks needed for geolocation
George Joseph [Sun, 20 Feb 2022 20:16:22 +0000 (13:16 -0700)] 
core: Config and XML tweaks needed for geolocation

Added:

Replace a variable in a list:
int ast_variable_list_replace_variable(struct ast_variable **head,
    struct ast_variable *old, struct ast_variable *new);
Added test as well.

Create a "name=value" string from a variable list:
'name1="val1",name2="val2"', etc.
struct ast_str *ast_variable_list_join(
    const struct ast_variable *head, const char *item_separator,
    const char *name_value_separator, const char *quote_char,
    struct ast_str **str);
Added test as well.

Allow the name of an XML element to be changed.
void ast_xml_set_name(struct ast_xml_node *node, const char *name);

Change-Id: I330a5f63dc0c218e0d8dfc0745948d2812141ccb

3 years agores_pjsip: Add utils for checking media types
George Joseph [Thu, 6 Jan 2022 19:05:34 +0000 (12:05 -0700)] 
res_pjsip: Add utils for checking media types

Added two new functions to assist checking media types...

* ast_sip_are_media_types_equal compares two pjsip_media_types.
* ast_sip_is_media_type_in tests if one media type is in a list
  of others.

Added static definitions for commonly used media types to
res_pjsip.h.

Changed several modules to use the new functions and static
definitions.

ASTERISK_29813
(not ready to close)

Change-Id: Ief77675235bd3bf00a6b095d4673fd878d0801b9

3 years agobundled_pjproject: Add more support for multipart bodies
George Joseph [Tue, 14 Dec 2021 17:39:16 +0000 (10:39 -0700)] 
bundled_pjproject:  Add more support for multipart bodies

Adding upstream patch for pull request...
https://github.com/pjsip/pjproject/pull/2920
---------------------------------------------------------------

sip_inv:  Additional multipart support (#2919)

sip_inv.c:inv_check_sdp_in_incoming_msg() deals with multipart
message bodies in rdata correctly. In the case where early media is
involved though, the existing sdp has to be retrieved from the last
tdata sent in this transaction. This, however, always assumes that
the sdp sent is in a non-multipart body. While there's a function
to retrieve the sdp from multipart and non-multpart rdata bodies,
no similar function for tdata exists.  So...

* The existing pjsip_rdata_get_sdp_info2 was refactored to
  find the sdp in any body, multipart or non-multipart, and
  from either an rdata or tdata.  The new function is
  pjsip_get_sdp_info.  This new function detects whether the
  pjsip_msg->body->data is the text representation of the sdp
  from an rdata or an existing pjmedia_sdp_session object
  from a tdata, or whether pjsip_msg->body is a multipart
  body containing either of the two sdp formats.

* The exsting pjsip_rdata_get_sdp_info and pjsip_rdata_get_sdp_info2
  functions are now wrappers that get the body and Content-Type
  header from the rdata and call pjsip_get_sdp_info.

* Two new wrappers named pjsip_tdata_get_sdp_info and
  pjsip_tdata_get_sdp_info2 have been created that get the body
  from the tdata and call pjsip_get_sdp_info.

* inv_offer_answer_test.c was updated to test multipart scenarios.

ASTERISK-29804

Change-Id: I483c7c3d413280c9e247a96ad581278347f9c71b

3 years agobundled_pjproject: Add additional multipart search utils
George Joseph [Fri, 21 Jan 2022 20:08:11 +0000 (13:08 -0700)] 
bundled_pjproject:  Add additional multipart search utils

Added the following APIs:
pjsip_multipart_find_part_by_header()
pjsip_multipart_find_part_by_header_str()
pjsip_multipart_find_part_by_cid_str()
pjsip_multipart_find_part_by_cid_uri()

Change-Id: I6aee3dcf59eb171f93aae0f0564ff907262ef40d

3 years agobundled_pjproject: Create generic pjsip_hdr_find functions
George Joseph [Wed, 12 Jan 2022 13:16:42 +0000 (06:16 -0700)] 
bundled_pjproject: Create generic pjsip_hdr_find functions

pjsip_msg_find_hdr(), pjsip_msg_find_hdr_by_name(), and
pjsip_msg_find_hdr_by_names() require a pjsip_msg to be passed in
so if you need to search a header list that's not in a pjsip_msg,
you have to do it yourself.  This commit adds generic versions of
those 3 functions that take in the actual header list head instead
of a pjsip_msg so if you need to search a list of headers in
something like a pjsip_multipart_part, you can do so easily.

Change-Id: I6f2c127170eafda48e5e0d5d4d187bcd52b4df07

3 years agoMakefile: Allow XML documentation to exist outside source files
George Joseph [Mon, 14 Feb 2022 13:31:25 +0000 (06:31 -0700)] 
Makefile: Allow XML documentation to exist outside source files

Moved the xmldoc build logic from the top-level Makefile into
its own script "make_xml_documentation" in the build_tools
directory.

Created a new utility script "get_sourceable_makeopts", also in
the build_tools directory, that dumps the top-level "makeopts"
file in a format that can be "sourced" from shell sscripts.
This allows scripts to easily get the values of common make
build variables such as the location of the GREP, SED, AWK, etc.
utilities as well as the AST* and library *_LIB and *_INCLUDE
variables.

Besides moving logic out of the Makefile, some optimizations
were done like removing "third-party" from the list of
subdirectories to be searched for documentation and changing some
assignments from "=" to ":=" so they're only evaluated once.
The speed increase is noticeable.

The makeopts.in file was updated to include the paths to
REALPATH and DIRNAME.  The ./conifgure script was setting them
but makeopts.in wasn't including them.

So...

With this change, you can now place documentation in any"c"
source file AND you can now place it in a separate XML file
altogether.  The following are examples of valid locations:

res/res_pjsip.c
    Using the existing /*** DOCUMENTATION ***/ fragment.

res/res_pjsip/pjsip_configuration.c
    Using the existing /*** DOCUMENTATION ***/ fragment.

res/res_pjsip/pjsip_doc.xml
    A fully-formed XML file.  The "configInfo", "manager",
    "managerEvent", etc. elements that would be in the "c"
    file DOCUMENTATION fragment should be wrapped in proper
    XML.  Example for "somemodule.xml":

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE docs SYSTEM "appdocsxml.dtd">
    <docs>
        <configInfo>
        ...
        </configInfo>
    </docs>

It's the "appdocsxml.dtd" that tells make_xml_documentation
that this is a documentation XML file and not some other XML file.
It also allows many XML-capable editors to do formatting and
validation.

Other than the ".xml" suffix, the name of the file is not
significant.

As a start... This change also moves the documentation that was
in res_pjsip.c to 2 new XML files in res/res_pjsip:
pjsip_config.xml and pjsip_manager.xml.  This cut the number of
lines in res_pjsip.c in half. :)

Change-Id: I486c16c0b5a44d7a8870008e10c941fb19b71ade

3 years agodocumentation: Adds missing default attributes.
Naveen Albert [Sat, 5 Feb 2022 01:46:27 +0000 (01:46 +0000)] 
documentation: Adds missing default attributes.

The configObject tag contains a default attribute which
allows the default value to be specified, if applicable.
This allows for the default value to show up specially on
the wiki in a way that is clear to users.

There are a couple places in the tree where default values
are included in the description as opposed to as attributes,
which means these can't be parsed specially for the wiki.
These are changed to use the attribute instead of being
included in the text description.

ASTERISK-29898 #close

Change-Id: I9d7ea08f50075f41459ea7b76654906b674ec755

3 years agores_pjsip.c: Correct minor typos in 'realm' documentation.
Sean Bright [Thu, 3 Feb 2022 21:48:49 +0000 (16:48 -0500)] 
res_pjsip.c: Correct minor typos in 'realm' documentation.

Change-Id: I886936b808def5540d40071321e72f6bfa19063a

3 years agores_pjsip: allow TLS verification of wildcard cert-bearing servers
Kevin Harwell [Wed, 15 Jun 2022 20:41:31 +0000 (15:41 -0500)] 
res_pjsip: allow TLS verification of wildcard cert-bearing servers

Rightly the use of wildcards in certificates is disallowed in accordance
with RFC5922. However, RFC2818 does make some allowances with regards to
their use when using subject alt names with DNS name types.

As such this patch creates a new setting for TLS transports called
'allow_wildcard_certs', which when it and 'verify_server' are both enabled
allows DNS name types, as well as the common name that start with '*.'
to match as a wildcard.

For instance: *.example.com
will match for: foo.example.com

Partial matching is not allowed, e.g. f*.example.com, foo.*.com, etc...
And the starting wildcard only matches for a single level.

For instance: *.example.com
will NOT match for: foo.bar.example.com

The new setting is disabled by default.

ASTERISK-30072 #close

Change-Id: If0be3fdab2e09c2a66bb54824fca406ebaac3da4

3 years agoGCC12: Fixes for 18+. state_id_by_topic comparing wrong value
George Joseph [Wed, 4 May 2022 18:00:27 +0000 (12:00 -0600)] 
GCC12: Fixes for 18+.  state_id_by_topic comparing wrong value

GCC 12 caught an issue in state_id_by_topic where we were
checking a pointer for NULL instead of the contents of
the pointer for '\0'.

ASTERISK-30044

Change-Id: Ia0b04d4fff45c92acb7f07132a33622fa341148e

3 years agoGCC12: Fixes for 16+
George Joseph [Tue, 3 May 2022 12:57:58 +0000 (06:57 -0600)] 
GCC12: Fixes for 16+

Most issues were in stringfields and had to do with comparing
a pointer to an constant/interned string with NULL.  Since the
string was a constant, a pointer to it could never be NULL so
the comparison was always "true".  gcc now complains about that.

There were also a few issues where determining if there was
enough space for a memcpy or s(n)printf which were fixed
by defining some of the involved variables as "volatile".

There were also a few other miscellaneous fixes.

ASTERISK-30044

Change-Id: Ia081ca1bcfb329df6487c4660aaf1944309eb570

3 years agoUpdate for certified/18.9-cert1 certified/18.9-cert1
Asterisk Development Team [Thu, 28 Apr 2022 12:44:31 +0000 (07:44 -0500)] 
Update for certified/18.9-cert1

3 years agores_pjsip_stir_shaken.c: Fix enabled when not configured.
Ben Ford [Thu, 21 Apr 2022 15:26:01 +0000 (10:26 -0500)] 
res_pjsip_stir_shaken.c: Fix enabled when not configured.

There was an issue with the conditional where STIR/SHAKEN would be
enabled even when not configured. It has been changed to ensure that if
a profile does not exist and stir_shaken is not set in pjsip.conf, then
the conditional will return from the function without performing
STIR/SHAKEN operations.

ASTERISK-30024

Change-Id: I41286a3d35b033ccbfbe4129427a62cb793a86e6
(cherry picked from commit 40f4268f2df3ac4d416e06bf825b2ea954a42075)

3 years agoAST-2022-002 - res_stir_shaken/curl: Add ACL checks for Identity header.
Ben Ford [Mon, 28 Feb 2022 17:19:54 +0000 (11:19 -0600)] 
AST-2022-002 - res_stir_shaken/curl: Add ACL checks for Identity header.

Adds a new configuration option, stir_shaken_profile, in pjsip.conf that
can be specified on a per endpoint basis. This option will reference a
stir_shaken_profile that can be configured in stir_shaken.conf. The type
of this option must be 'profile'. The stir_shaken option can be
specified on this object with the same values as before (attest, verify,
on), but it cannot be off since having the profile itself implies wanting
STIR/SHAKEN support. You can also specify an ACL from acl.conf (along
with permit and deny lines in the object itself) that will be used to
limit what interfaces Asterisk will attempt to retrieve information from
when reading the Identity header.

ASTERISK-29476

Change-Id: I87fa61f78a9ea0cd42530691a30da3c781842406

3 years agoAST-2022-001 - res_stir_shaken/curl: Limit file size and check start.
Ben Ford [Fri, 7 Jan 2022 14:50:18 +0000 (08:50 -0600)] 
AST-2022-001 - res_stir_shaken/curl: Limit file size and check start.

Put checks in place to limit how much we will actually download, as well
as a check for the data we receive at the start to ensure it begins with
what we would expect a certificate to begin with.

ASTERISK-29872

Change-Id: Ifd3c6b8bd52b8b6192a04166ccce4fc8a8000b46

3 years agofunc_odbc: Add SQL_ESC_BACKSLASHES dialplan function.
Joshua C. Colp [Thu, 10 Feb 2022 12:02:23 +0000 (08:02 -0400)] 
func_odbc: Add SQL_ESC_BACKSLASHES dialplan function.

Some databases depending on their configuration using backslashes
for escaping. When combined with the use of ' this can result in
a broken func_odbc query.

This change adds a SQL_ESC_BACKSLASHES dialplan function which can
be used to escape the backslashes.

This is done as a dialplan function instead of being always done
as some databases do not require this, and always doing it would
result in incorrect data being put into the database.

ASTERISK-29838

Change-Id: I152bf34899b96ddb09cca3e767254d8d78f0c83d

3 years agoAST-2022-006: pjproject - unconstrained malformed multipart SIP message
Kevin Harwell [Thu, 3 Mar 2022 22:44:20 +0000 (16:44 -0600)] 
AST-2022-006: pjproject - unconstrained malformed multipart SIP message

ASTERISK-29945 #close

Change-Id: Ic58957afc453195d53c2bd25c905df3d91d1abe6

3 years agoAST-2022-005: pjproject - undefined behavior after freeing a dialog set
Kevin Harwell [Thu, 3 Mar 2022 22:42:55 +0000 (16:42 -0600)] 
AST-2022-005: pjproject - undefined behavior after freeing a dialog set

ASTERISK-29945 #close

Change-Id: Ia8ce6d82b115c82c1138747c72a0adcaa42b718c

3 years agoAST-2022-004: pjproject - possible integer underflow on STUN message
Kevin Harwell [Thu, 3 Mar 2022 22:41:16 +0000 (16:41 -0600)] 
AST-2022-004: pjproject - possible integer underflow on STUN message

ASTERISK-29945 #close

Change-Id: I721cd254e4f8aa6d3a97a37529cca53519694c54

3 years agoUpdate for certified/18.9-cert1-rc1 certified/18.9-cert1-rc1
Asterisk Development Team [Fri, 21 Jan 2022 17:26:53 +0000 (12:26 -0500)] 
Update for certified/18.9-cert1-rc1

3 years agoAsterisk Certified 18.9 Preparation
Mike Bradeen [Fri, 14 Jan 2022 19:56:19 +0000 (12:56 -0700)] 
Asterisk Certified 18.9 Preparation

* Updated .gitreview default branch to certified/18.9
* Updated .version to certified/18.9
* Set all extended support modules to be disabled by default
* fixed MODULEINFO order introduced by default script on wiki

Change-Id: Id12804325c31b1112b6c559fa97c8a6401c051b3

3 years agosay.c: Prevent erroneous failures with 'say' family of functions.
Sean Bright [Wed, 12 Jan 2022 19:20:34 +0000 (14:20 -0500)] 
say.c: Prevent erroneous failures with 'say' family of functions.

A regression was introduced in ASTERISK~29531 that caused 'say'
functions to fail with file lists that would previously have
succeeded. This caused affected channels to hang up where previously
they would have continued.

We now explicitly check for the empty string to restore the previous
behavior.

ASTERISK-29859 #close

Change-Id: Ia2e5769868e2792313c2d7c07996efe009c6f8d5
(cherry picked from commit 3fd47840c93bd834cda82562f121eec5883b5a23)

3 years agosay.c: Honor requests for DTMF interruption.
Sean Bright [Thu, 23 Dec 2021 21:57:59 +0000 (16:57 -0500)] 
say.c: Honor requests for DTMF interruption.

SayAlpha, SayAlphaCase, SayDigits, SayMoney, SayNumber, SayOrdinal,
and SayPhonetic all claim to allow DTMF interruption if the
SAY_DTMF_INTERRUPT channel variable is set to a truthy value, but we
are failing to break out of a given 'say' application if DTMF actually
occurs.

ASTERISK-29816 #close

Change-Id: I6a96e0130560831d2cb45164919862b9bcb6287e
(cherry picked from commit 4fe94bab097d01e7524e4462c005e5a57f0ad1f4)

3 years agobridge: Unlock channel during Local peer check.
Joshua C. Colp [Mon, 27 Dec 2021 13:28:00 +0000 (09:28 -0400)] 
bridge: Unlock channel during Local peer check.

It's not safe to keep the channel locked while locking
the peer Local channel, as it can result in a deadlock.

This change unlocks it during this time but keeps the
bridge locked to ensure nothing changes about the bridge.

ASTERISK-29821

Change-Id: Ib68eb7037e5a479bcc2aceee77337cdde1fbdde6
(cherry picked from commit d83a46869ed5e13d0ed5a898bac8faed61d91203)

3 years agoUpdate for 18.9.0 18.9 18.9.0
Asterisk Development Team [Thu, 9 Dec 2021 16:44:54 +0000 (11:44 -0500)] 
Update for 18.9.0

3 years agoUpdate for 18.9.0-rc1 18.9.0-rc1
Asterisk Development Team [Thu, 2 Dec 2021 18:26:18 +0000 (13:26 -0500)] 
Update for 18.9.0-rc1

3 years agoUpdate CHANGES and UPGRADE.txt for 18.9.0
Asterisk Development Team [Thu, 2 Dec 2021 17:59:24 +0000 (12:59 -0500)] 
Update CHANGES and UPGRADE.txt for 18.9.0

3 years agoprogdocs: Fix for Doxygen, the hidden parts.
Alexander Traud [Sun, 28 Nov 2021 10:29:53 +0000 (11:29 +0100)] 
progdocs: Fix for Doxygen, the hidden parts.

ASTERISK-29779

Change-Id: If338163488498f65fa7248b60e80299c0a928e4b

3 years agoprogdocs: Fix grouping for latest Doxygen.
Alexander Traud [Fri, 12 Nov 2021 16:05:05 +0000 (17:05 +0100)] 
progdocs: Fix grouping for latest Doxygen.

Since Doxygen 1.8.16, a special comment block is required. Otherwise
(pure C comment), the group command is ignored. Additionally, several
unbalanced group commands were fixed.

ASTERISK-29732

Change-Id: I4687857b9d56e6f44fd440b73af156691660202e

3 years agodocumentation: Standardize examples
Naveen Albert [Thu, 25 Nov 2021 18:41:18 +0000 (18:41 +0000)] 
documentation: Standardize examples

Most examples in the XML documentation use the
example tag to demonstrate examples, which gets
parsed specially in the Wiki to make it easier
to follow for users.

This fixes a few modules to use the example
tag instead of vanilla para tags to bring them
in line with the standard syntax.

ASTERISK-29777 #close

Change-Id: I9acb6cc5faf1d220e73c6dd28592371d768d279b

3 years agoconfig.c: Prevent UB in ast_realtime_require_field.
Sean Bright [Sun, 28 Nov 2021 20:52:24 +0000 (15:52 -0500)] 
config.c: Prevent UB in ast_realtime_require_field.

A backend's implementation of the realtime 'require' function may call
va_arg() and then fail, leaving the va_list in an undefined
state. Pass a copy of the va_list instead.

ASTERISK-29771 #close

Change-Id: I555565a72af84e96d49f62fe8cb66ba5a78461f4

3 years agoapp_voicemail: Refactor email generation functions
Naveen Albert [Mon, 1 Nov 2021 15:40:42 +0000 (15:40 +0000)] 
app_voicemail: Refactor email generation functions

Refactors generic functions used for email generation
into utils.c so that they can be used by multiple
modules, including app_voicemail and app_minivm,
to avoid code duplication.

ASTERISK-29715 #close

Change-Id: I1de0ed3483623e9599711129edc817c45ad237ee

3 years agostir/shaken: Avoid a compiler extension of GCC.
Alexander Traud [Thu, 25 Nov 2021 16:34:13 +0000 (17:34 +0100)] 
stir/shaken: Avoid a compiler extension of GCC.

ASTERISK-29776

Change-Id: I86e5eca66fb775a5744af0c929fb269e70575a73

3 years agochan_misdn: Fix for Doxygen.
Alexander Traud [Sat, 20 Nov 2021 10:00:43 +0000 (11:00 +0100)] 
chan_misdn: Fix for Doxygen.

ASTERISK-29764

Change-Id: I6e5466cce03e25695c5c7d8b68c305184dcf5375

3 years agoprogdocs: Remove outdated references in doxyref.h.
Alexander Traud [Tue, 23 Nov 2021 13:45:58 +0000 (14:45 +0100)] 
progdocs: Remove outdated references in doxyref.h.

ASTERISK-29773

Change-Id: Ica93160d9158cc0e80c5fda829b80d1b49a6b9b9

3 years agoxmldoc: Fix for Doxygen.
Alexander Traud [Sat, 20 Nov 2021 12:05:04 +0000 (13:05 +0100)] 
xmldoc: Fix for Doxygen.

ASTERISK-29765

Change-Id: I654ba0debe8351038d4433716434a09370f04c9d

3 years agologger: use __FUNCTION__ instead of __PRETTY_FUNCTION__
Jaco Kroon [Thu, 28 Oct 2021 07:28:57 +0000 (09:28 +0200)] 
logger: use __FUNCTION__ instead of __PRETTY_FUNCTION__

This avoids a few long-name overflows, at the cost of less instructive
names in the case of C++ (specifically overloaded functions and class
methods).  This in turn is offset against the fact that we're logging
the filename and line numbers in any case.

Change-Id: I54101a0bb5f8cb9ef63ec12c5e0d4c8edafff9ed
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
3 years agoastobj2.c: Fix core when ref_log enabled
Mike Bradeen [Tue, 16 Nov 2021 22:34:28 +0000 (15:34 -0700)] 
astobj2.c: Fix core when ref_log enabled

In the AO2_ALLOC_OPT_LOCK_NOLOCK case the referenced obj
structure is freed, but is then referenced later if ref_log is
enabled. The change is to store the obj->priv_data.options value
locally and reference it instead of the value from the freed obj

ASTERISK-29730

Change-Id: I60cc5dc1f5a4330e7ad56976fc38a42de0ab6072

3 years agochannels: Fix for Doxygen.
Alexander Traud [Fri, 19 Nov 2021 09:46:06 +0000 (10:46 +0100)] 
channels: Fix for Doxygen.

ASTERISK-29762

Change-Id: Ia8811ac12b93ff8c18164699c6fbc604cb0a23f7

3 years agobridge: Deny full Local channel pair in bridge.
Joshua C. Colp [Tue, 16 Nov 2021 10:06:26 +0000 (06:06 -0400)] 
bridge: Deny full Local channel pair in bridge.

Local channels are made up of two pairs - the 1 and 2
sides. When a frame goes in one side, it comes out the
other. Back and forth. When both halves are in a
bridge this creates an infinite loop of frames.

This change makes it so that bridging no longer
allows both of these sides to exist in the same
bridge.

ASTERISK-29748

Change-Id: I29928b6de87cd9be996a77daccefd7c360fef651

3 years agores_tonedetect: Add call progress tone detection
Naveen Albert [Sat, 6 Nov 2021 23:35:16 +0000 (23:35 +0000)] 
res_tonedetect: Add call progress tone detection

Makes basic call progress tone detection available
in a tech-agnostic manner with the addition of the
ToneScan application. This can determine if the channel
has encountered a busy signal, SIT tones, dial tone,
modem, fax machine, etc. A few basic async progress
tone detect options are also added to the TONE_DETECT
function.

ASTERISK-29720 #close

Change-Id: Ia02437e0450473031e294798b8cb421fb8f24e90

3 years agortp_engine: Add type field for JSON RTCP Report stasis messages
Boris P. Korzun [Mon, 8 Nov 2021 19:59:02 +0000 (22:59 +0300)] 
rtp_engine: Add type field for JSON RTCP Report stasis messages

ASTERISK-29727 #close

Change-Id: I2eca8aeb591cb63ac2238d08eab662367453cb82

3 years agoodbc: Fix for Doxygen.
Alexander Traud [Wed, 17 Nov 2021 09:24:54 +0000 (10:24 +0100)] 
odbc: Fix for Doxygen.

ASTERISK-29754

Change-Id: Ia09eb68d283d201d9a6fbeccfc0efe83fe0502a5

3 years agoparking: Fix for Doxygen.
Alexander Traud [Wed, 17 Nov 2021 08:54:12 +0000 (09:54 +0100)] 
parking: Fix for Doxygen.

ASTERISK-29753

Change-Id: I7a61974584f6169502e6860fc711919fe7bbfaa7

3 years agoari-stubs: Avoid 'is' as comparism with an literal.
Alexander Traud [Wed, 17 Nov 2021 11:43:22 +0000 (12:43 +0100)] 
ari-stubs: Avoid 'is' as comparism with an literal.

Python 3.9.7 gave a syntax warning.

Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4

3 years agoframe: Fix for Doxygen.
Alexander Traud [Wed, 17 Nov 2021 10:26:38 +0000 (11:26 +0100)] 
frame: Fix for Doxygen.

ASTERISK-29755

Change-Id: I8240013ec3db0669c0acf67e26bf6c9cbb5b72af

3 years agores_ari: Fix for Doxygen.
Alexander Traud [Wed, 17 Nov 2021 12:18:32 +0000 (13:18 +0100)] 
res_ari: Fix for Doxygen.

ASTERISK-29756

Change-Id: I2f1c1eea1c902492b77b74de9950f20ebbb7e758

3 years agochannel: Fix for Doxygen.
Alexander Traud [Tue, 16 Nov 2021 18:07:51 +0000 (19:07 +0100)] 
channel: Fix for Doxygen.

ASTERISK-29751

Change-Id: Ie04da5029c57ebee44733bdf05013156abe80176

3 years agoBuildSystem: Consistently allow 'ye' even for Jansson.
Alexander Traud [Mon, 8 Nov 2021 16:08:01 +0000 (17:08 +0100)] 
BuildSystem: Consistently allow 'ye' even for Jansson.

Furthermore, consistently use not 'No' but ':' for non-existent file
paths. Finally, use the same pattern for checking file paths:
  a)  = ":"
  b) != "x:"

Change-Id: I0c80c76d2cc98b0e5c859131290f4e3141a1a544

3 years agostasis: Fix for Doxygen.
Alexander Traud [Tue, 16 Nov 2021 16:26:23 +0000 (17:26 +0100)] 
stasis: Fix for Doxygen.

ASTERISK-29750

Change-Id: Iea50173e785b2e9d49bc24c0af7111cfd96d44a9

3 years agoapp: Fix for Doxygen.
Alexander Traud [Wed, 17 Nov 2021 08:30:18 +0000 (09:30 +0100)] 
app: Fix for Doxygen.

ASTERISK-29752

Change-Id: If40cbd01d47a6cfd620b18206dedb8460216c8af

3 years agores_xmpp: Fix for Doxygen.
Alexander Traud [Tue, 16 Nov 2021 12:51:05 +0000 (13:51 +0100)] 
res_xmpp: Fix for Doxygen.

ASTERISK-29749

Change-Id: I7885793b63bdeaa883e76edb899bbba9660eb1c5

3 years agoaddons: Fix for Doxygen.
Alexander Traud [Mon, 15 Nov 2021 13:38:44 +0000 (14:38 +0100)] 
addons: Fix for Doxygen.

ASTERISK-29742

Change-Id: Ie752cb9638ced1ebe3a55d710c6c18ef6bd0aafc

3 years agores_pjsip: Fix for Doxygen.
Alexander Traud [Tue, 16 Nov 2021 09:55:03 +0000 (10:55 +0100)] 
res_pjsip: Fix for Doxygen.

ASTERISK-29747

Change-Id: Ic7a1e9453f805a6264fe86c96b7d18b87b376084

3 years agochan_iax2: Fix for Doxygen.
Alexander Traud [Sat, 13 Nov 2021 12:04:20 +0000 (13:04 +0100)] 
chan_iax2: Fix for Doxygen.

ASTERISK-29737

Change-Id: I282003cc553989fd5c19ceeac9e478fa4ee06cec

3 years agobridges: Fix for Doxygen.
Alexander Traud [Mon, 15 Nov 2021 14:12:37 +0000 (15:12 +0100)] 
bridges: Fix for Doxygen.

ASTERISK-29743

Change-Id: I6e1bbbaa5875e19994a328ab40a5d429c6010e8b

3 years agotests: Fix for Doxygen.
Alexander Traud [Mon, 15 Nov 2021 13:29:02 +0000 (14:29 +0100)] 
tests: Fix for Doxygen.

ASTERISK-29741

Change-Id: I012d72b237bda2ef2d0f86307dfc6dc7add4b54b

3 years agoapps: Fix for Doxygen.
Alexander Traud [Mon, 15 Nov 2021 13:18:02 +0000 (14:18 +0100)] 
apps: Fix for Doxygen.

ASTERISK-29740

Change-Id: Icb6fbcfea0a5f1c82caa5001902b6a786adbf307

3 years agoprogdocs: Avoid 'name' with Doxygen \file.
Alexander Traud [Fri, 12 Nov 2021 18:41:09 +0000 (19:41 +0100)] 
progdocs: Avoid 'name' with Doxygen \file.

Fixes four misuses of the parameter 'name'. Additionally, for
consistency and to avoid such an issue in future, those few other
places, which used '\file name', were changed just to '\file'. Then,
Doxygen uses the name of the current file.

ASTERISK-29733

Change-Id: I0c18b4c863c6988b138c77448057349a9ee7052d

3 years agobridge_channel: Fix for Doxygen.
Alexander Traud [Sat, 13 Nov 2021 10:40:51 +0000 (11:40 +0100)] 
bridge_channel: Fix for Doxygen.

ASTERISK-29736

Change-Id: Ia5370289e6526001a6b52754b533bcea1a9d7e5c

3 years agoprogdocs: Avoid multiple use of section labels.
Alexander Traud [Fri, 12 Nov 2021 19:52:27 +0000 (20:52 +0100)] 
progdocs: Avoid multiple use of section labels.

ASTERISK-29735

Change-Id: I56935e73f7bd1d4ae2721d11040f4835da64b810

3 years agoprogdocs: Use Doxygen \example correctly.
Alexander Traud [Fri, 12 Nov 2021 19:17:20 +0000 (20:17 +0100)] 
progdocs: Use Doxygen \example correctly.

ASTERISK-29734

Change-Id: I83b51e85cd71867645ab3a8a820f8fd1f065abd2

3 years agobridges: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:37 +0000 (21:04 -0400)] 
bridges: Spelling fixes

Correct typos of the following word families:

multiplication
potentially
iteration
interaction
virtual
synthesis
convolve
initializes
overlap

ASTERISK-29714

Change-Id: Ia40f1aca8f2996ab407c6ed9d24cb10a67c6684b
(cherry picked from commit 2a8fb4695ef87c363fc49f142b696ceed85a7f98)

3 years agoapp_morsecode: Fix deadlock
Naveen Albert [Mon, 15 Nov 2021 19:02:40 +0000 (19:02 +0000)] 
app_morsecode: Fix deadlock

Fixes a deadlock in app_morsecode caused by locking
the channel twice when reading variables from the
channel. The duplicate lock is simply removed.

ASTERISK-29744 #close

Change-Id: I204000701f123361d7f85e0498fedc90243c75e4

3 years agores_pjsip_callerid: Fix OLI parsing
Naveen Albert [Sun, 24 Oct 2021 18:38:13 +0000 (18:38 +0000)] 
res_pjsip_callerid: Fix OLI parsing

Fix parsing of ANI2/OLI information, since it was previously
parsing the user, when it should have been parsing other_param.

Also improves the parsing by using pjproject native functions
rather than trying to parse the parameters ourselves like
chan_sip did. A previous attempt at this caused a crash, but
this works correctly now.

ASTERISK-29703 #close

Change-Id: I8f3c79032d9ea1a21d16f8e11f22bd8d887738a1

3 years agoapp_read: Fix custom terminator functionality regression
Naveen Albert [Mon, 25 Oct 2021 17:51:50 +0000 (17:51 +0000)] 
app_read: Fix custom terminator functionality regression

Currently, when the t option is specified with no arguments,
the # character is still treated as a terminator, even though
no character should be treated as a terminator.

This is because a previous regression fix was modified to
remove the use of NULL as a default altogether. However,
NULL and an empty string actually refer to different
arrangements and should be treated differently. NULL is the
default terminator (#), while an empty string removes the
terminator altogether. This is the behavior being used by
the rest of the core.

Additionally, since S_OR catches empty strings as well as
NULL (not intended), this is changed to a ternary operator
instead, which fixes the behavior.

ASTERISK-29705 #close

Change-Id: I9b6b72196dd04f5b1e0ab5aa1b0adf627725e086

3 years agoutils: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:32 +0000 (21:04 -0400)] 
utils: Spelling fixes

Correct typos of the following word families:

command-line
immediately
extensions
momentarily
mustn't
numbered
bytes
caching

ASTERISK-29714

Change-Id: I8b2b125c5d4d2f9e87a58515c97468ad47ca44f8

3 years agopbx: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:39 +0000 (21:04 -0400)] 
pbx: Spelling fixes

Correct typos of the following word families:

process
populate
with
africa
accessing
contexts
exercise
university
organizations
withhold
maintaining
independent
rotation
ignore
eventname

ASTERISK-29714

Change-Id: I90eacc5bc3dcf75a9c898cfb85164f37dec08345

3 years agorest-api-templates: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:38 +0000 (21:04 -0400)] 
rest-api-templates: Spelling fixes

Correct typos of the following word families:

overwritten
descendants

ASTERISK-29714

Change-Id: I2307e35887a3437e50317a4b86f0893f25f9fd3b

3 years agochannels: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:31 +0000 (21:04 -0400)] 
channels: Spelling fixes

Correct typos of the following word families:

appease
permanently
overriding
residue
silliness
extension
channels
globally
reference
japanese
group
coordinate
registry
information
inconvenience
attempts
cadence
payloads
presence
provisioning
mimics
behavior
width
natively
syslabel
not owning
unquelch
mostly
constants
interesting
active
unequipped
brodmann
commanding
backlogged
without
bitstream
firmware
maintain
exclusive
practically
structs
appearance
range
retransmission
indication
provisional
associating
always
whether
cyrillic
distinctive
components
reinitialized
initialized
capability
switches
occurring
happened
outbound

ASTERISK-29714

Change-Id: Ife52ee89cd2170b684fa651ca72b1cb911a57339

3 years agotests: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:37 +0000 (21:04 -0400)] 
tests: Spelling fixes

Correct typos of the following word families:

mounting
jitterbuffer
thrashing
original
manipulating
entries
actual
possibility
tasks
options
positives
taskprocessor
other
dynamic
declarative

ASTERISK-29714

Change-Id: I6b94659d045eec5d8d020fce2e9b6e2f593dfeb6

3 years agoMakefile: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:37 +0000 (21:04 -0400)] 
Makefile: Spelling fixes

Correct typos of the following word families:

libraries
install
overwrite

ASTERISK-29714

Change-Id: I6488814f79186d6c23dfd7b7f9bba0a046126174

3 years agocontrib: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:41 +0000 (21:04 -0400)] 
contrib: Spelling fixes

Correct typos of the following word families:

standard
increase
comments
valgrind
promiscuous
editing
libtonezone
storage
aggressive
whitespace
russellbryant
consecutive
peternixon

ASTERISK-29714

Change-Id: I9cafbf41b579c9c0c84c81719d2c4f900beec245

3 years agoformats: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:42 +0000 (21:04 -0400)] 
formats: Spelling fixes

Correct typos of the following word families:

truncate

ASTERISK-29714

Change-Id: I6507760c72b919873cff7cac22b3781036cd4955

3 years agoaddons: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:34 +0000 (21:04 -0400)] 
addons: Spelling fixes

Correct typos of the following word families:

definition
listener
fastcopy
logical
registration
classify
documentation
explicitly
dialed
endpoint
elements
arithmetic
might
prepend
byte
terminal
inquiry
skipping
aliases
calling
absent
authentication
transmit
their
ericsson
disconnecting
redir
items
client
adapter
transmitter
existing
satisfies
pointer
interval
supplied

ASTERISK-29714

Change-Id: I8548438246f7b718d88e0b9e0a1eb384bbec88e4

3 years agoagi: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:39 +0000 (21:04 -0400)] 
agi: Spelling fixes

Correct typos of the following word families:

pretend
speech

ASTERISK-29714

Change-Id: I7d0527c329cda07552247ea11b2d7db207a3d87d

3 years agofuncs: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:34 +0000 (21:04 -0400)] 
funcs: Spelling fixes

Correct typos of the following word families:

effectively
emitted
expect
anthony

ASTERISK-29714

Change-Id: Ic16f9ec855bb6d14ec8e170b90af9a36b06d488a

3 years agobuild_tools: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:32 +0000 (21:04 -0400)] 
build_tools: Spelling fixes

Correct typos of the following word families:

binutils

ASTERISK-29714

Change-Id: I2f676ab48cd50edc400c43307cb53679e4c09b97

3 years agomenuselect: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:34 +0000 (21:04 -0400)] 
menuselect: Spelling fixes

Correct typos of the following word families:

dependency
unless
random
dependencies
delimited
randomly
modules

ASTERISK-29714

Change-Id: I3920603a8dc7c0a1852d2f885e06b1144692d40e

3 years agoinclude: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:30 +0000 (21:04 -0400)] 
include: Spelling fixes

Correct typos of the following word families:

activities
forward
occurs
unprepared
association
compress
extracted
doubly
callback
prometheus
underlying
keyframe
continue
convenience
calculates
ignorepattern
determine
subscribers
subsystem
synthetic
applies
example
manager
established
result
microseconds
occurrences
unsuccessful
accommodates
related
signifying
unsubscribe
greater
fastforward
itself
unregistering
using
translator
sorcery
implementation
serializers
asynchronous
unknowingly
initialization
determining
category
these
persistent
propagate
outputted
string
allocated
decremented
second
cacheability
destructor
impaired
decrypted
relies
signaling
based
suspended
retrieved
functions
search
auth
considered

ASTERISK-29714

Change-Id: I542ce887a16603f886a915920d5710d4a0a1358d

3 years agodoc: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:42 +0000 (21:04 -0400)] 
doc: Spelling fixes

Correct typos of the following word families:

transparent
roughly

ASTERISK-29714

Change-Id: I2b90c68dfde4aa3f0d58f64f8187465336acb1b3

3 years agoconfigs: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:38 +0000 (21:04 -0400)] 
configs: Spelling fixes

Correct typos of the following word families:

password
excludes
undesirable
checksums
through
screening
interpreting
database
causes
initiation
member
busydetect
defined
severely
throughput
recognized
counter
require
indefinitely
accounts

ASTERISK-29714

Change-Id: Ie8f2a7b274a162dd627ee6a2165f5e8a3876527e

3 years agores: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:36 +0000 (21:04 -0400)] 
res: Spelling fixes

Correct typos of the following word families:

identifying
structures
actcount
initializer
attributes
statement
enough
locking
declaration
userevent
provides
unregister
session
execute
searches
verification
suppressed
prepared
passwords
recipients
event
because
brief
unidentified
redundancy
character
the
module
reload
operation
backslashes
accurate
incorrect
collision
initializing
instance
interpreted
buddies
omitted
manually
requires
queries
generator
scheduler
configuration has
owner
resource
performed
masquerade
apparently
routable

ASTERISK-29714

Change-Id: I88485116d2c59b776aa2e1f8b4ce8239a21decda

3 years agocodecs: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:43 +0000 (21:04 -0400)] 
codecs: Spelling fixes

Correct typos of the following word families:

voiced
denumerator
codeword
upsampling
constructed
residual
subroutine
conditional
quantizing
courtesy
number

ASTERISK-29714

Change-Id: I471fb8086a5277d8f05047fedee22cfa97a4252d

3 years agomain: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:30 +0000 (21:04 -0400)] 
main: Spelling fixes

Correct typos of the following word families:

analysis
nuisance
converting
although
transaction
desctitle
acquire
update
evaluate
thousand
this
dissolved
management
integrity
reconstructed
decrement
further on
irrelevant
currently
constancy
anyway
unconstrained
featuregroups
right
larger
evaluated
encumbered
languages
digits
authoritative
framing
blindxfer
tolerate
traverser
exclamation
perform
permissions
rearrangement
performing
processing
declension
happily
duplicate
compound
hundred
returns
elicit
allocate
actually
paths
inheritance
atxferdropcall
earlier
synchronization
multiplier
acknowledge
across
against
thousands
joyous
manipulators
guaranteed
emulating
soundfile

ASTERISK-29714

Change-Id: I926ba4b11e9f6dd3fdd93170ab1f9b997910be70

3 years agoCREDITS: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:33 +0000 (21:04 -0400)] 
CREDITS: Spelling fixes

Correct typos of the following word families:

contributors

ASTERISK-29714

Change-Id: I6f46dae8bf8125a21ce8ff318380b2b412d9d2f9

3 years agoapps: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:41 +0000 (21:04 -0400)] 
apps: Spelling fixes

Correct typos of the following word families:

simultaneously
administrator
directforward
attachfmt
dailplan
automatically
applicable
nouns
explicit
outside
sponsored
attachment
audio
spied
doesn't
counting
encoded
implements
recursively
emailaddress
arguments
queuerules
members
priority
output
advanced
silencethreshold
brazilian
debugging
argument
meadmin
formatting
integrated
sneakiness

ASTERISK-29714

Change-Id: Ie5ecaec91c00b26309da4e51cfc0991a5bb7d092

3 years agoUPGRADE.txt: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:42 +0000 (21:04 -0400)] 
UPGRADE.txt: Spelling fixes

Correct typos of the following word families:

themselves
support
received

ASTERISK-29714

Change-Id: Ibd0a7996d5801c754d3d44fba31fe788a13dba95

3 years agoCHANGES: Spelling fixes
Josh Soref [Sun, 31 Oct 2021 01:04:36 +0000 (21:04 -0400)] 
CHANGES: Spelling fixes

Correct typos of the following word families:

issuing
execution
bridging
alert
respective
unlikely
confbridge
offered
negotiation
announced
engineer
systems
inherited
passthrough
functionality
supporting
conflicts
semantically
monitor
specify
specifiable

ASTERISK-29714

Change-Id: Ia6b1cf634f52c5f7b1b8769dc54dae78106ed98c

3 years agoCI: Rename 'master' node to 'built-in'
George Joseph [Mon, 8 Nov 2021 13:00:55 +0000 (06:00 -0700)] 
CI: Rename 'master' node to 'built-in'

Jenkins renamed the 'master' node to 'built-in' in version
2.319 so we have to adjust as well.

Change-Id: Ice663c3a66d0eedf76e8e5fe530328455991ec25

3 years agoBuildSystem: In POSIX sh, == in place of = is undefined.
Alexander Traud [Mon, 8 Nov 2021 14:08:12 +0000 (15:08 +0100)] 
BuildSystem: In POSIX sh, == in place of = is undefined.

ASTERISK-29724

Change-Id: I59aa0e52effdc16992f3a736ccf73430a6ef135b

3 years agosig_analog: Fix truncated buffer copy
Naveen Albert [Sun, 24 Oct 2021 11:55:50 +0000 (11:55 +0000)] 
sig_analog: Fix truncated buffer copy

Fixes compiler warning caused by a truncated copy of the ANI2 into a
buffer of size 10. This could prevent the null terminator from being
copied if the copy value exceeds the size of the buffer. This increases
the buffer size to 101 to ensure there is no way for truncation to occur.

ASTERISK-29702 #close

Change-Id: Ief9052212952840fa44de6463b8699fdb3e163d0