]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
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

3 years agopbx.c: Don't remove dashes from hints on reload.
Sean Bright [Mon, 8 Nov 2021 15:01:09 +0000 (10:01 -0500)] 
pbx.c: Don't remove dashes from hints on reload.

When reloading dialplan, hints created dynamically would lose any dash
characters. Now we ignore those dashes if we are dealing with a hint
during a reload.

ASTERISK-28040 #close

Change-Id: I95e48f5a268efa3c6840ab69798525d3dce91636

3 years agoapp_voicemail: Fix phantom voicemail bug on rerecord
Naveen Albert [Sun, 24 Oct 2021 12:31:37 +0000 (12:31 +0000)] 
app_voicemail: Fix phantom voicemail bug on rerecord

If users are able to press # for options while leaving
a message and then press 3 to rerecord the message, if
the caller hangs up during the rerecord prompt but before
Asterisk starts recording a message, then an "empty"
voicemail gets processed whereby an email gets sent out
notifying the user of a 0:00 duration message. The file
doesn't actually exist, so playback will fail since there
was no message to begin with.

This adds a check after the streaming of the rerecord
announcement to see if the caller has hung up. If so,
we bail out early so that we can clean up properly.

ASTERISK-29391 #close

Change-Id: Id965d72759a2fd3b39afb76fec08aaebebe75c31

3 years agochan_iax2: Allow both secret and outkey at dial time
Naveen Albert [Tue, 26 Oct 2021 00:47:02 +0000 (00:47 +0000)] 
chan_iax2: Allow both secret and outkey at dial time

Historically, the dial syntax for IAX2 has held that
an outkey (used only for RSA authenticated calls)
and a secret (used only for plain text and MD5 authenticated
calls, historically) were mutually exclusive, and thus
the same position in the dial string was used for both
values.

Now that encryption is possible with RSA authentication,
this poses a limitation, since encryption requires a
secret and RSA authentication requires an outkey. Thus,
the dial syntax is extended so that both a secret and
an outkey can be specified.

The new extended syntax is backwards compatible with the
old syntax. However, a secret can now be specified after
the outkey, or the outkey can be specified after the secret.
This makes it possible to spawn an encrypted RSA authenticated
call without a corresponding peer being predefined in iax.conf.

ASTERISK-29707 #close

Change-Id: I1f8149313ed760169d604afbb07720a8b07dd00e

3 years agores_snmp: As build tool, prefer pkg-config over net-snmp-config.
Alexander Traud [Thu, 28 Oct 2021 12:09:32 +0000 (14:09 +0200)] 
res_snmp: As build tool, prefer pkg-config over net-snmp-config.

ASTERISK-29709

Change-Id: Ie169df878bdfc3a06b3097c5c38d185b480f54d4

3 years agostasis: Avoid 'dispatched' as unused variable in normal mode.
Alexander Traud [Thu, 28 Oct 2021 12:41:51 +0000 (14:41 +0200)] 
stasis: Avoid 'dispatched' as unused variable in normal mode.

ASTERISK-29710

Change-Id: Ia849f1172e4e694c5d5d7f0cad449f936ee12216

3 years agovarious: Fix GCC 11.2 compilation issues.
Sean Bright [Fri, 29 Oct 2021 15:05:18 +0000 (15:05 +0000)] 
various: Fix GCC 11.2 compilation issues.

* Initialize some variables that are never used anyway.

* Use valid pointers instead of integers cast to void pointers when
  calling pthread_setspecific().

ASTERISK-29711 #close
ASTERISK-29713 #close

Change-Id: I8728cd6f2f4b28e0e48113c5da450b768c2a6683

3 years agoast_coredumper: Refactor to better find things
George Joseph [Thu, 9 Sep 2021 14:39:27 +0000 (08:39 -0600)] 
ast_coredumper:  Refactor to better find things

The search for a running asterisk when --running is used
has been greatly simplified and in the event it doesn't
work, you can now specify a pid to use on the command
line with --pid.

The search for asterisk modules when --tarball-coredumps
is used has been enhanced to have a better chance of finding
them and in the event it doesn't work, you can now specify
--libdir on the command line to indicate the library directory
where they were installed.

The DATEFORMAT variable was renamed to DATEOPTS and is now
passed to the 'date' utility rather than running DATEFORMAT
as a command.

The coredump and output files are now renamed with DATEOPTS.
This can be disabled by specifying --no-rename.

Several confusing and conflicting options were removed:
--append-coredumps
--conffile
--no-default-search
--tarball-uniqueid

The script was re-structured to make it easier for follow.

Change-Id: I674be64bdde3ef310b6a551d4911c3b600ffee59

3 years agostrings/json: Add string delimter match, and object create with vars methods
Kevin Harwell [Thu, 21 Oct 2021 17:29:11 +0000 (12:29 -0500)] 
strings/json: Add string delimter match, and object create with vars methods

Add a function to check if there is an exact match a one string between
delimiters in another string.

Add a function that will create an ast_json object out of a list of
Asterisk variables. An excludes string can also optionally be passed
in.

Also, add a macro to make it easier to get object integers.

Change-Id: I5f34f18e102126aef3997f19a553a266d70d6226

3 years agoSTIR/SHAKEN: Option split and response codes.
Ben Ford [Tue, 21 Sep 2021 17:09:10 +0000 (12:09 -0500)] 
STIR/SHAKEN: Option split and response codes.

The stir_shaken configuration option now has 4 different choices to pick
from: off, attest, verify, and on. Off and on behave the same way they
do now. Attest will only perform attestation on the endpoint, and verify
will only perform verification on the endpoint.

Certain responses are required to be sent based on certain conditions
for STIR/SHAKEN. For example, if we get a Date header that is outside of
the time range that is considered valid, a 403 Stale Date response
should be sent. This and several other responses have been added.

Change-Id: I4ac1ecf652cd0e336006b0ca638dc826b5b1ebf7

3 years agoapp_queue: Add LoginTime field for member in a queue.
Rodrigo Ramírez Norambuena [Wed, 25 Aug 2021 13:15:59 +0000 (13:15 +0000)] 
app_queue: Add LoginTime field for member in a queue.

Add a time_t logintime to storage a time when a member is added into a
queue.

Also, includes show this time (in seconds) using a 'queue show' command
and the field LoginTime for response for AMI events.

ASTERISK-18069 #close

Change-Id: Ied6c3a300f78d78eebedeb3e16a1520fc3fff190

3 years agores_speech: Add a type conversion, and new engine unregister methods
Kevin Harwell [Thu, 21 Oct 2021 17:49:44 +0000 (12:49 -0500)] 
res_speech: Add a type conversion, and new engine unregister methods

Add a new function that converts a speech results type to a string.
Also add another function to unregister an engine, but returns a
pointer to the unregistered engine object instead of a success/fail
integer.

Change-Id: I0f7de17cb411021c09fb03988bc2b904e1380192

3 years agovarious: Fix GCC 11 compilation issues.
Mike Bradeen [Thu, 7 Oct 2021 18:07:24 +0000 (12:07 -0600)] 
various: Fix GCC 11 compilation issues.

test_voicemail_api: Use empty char* for empty_msg_ids.
chan_skinny: Fix size of calledParty to be maximum extension.
menuselect: Change Makefile to stop deprecated warnings. Added comments
test_linkedlist: 'bogus' variable was manually allocated from a macro
and the test fails if this happens but the compiler couldn't 'see' this
and returns a warning. memset to all 0's after allocation.
chan_ooh323: Fixed various indentation issues that triggered misleading
 indentation warnings.

ASTERISK-29682
Reported by: George Joseph

Change-Id: If4fe42222c8444dc16828a42731ee53b4ce5cbbe

3 years agoapps/app_playback.c: Add 'mix' option to app_playback
Shloime Rosenblum [Mon, 20 Sep 2021 16:10:59 +0000 (12:10 -0400)] 
apps/app_playback.c: Add 'mix' option to app_playback

I am adding a mix option that will play by filename and say.conf unlike
say option that will only play with say.conf. It
will look on the format of the name, if it is like say it play with
say.conf if not it will play the file name.

ASTERISK-29662

Change-Id: I815816916a308f0fa8f165140dc15772dcbd547a

3 years agoBuildSystem: Check for alternate openssl packages
George Joseph [Tue, 19 Oct 2021 16:35:26 +0000 (10:35 -0600)] 
BuildSystem: Check for alternate openssl packages

OpenSSL is one of those packages that often have alternatives
with later versions.  For instance, CentOS/EL 7 has an
openssl package at version 1.0.2 but there's an openssl11
package from the epel repository that has 1.1.1.  This gets
installed to /usr/include/openssl11 and /usr/lib64/openssl11.
Unfortunately, the existing --with-ssl and --with-crypto
./configure options expect to point to a source tree and
don't work in this situation.  Also unfortunately, the
checks in ./configure don't use pkg-config.

In order to make this work with the existing situation, you'd
have to run...
./configure --with-ssl=/usr/lib64/openssl11 \
    --with-crypto=/usr/lib64/openssl11 \
    CFLAGS=-I/usr/include/openssl11

BUT...  those options don't get passed down to bundled pjproject
so when you run make, you have to include the CFLAGS again
which is a big pain.

Oh...  To make matters worse, although you can specify
PJPROJECT_CONFIGURE_OPTS on the ./configure command line,
they don't get saved so if you do a make clean, which will
force a re-configure of bundled pjproject, those options
don't get used.

So...

* In configure.ac... Since pkg-config is installed by install_prereq
  anyway, we now use it to check for the system openssl >= 1.1.0.
  If that works, great.  If not, we check for the openssl11
  package. If that works, great.  If not, we fall back to just
  checking for any openssl.  If pkg-config isn't installed for some
  reason, or --with-ssl=<dir> or --with-crypto=<dir> were specified
  on the ./configure command line, we fall back to the existing
  logic that uses AST_EXT_LIB_CHECK().

* The whole OpenSSL check process has been moved up before
  THIRD_PARTY_CONFIGURE(), which does the initial pjproject
  bundled configure, is run.  This way the results of the above
  checks, which may result in new include or library directories,
  is included.

* Although not strictly needed for openssl, We now save the value of
  PJPROJECT_CONFIGURE_OPTS in the makeopts file so it can be used
  again if a re-configure is triggered.

ASTERISK-29693

Change-Id: I341ab7603e6b156aa15a66f43675ac5029d5fbde

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 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 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 agoUpdate CHANGES and UPGRADE.txt for 18.8.0
Asterisk Development Team [Wed, 13 Oct 2021 10:21:03 +0000 (05:21 -0500)] 
Update CHANGES and UPGRADE.txt for 18.8.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