Commit Graph

33643 Commits

Author SHA1 Message Date
George Joseph
2b79fa0000 .github: Minor tweak to Asterisk Releaser
(cherry picked from commit f5cb01afaf)
2023-09-06 16:46:45 +00:00
George Joseph
7e78647093 .github: Suppress cherry-pick reminder for some situations
In PROpenedOrUpdated, the cherry-pick reminder will now be
suppressed if there are already valid 'cherry-pick-to' comments
in the PR or the PR contained a 'cherry-pick-to: none' comment.

(cherry picked from commit 53eb5ceae9)
2023-09-06 16:46:45 +00:00
Naveen Albert
69f5aed6f7 sig_analog: Allow immediate fake ring to be suppressed.
When immediate=yes on an FXS channel, sig_analog will
start fake audible ringback that continues until the
channel is answered. Even if it answers immediately,
the ringback is still audible for a brief moment.
This can be disruptive and unwanted behavior.

This adds an option to disable this behavior, though
the default behavior remains unchanged.

ASTERISK-30003 #close
Resolves: #118

UserNote: The immediatering option can now be set to no to suppress
the fake audible ringback provided when immediate=yes on FXS channels.

(cherry picked from commit 0d1ddb15db)
2023-09-06 16:46:45 +00:00
Asterisk Development Team
d24f6a7e06 Update for 18.19.0 18.19.0 2023-07-20 13:04:41 +00:00
Asterisk Development Team
04e79a0c6a Update for 18.19.0-rc2 18.19.0-rc2 2023-07-13 13:57:56 +00:00
George Joseph
fded9fc8a4 app.h: Move declaration of ast_getdata_result before its first use
The ast_app_getdata() and ast_app_getdata_terminator() declarations
in app.h were changed recently to return enum ast_getdata_result
(which is how they were defined in app.c).  The existing
declaration of ast_getdata_result in app.h was about 1000 lines
after those functions however so under certain circumstances,
a "use before declaration" error was thrown by the compiler.
The declaration of the enum was therefore moved to before those
functions.

Resolves: #200
2023-07-13 05:30:20 -06:00
George Joseph
d83ce210b2 doc: Remove obsolete CHANGES-staging and UPGRADE-staging 2023-07-13 05:30:03 -06:00
Asterisk Development Team
cbbe09859e Update for 18.19.0-rc1 18.19.0-rc1 2023-07-10 11:49:36 +00:00
George Joseph
672fc6dbb2 .github: Updates for AsteriskReleaser
(cherry picked from commit 378166230a)
2023-07-10 11:49:32 +00:00
Mike Bradeen
0337c76b4e app_voicemail: fix imap compilation errors
Fixes two compilation errors in app_voicemail_imap, one due to an unsed
variable and one due to a new variable added in the incorrect location
in _163.

Resolves: #174
(cherry picked from commit 5f01983abd)
2023-07-10 11:49:32 +00:00
Mike Bradeen
8963e154c8 res_musiconhold: avoid moh state access on unlocked chan
Move channel unlock to after moh state access to avoid
potential unlocked access to state.

Resolves: #133
(cherry picked from commit 98d8e9b943)
2023-07-10 11:49:32 +00:00
Mike Bradeen
427ee8b8e8 utils: add lock timestamps for DEBUG_THREADS
Adds last locked and unlocked timestamps as well as a
counter for the number of times the lock has been
attempted (vs locked/unlocked) to debug output printed
using the DEBUG_THREADS option.

Resolves: #110
(cherry picked from commit a0ce65e999)
2023-07-10 11:49:31 +00:00
George Joseph
06963eae62 .github: Back out triggering PROpenedOrUpdated by label
(cherry picked from commit 398a77894c)
2023-07-10 11:49:31 +00:00
George Joseph
5a0f2d026b .github: Move publish docs to new file CreateDocs.yml
(cherry picked from commit 58098d248b)
2023-07-10 11:49:31 +00:00
George Joseph
a3725fa61f rest-api: Updates for new documentation site
The new documentation site uses traditional markdown instead
of the Confluence flavored version.  This required changes in
the mustache templates and the python that generates the files.

(cherry picked from commit 812156edfd)
2023-07-10 11:49:31 +00:00
George Joseph
4aceecd3c2 .github: Remove result check from PROpenUpdateGateTests
(cherry picked from commit 248b0637ff)
2023-07-10 11:49:31 +00:00
George Joseph
472b3d4cfb .github: Fix use of 'contains'
(cherry picked from commit 3c0dd827d1)
2023-07-10 11:49:31 +00:00
George Joseph
7f36b9b938 .github: Add recheck label test to additional jobs
(cherry picked from commit 458312a24f)
2023-07-10 11:49:31 +00:00
George Joseph
f1efd72327 .github: Fix recheck label typos
(cherry picked from commit 5866e09654)
2023-07-10 11:49:31 +00:00
George Joseph
d3cb3776b3 .github: Fix recheck label manipulation
(cherry picked from commit 58eeb907dd)
2023-07-10 11:49:31 +00:00
George Joseph
14d4bccde2 .github: Allow PR submit checks to be re-run by label
(cherry picked from commit f747de39f4)
2023-07-10 11:49:31 +00:00
Olaf Titz
f33d5c2f1e app_voicemail_imap: Fix message count when IMAP server is unavailable
Some callers of __messagecount did not correctly handle error return,
instead returning a -1 message count.
This caused a notification with "Messages-Waiting: yes" and
"Voice-Message: -1/0 (0/0)" if the IMAP server was unavailable.

Fixes: #64
(cherry picked from commit 3b23ee4203)
2023-07-10 11:49:31 +00:00
Sean Bright
a12ca90a08 res_pjsip_rfc3326: Prefer Q.850 cause code over SIP.
Resolves: #116
(cherry picked from commit 897bb03de2)
2023-07-10 11:49:31 +00:00
Ben Ford
7fdff94861 res_pjsip_session: Added new function calls to avoid ABI issues.
Added two new functions (ast_sip_session_get_dialog and
ast_sip_session_get_pjsip_inv_state) that retrieve the dialog and the
pjsip_inv_state respectively from the pjsip_inv_session on the
ast_sip_session struct. This is due to pjproject adding a new field to
the pjsip_inv_session struct that caused crashes when trying to access
fields that were no longer where they were expected to be if a module
was compiled against a different version of pjproject.

Resolves: #145
(cherry picked from commit 23c4d21d1b)
2023-07-10 11:49:31 +00:00
Nathan Bruning
90fbc26bce app_queue: Add force_longest_waiting_caller option.
This adds an option 'force_longest_waiting_caller' which changes the
global behavior of the queue engine to prevent queue callers from
'jumping ahead' when an agent is in multiple queues.

Resolves: #108

Also closes old asterisk issues:
- ASTERISK-17732
- ASTERISK-17570

Change-Id: I0f84e27903fefbe2018d0afa2d67b23aa0b321ce
(cherry picked from commit c88a8aa8b0)
2023-07-10 11:49:31 +00:00
Sean Bright
070260a67c pjsip_transport_events.c: Use %zu printf specifier for size_t.
Partially resolves #143.

(cherry picked from commit c3abc4d536)
2023-07-10 11:49:31 +00:00
Sean Bright
188d779c47 res_crypto.c: Gracefully handle potential key filename truncation.
Partially resolves #143.

(cherry picked from commit e06bb85ad3)
2023-07-10 11:49:31 +00:00
Sean Bright
e6e0ec9105 configure: Remove obsolete and deprecated constructs.
These were uncovered when trying to run `bootstrap.sh` with Autoconf
2.71:

* AC_CONFIG_HEADER() is deprecated in favor of AC_CONFIG_HEADERS().
* AC_HEADER_TIME is obsolete.
* $as_echo is deprecated in favor of AS_ECHO() which requires an update
  to ax_pthread.m4.

Note that the generated artifacts in this commit are from Autoconf 2.69.

Resolves #139

(cherry picked from commit a36af23f20)
2023-07-10 11:49:31 +00:00
zhou_jiajian
adf49ebced res_fax_spandsp.c: Clean up a spaces/tabs issue
(cherry picked from commit e1f8dac6be)
2023-07-10 11:49:31 +00:00
Sean Bright
5d72ad35dc ast-db-manage: Synchronize revisions between comments and code.
In a handful of migrations, the comment header that indicates the
current and previous revisions has drifted from the identifiers
revision and down_revision variables. This updates the comment headers
to match the code.

(cherry picked from commit 03ba015f2e)
2023-07-10 11:49:31 +00:00
George Joseph
d155f0ec21 test_statis_endpoints: Fix channel_messages test again
(cherry picked from commit b096474f00)
2023-07-10 11:49:31 +00:00
Sean Bright
b2e1bcd07b res_crypto.c: Avoid using the non-portable ALLPERMS macro.
ALLPERMS is not POSIX and it's trivial enough to not jump through
autoconf hoops to check for it.

Fixes #149.

(cherry picked from commit 0642f4cb1d)
2023-07-10 11:49:31 +00:00
Jaco Kroon
4cc8497c61 tcptls: when disabling a server port, we should set the accept_fd to -1.
If we don't set this to -1 if the structure can be potentially re-used
later then it's possible that we'll issue a close() on an unrelated file
descriptor, breaking asterisk in other interesting ways.

I believe this to be an unlikely scenario, but it costs nothing to be
safe.

Signed-off-by: Jaco Kroon <jaco@uls.co.za>
(cherry picked from commit 4e657b6181)
2023-07-10 11:49:31 +00:00
Jiajian Zhou
5156156443 AMI: Add parking position parameter to Park action
Add a parking space extension parameter (ParkingSpace) to the Park action.
Park action will attempt to park the call to that extension.
If the extension is already in use, then execution will continue at the next priority.

UserNote: New ParkingSpace parameter has been added to AMI action Park.
(cherry picked from commit 84b48b6af1)
2023-07-10 11:49:31 +00:00
George Joseph
b59f9cbab7 test_stasis_endpoints.c: Make channel_messages more stable
The channel_messages test was assuming that stasis would return
messages in a specific order.  This is an incorrect assumption as
message ordering was never guaranteed.  This was causing the test
to fail occasionally.  We now test all the messages for the
required message types instead of testing one by one.

Resolves: #158
(cherry picked from commit 833543df0d)
2023-07-10 11:49:31 +00:00
George Joseph
a9da65d838 build: Fix a few gcc 13 issues
* gcc 13 is now catching when a function is declared as returning
  an enum but defined as returning an int or vice versa.  Fixed
  a few in app.h, loader.c, stasis_message.c.

* gcc 13 is also now (incorrectly) complaining of dangling pointers
  when assigning a pointer to a local char array to a char *. Had
  to change that to an ast_alloca.

Resolves: #155
(cherry picked from commit acb18c1fc4)
2023-07-10 11:49:31 +00:00
George Joseph
dc19ddfee0 .github: Rework for merge approval
(cherry picked from commit b3ded75e17)
2023-07-10 11:49:31 +00:00
Sean Bright
dd246737ac ast-db-manage: Fix alembic branching error caused by #122.
Fixes #147.

(cherry picked from commit 84d266d4f4)
2023-07-10 11:49:31 +00:00
alex2grad
cf2f3a1516 app_followme: fix issue with enable_callee_prompt=no (#88)
* app_followme: fix issue with enable_callee_prompt=no

If the FollowMe option 'enable_callee_prompt' is set to 'no' then Asterisk
incorrectly sets a winner channel to the channel from which any control frame was read.

This fix sets the winner channel only to the answered channel.

Resolves: #87

ASTERISK-30326

(cherry picked from commit 591351d4ad)
2023-07-10 11:49:31 +00:00
Sean Bright
fdec2a05de sounds: Update download URL to use HTTPS.
Related to #136

(cherry picked from commit ade23d24a0)
2023-07-10 11:49:31 +00:00
Miguel Angel Nubla
aec2e3b910 configure: Makefile downloader enable follow redirects.
If curl is used for building, any download such as a sounds package
will fail to follow HTTP redirects and will download wrong data.

Resolves: #136
(cherry picked from commit 4c2f035a35)
2023-07-10 11:49:31 +00:00
Naveen Albert
503217f049 res_musiconhold: Add option to loop last file.
Adds the loop_last option to res_musiconhold,
which allows the last audio file in the directory
to be looped perpetually once reached, rather than
circling back to the beginning again.

Resolves: #122
ASTERISK-30462

UserNote: The loop_last option in musiconhold.conf now
allows the last file in the directory to be looped once reached.

(cherry picked from commit 2b302e30e4)
2023-07-10 11:49:31 +00:00
Naveen Albert
88fd0ccd63 chan_dahdi: Fix Caller ID presentation for FXO ports.
Currently, the presentation for incoming channels is
always available, because it is never actually set,
meaning the channel presentation can be nonsensical.
If the presentation from the incoming Caller ID spill
is private or unavailable, we now update the channel
presentation to reflect this.

Resolves: #120
ASTERISK-30333
ASTERISK-21741

(cherry picked from commit 3260434b96)
2023-07-10 11:49:31 +00:00
Ben Ford
f02725de98 AMI: Add CoreShowChannelMap action.
Adds a new AMI action (CoreShowChannelMap) that takes in a channel name
and provides a list of all channels that are connected to that channel,
following local channel connections as well.

Resolves: #104

UserNote: New AMI action CoreShowChannelMap has been added.
(cherry picked from commit d6d77dc1fb)
2023-07-10 11:49:31 +00:00
Naveen Albert
0dbcc9370c sig_analog: Add fuller Caller ID support.
A previous change, ASTERISK_29991, made it possible
to send additional Caller ID parameters that were
not previously supported.

This change adds support for analog DAHDI channels
to now be able to receive these parameters for
on-hook Caller ID, in order to enhance the usability
of CPE that support these parameters.

Resolves: #94
ASTERISK-30331

UserNote: Additional Caller ID properties are now supported on
incoming calls to FXS stations, namely the
redirecting reason and call qualifier.

(cherry picked from commit f56477a604)
2023-07-10 11:49:30 +00:00
Joe Searle
08053123f1 res_stasis.c: Add new type 'sdp_label' for bridge creation.
Add new type 'sdp_label' when creating a bridge using the ARI. This will
add labels to the SDP for each stream, the label is set to the
corresponding channel id.

Resolves: #91

UserNote: When creating a bridge using the ARI the 'type' argument now
accepts a new value 'sdp_label' which will configure the bridge to add
labels for each stream in the SDP with the corresponding channel id.

(cherry picked from commit d417ab86e1)
2023-07-10 11:49:30 +00:00
Niklas Larsson
5fe7fd5577 app_queue: Preserve reason for realtime queues
When Asterisk is restarted it does not preserve paused reason for
members of realtime queues. This was fixed for non-realtime queues in
ASTERISK_25732

Resolves: #66

UpgradeNote: Add a new column to the queue_member table:
reason_paused VARCHAR(80) so the reason can be preserved.

UserNote: Make paused reason in realtime queues persist an
Asterisk restart. This was fixed for non-realtime
queues in ASTERISK_25732.

(cherry picked from commit 12fb5d8589)
2023-07-10 11:49:30 +00:00
George Joseph
32eda5dd8b .github: Fix issues with cherry-pick-reminder
(cherry picked from commit 4128a922e0)
2023-07-10 11:49:30 +00:00
Mike Bradeen
289d242f51 indications: logging changes
Increase verbosity to indicate failure due to missing country
and to specify default on CLI dump

Resolves: #89
(cherry picked from commit 4aa213d408)
2023-07-10 11:49:30 +00:00
George Joseph
5a9758afc9 .github Ignore error when adding reviewrs to PR
(cherry picked from commit 1ba39efc9e)
2023-07-10 11:49:30 +00:00