Commit Graph

33598 Commits

Author SHA1 Message Date
George Joseph
acb18c1fc4 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
2023-06-09 18:19:46 +00:00
George Joseph
b3ded75e17 .github: Rework for merge approval 2023-06-08 13:34:45 -06:00
Sean Bright
84d266d4f4 ast-db-manage: Fix alembic branching error caused by #122.
Fixes #147.
2023-06-06 10:14:06 +00:00
alex2grad
591351d4ad 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
2023-06-05 13:07:35 -06:00
Sean Bright
ade23d24a0 sounds: Update download URL to use HTTPS.
Related to #136
2023-06-05 18:44:55 +00:00
Miguel Angel Nubla
4c2f035a35 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
2023-06-05 18:38:13 +00:00
Naveen Albert
2b302e30e4 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.
2023-06-05 18:35:57 +00:00
Naveen Albert
3260434b96 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
2023-06-05 18:34:10 +00:00
Ben Ford
d6d77dc1fb 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.
2023-06-05 18:30:41 +00:00
Naveen Albert
f56477a604 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.
2023-06-05 18:28:59 +00:00
Joe Searle
d417ab86e1 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.
2023-06-05 18:27:17 +00:00
Niklas Larsson
12fb5d8589 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.
2023-06-05 18:20:21 +00:00
George Joseph
4128a922e0 .github: Fix issues with cherry-pick-reminder 2023-06-05 10:38:25 -06:00
Mike Bradeen
4aa213d408 indications: logging changes
Increase verbosity to indicate failure due to missing country
and to specify default on CLI dump

Resolves: #89
2023-06-05 13:31:55 +00:00
George Joseph
1ba39efc9e .github Ignore error when adding reviewrs to PR 2023-06-05 07:16:38 -06:00
George Joseph
a2280e1767 .github: Update field descriptions for AsteriskReleaser 2023-05-26 08:51:57 -06:00
Naveen Albert
8a03ed6877 callerid: Allow specifying timezone for date/time.
The Caller ID generation routine currently is hardcoded
to always use the system time zone. This makes it possible
to optionally specify any TZ-format time zone.

Resolves: #98
ASTERISK-30330
2023-05-25 16:47:46 +00:00
Maximilian Fridrich
a4cd452246 chan_pjsip: Allow topology/session refreshes in early media state
With this change, session modifications in the early media state are
possible if the SDP was sent reliably and confirmed by a PRACK. For
details, see RFC 6337, escpecially section 3.2.

Resolves: #73
2023-05-25 15:16:01 +00:00
Naveen Albert
d496544d7b chan_dahdi: Fix broken hidecallerid setting.
The hidecallerid setting in chan_dahdi.conf currently
is broken for a couple reasons.

First, the actual code in sig_analog to "allow" or "block"
Caller ID depending on this setting improperly used
ast_set_callerid instead of updating the presentation.
This issue was mostly fixed in ASTERISK_29991, and that
fix is carried forward to this code as well.

Secondly, the hidecallerid setting is set on the DAHDI
pvt but not carried forward to the analog pvt properly.
This is because the chan_dahdi config loading code improperly
set permhidecallerid to permhidecallerid from the config file,
even though hidecallerid is what is actually set from the config
file. (This is done correctly for call waiting, a few lines above.)
This is fixed to read the proper value.

Thirdly, in sig_analog, hidecallerid is set to permhidecallerid
only on hangup. This can lead to potential security vulnerabilities
as an allowed Caller ID from an initial call can "leak" into subsequent
calls if no hangup occurs between them. This is fixed by setting
hidecallerid to permcallerid when calls begin, rather than when they end.
This also means we don't need to also set hidecallerid in chan_dahdi.c
when copying from the config, as we would have to otherwise.

Fourthly, sig_analog currently only allows dialing *67 or *82 if
that would actually toggle the presentation. A comment is added
clarifying that this behavior is okay.

Finally, a couple log messages are updated to be more accurate.

Resolves: #100
ASTERISK-30349 #close
2023-05-25 14:50:04 +00:00
George Joseph
714cb00504 .github: Change title of AsteriskReleaser job 2023-05-23 08:04:59 -06:00
Naveen Albert
67d20b8fd8 asterisk.c: Fix option warning for remote console.
Commit 09e989f972
categorized the T option as not being compatible
with remote consoles, but they do affect verbose
messages with remote console. This fixes this.

Resolves: #102
2023-05-22 19:01:01 +00:00
George Joseph
fd98c6cd10 .github: Don't add cherry-pick reminder if it's already present 2023-05-22 12:55:01 -06:00
George Joseph
2c7304e416 .github: Fix quoting in PROpenedOrUpdated 2023-05-16 16:11:58 -06:00
George Joseph
1115b327f9 .github: Add cherry-pick reminder to new PRs 2023-05-15 09:38:01 -06:00
Jaco Kroon
3067977eac configure: fix test code to match gethostbyname_r prototype.
This enables the test to work with CC=clang.

Without this the test for 6 args would fail with:

utils.c:99:12: error: static declaration of 'gethostbyname_r' follows non-static declaration
static int gethostbyname_r (const char *name, struct hostent *ret, char *buf,
           ^
/usr/include/netdb.h:177:12: note: previous declaration is here
extern int gethostbyname_r (const char *__restrict __name,
           ^

Fixing the expected return type to int sorts this out.

Signed-off-by: Jaco Kroon <jaco@uls.co.za>
2023-05-15 07:01:13 -06:00
Sean Bright
3e2a28fc3d res_pjsip_pubsub.c: Use pjsip version for pending NOTIFY check. (#76)
The functionality we are interested in is present only in pjsip 2.13
and newer.

Resolves: #45
2023-05-11 14:24:30 -06:00
zhengsh
5e16557127 res_sorcery_memory_cache.c: Fix memory leak
Replace the original call to ast_strdup with a call to ast_strdupa to fix the leak issue.

Resolves: #55
ASTERISK-30429
2023-05-11 20:23:02 +00:00
Sean Bright
573bdbe924 xml.c: Process XML Inclusions recursively.
If processing an XInclude results in new <xi:include> elements, we
need to run XInclude processing again. This continues until no
replacement occurs or an error is encountered.

There is a separate issue with dynamic strings (ast_str) that will be
addressed separately.

Resolves: #65
2023-05-11 19:04:47 +00:00
Joshua C. Colp
8e562cea88 .github: Tweak improvement issue type language. 2023-05-09 10:47:33 -03:00
Gitea
e1b29b636c .github: Tweak new feature language, and move feature requests elsewhere. 2023-05-09 10:43:48 -03:00
Joshua C. Colp
d7b647e97f .github: Fix staleness check to only run on certain labels. 2023-05-09 06:18:25 -03:00
George Joseph
2392a5bb74 .github: Add AsteriskReleaser 2023-05-08 11:01:50 -06:00
Henning Westerholt
8711c84e3c chan_pjsip: also return all codecs on empty re-INVITE for late offers
We should also return all codecs on an re-INVITE without SDP for a
call that used late offer (e.g. no SDP in the initial INVITE, SDP
in the ACK). Bugfix for feature introduced in ASTERISK-30193
(https://issues.asterisk.org/jira/browse/ASTERISK-30193)

Migration from previous gerrit change that was not merged.
2023-05-04 14:56:55 +00:00
Mike Bradeen
fa18f2d71e cel: add local optimization begin event
The current AST_CEL_LOCAL_OPTIMIZE event is and has been
triggered on a local optimization end to serve as a flag
indicating the event occurred.  This change adds a second
AST_CEL_LOCAL_OPTIMIZE_BEGIN event for further detail.

Resolves: #52

UpgradeNote: The existing AST_CEL_LOCAL_OPTIMIZE can continue
to be used as-is and the AST_CEL_LOCAL_OPTIMIZE_BEGIN event
can be ignored if desired.

UserNote: The new AST_CEL_LOCAL_OPTIMIZE_BEGIN can be used
by itself or in conert with the existing
AST_CEL_LOCAL_OPTIMIZE to book-end local channel optimizaion.
2023-05-04 14:53:06 +00:00
Sean Bright
6f218514fb core: Cleanup gerrit and JIRA references. (#40)
* Remove .gitreview and switch to pulling the main asterisk branch
  version from configure.ac instead.

* Replace references to JIRA with GitHub.

* Other minor cleanup found along the way.

Resolves: #39
2023-05-03 09:39:14 -06:00
George Joseph
49abb48678 .github: Fix CherryPickTest to only run when it should
Fixed CherryPickTest so it triggers only on the
"cherry-pick-test" label instead of all labels.
2023-05-03 09:30:49 -06:00
George Joseph
f508ae9c63 .github: Fix reference to CHERRY_PICK_TESTING_IN_PROGRESS 2023-05-02 14:10:09 -06:00
George Joseph
135764959e .github: Remove separate set labels step from new PR 2023-05-02 12:11:43 -06:00
George Joseph
0395ee4760 .github: Refactor CP progress and add new PR test progress 2023-05-02 12:05:07 -06:00
Maximilian Fridrich
ecd5f91125 res_pjsip: mediasec: Add Security-Client headers after 401
When using mediasec, requests sent after a 401 must still contain the
Security-Client header according to
draft-dawes-sipcore-mediasec-parameter.

Resolves: #48
2023-05-02 15:19:57 +00:00
George Joseph
eece5824aa .github: Add cherry-pick test progress labels 2023-05-02 08:58:27 -06:00
Joshua C. Colp
f85587815f LICENSE: Update link to trademark policy.
Resolves: #43
2023-05-02 14:18:07 +00:00
InterLinked1
5d1dd11143 chan_dahdi: Add dialmode option for FXS lines. (#36)
Currently, both pulse and tone dialing are always enabled
on all FXS lines, with no way of disabling one or the other.

In some circumstances, it is desirable or necessary to
disable one of these, and this behavior can be problematic.

A new "dialmode" option is added which allows setting the
methods to support on a per channel basis for FXS (FXO
signalled lines). The four options are "both", "pulse",
"dtmf"/"tone", and "none".

Additionally, integration with the CHANNEL function is
added so that this setting can be updated for a channel
during a call.

Resolves: #35
ASTERISK-29992

UserNote: A "dialmode" option has been added which allows
specifying, on a per-channel basis, what methods of
subscriber dialing (pulse and/or tone) are permitted.

Additionally, this can be changed on a channel
at any point during a call using the CHANNEL
function.
2023-05-02 08:05:12 -06:00
George Joseph
a8a0adcdda .github: Update issue templates 2023-05-01 09:38:02 -06:00
George Joseph
f4a3012619 .github: Remove unnecessary parameter in CherryPickTest 2023-05-01 06:52:32 -06:00
George Joseph
ac403ec484 Initial GitHub PRs 2023-04-28 12:31:34 -06:00
George Joseph
790f208c6e Initial GitHub Issue Templates 2023-04-28 11:31:28 -06:00
Joshua C. Colp
f5c9f7d3c8 pbx_dundi: Fix PJSIP endpoint configuration check.
ASTERISK-28233

Change-Id: I0f11c096b307a6178e22ca49d9c756343f0e1fdc
2023-04-13 06:35:17 -03:00
Joshua Colp
a8ce41b7f7 Revert "app_queue: periodic announcement configurable start time."
This reverts commit c405630810.

Reason for revert: Causes segmentation fault.

Change-Id: Ib0c8c592f8d4f0a5e3889aeadfe8bdcde800ba42
2023-04-12 04:55:10 -05:00
Naveen Albert
4e602a1afe pbx_dundi: Add PJSIP support.
Adds PJSIP as a supported technology to DUNDi.

To facilitate this, we now allow an endpoint to be specified
for outgoing PJSIP calls. We also allow users to force a specific
channel technology for outgoing SIP-protocol calls.

ASTERISK-28109 #close
ASTERISK-28233 #close

Change-Id: I2e28e5a5d007bd49e3df113ad567b011103899bf
2023-04-10 14:38:18 -05:00