Commit Graph

33235 Commits

Author SHA1 Message Date
George Joseph
523474a2f3 .github: Fix recheck label typos 2023-06-26 07:22:09 -06:00
George Joseph
036951e21a .github: Fix recheck label manipulation 2023-06-26 07:11:58 -06:00
George Joseph
efa4b02a0d .github: Allow PR submit checks to be re-run by label 2023-06-26 07:08:07 -06:00
Ben Ford
8c76507b9f 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
2023-06-13 17:57:32 +00:00
George Joseph
7dfc190e23 test_statis_endpoints: Fix channel_messages test again 2023-06-12 08:37:56 -06:00
George Joseph
653aee2f13 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
2023-06-09 23:28:12 +00:00
George Joseph
8b93cd97e8 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 19:03:24 +00:00
George Joseph
2645b68a08 .github: Rework for merge approval 2023-06-08 13:34:50 -06:00
Ben Ford
1f32a01485 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:42 +00:00
George Joseph
1216508654 .github: Fix issues with cherry-pick-reminder 2023-06-05 10:38:31 -06:00
Mike Bradeen
5bfe94461a 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:57 +00:00
George Joseph
6c43294975 .github Ignore error when adding reviewrs to PR 2023-06-05 07:16:44 -06:00
George Joseph
7c5f7fffb3 .github: Update field descriptions for AsteriskReleaser 2023-05-26 08:52:03 -06:00
George Joseph
0c173be750 .github: Change title of AsteriskReleaser job 2023-05-23 08:05:06 -06:00
George Joseph
1077728ddc .github: Don't add cherry-pick reminder if it's already present 2023-05-22 12:55:06 -06:00
George Joseph
57e3390a81 .github: Fix quoting in PROpenedOrUpdated 2023-05-16 16:12:05 -06:00
George Joseph
6d71d8eea5 .github: Add cherry-pick reminder to new PRs 2023-05-15 09:38:03 -06:00
Sean Bright
e73e5f7ed4 core: Cleanup gerrit and JIRA references. (#40) (#61)
* 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-10 06:17:10 -06:00
Joshua C. Colp
10b40dad53 .github: Tweak improvement issue type language. 2023-05-09 10:47:43 -03:00
Gitea
a74ef79ce2 .github: Tweak new feature language, and move feature requests elsewhere. 2023-05-09 10:43:58 -03:00
Joshua C. Colp
3ef4c8a72c .github: Fix staleness check to only run on certain labels. 2023-05-09 06:18:33 -03:00
George Joseph
493c2debf8 .github: Add AsteriskReleaser 2023-05-08 11:01:57 -06:00
Mike Bradeen
61f4399082 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:07 +00:00
George Joseph
b9ad757aab .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:55 -06:00
George Joseph
e95eba5894 .github: Fix reference to CHERRY_PICK_TESTING_IN_PROGRESS 2023-05-02 14:10:15 -06:00
George Joseph
4b982965e9 .github: Remove separate set labels step from new PR 2023-05-02 12:11:48 -06:00
George Joseph
bcfaea4a8b .github: Refactor CP progress and add new PR test progress 2023-05-02 12:05:13 -06:00
George Joseph
8900c3f7a7 .github: Add cherry-pick test progress labels 2023-05-02 08:58:33 -06:00
George Joseph
04668ea95b .github: Update issue templates 2023-05-01 09:38:03 -06:00
George Joseph
d566b3e413 .github: Remove unnecessary parameter in CherryPickTest 2023-05-01 06:52:32 -06:00
George Joseph
f09894cddf Initial GitHub PRs 2023-04-28 12:31:57 -06:00
George Joseph
a7f6e3d674 Initial GitHub Issue Templates 2023-04-28 11:32:01 -06:00
George Joseph
fe9c904a65 test.c: Fix counting of tests and add 2 new tests
The unit test XML output was counting all registered tests as "run"
even when only a subset were actually requested to be run and
the "failures" attribute was missing.

* The "tests" attribute of the "testsuite" element in the
  output XML now reflects only the tests actually requested
  to be executed instead of all the tests registered.

* The "failures" attribute was added to the "testsuite"
  element.

Also added 2 new unit tests that just pass and fail to be
used for CI testing.

Change-Id: Ia137814b5aeb0e1a44c75034bd3615c26021da69
2023-04-10 08:53:46 -06:00
Mike Bradeen
0af1da68f1 res_mixmonitor: MixMonitorMute by MixMonitor ID
While it is possible to create multiple mixmonitor instances
on a channel, it was not previously possible to mute individual
instances.

This change includes the ability to specify the MixMonitorID
when calling the manager action: MixMonitorMute.  This will
allow an individual MixMonitor instance to be muted via id.
This id can be stored as a channel variable using the 'i'
MixMonitor option.

As part of this change, if no MixMonitorID is specified in
the manager action MixMonitorMute, Asterisk will set the mute
flag on all MixMonitor spy-type audiohooks on the channel.
This is done via the new audiohook function:
ast_audiohook_set_mute_all.

ASTERISK-30464

Change-Id: Ibba8c7e750577aa1595a24b23316ef445245be98
2023-03-20 09:23:47 -05:00
Mike Bradeen
d5f3db3e73 format_sln: add .slin as supported file extension
Adds '.slin' to existing supported file extensions:
.sln and .raw

ASTERISK-30465

Change-Id: Ice848addc03a64c8404b87cb5d3b13399c57e496
2023-03-20 09:06:01 -05:00
Mike Bradeen
450345386f bridge_builtin_features: add beep via touch variable
Add periodic beep option to one-touch recording by setting
the touch variable TOUCH_MONITOR_BEEP or
TOUCH_MIXMONITOR_BEEP to the desired interval in seconds.

If the interval is less than 5 seconds, a minimum of 5
seconds will be imposed.  If the interval is set to an
invalid value, it will default to 15 seconds.

A new test event PERIODIC_HOOK_ENABLED was added to the
func_periodic_hook hook_on function to indicate when
a hook is started.  This is so we can test that the touch
variable starts the hook as expected.

ASTERISK-30446

Change-Id: I800e494a789ba7a930bbdcd717e89d86040d6661
2023-03-16 15:44:27 -06:00
Mike Bradeen
1a649af1b1 cli: increase channel column width
For 'core show channels', the Channel name field is increased
to 64 characters and the Location name field is increased to
32 characters.

For 'core show channels verbose', the Channel name field is
increased to 80 characters, the Context is increased to 24
characters and the Extension is increased to 24 characters.

ASTERISK-30455

Change-Id: Ibec3742ce360ffc93bc56e9984c2a21dabc4d5e1
2023-03-13 14:51:04 -06:00
Mike Bradeen
7952316bf1 app_senddtmf: Add option to answer target channel.
Adds a new option to SendDTMF() which will answer the specified
channel if it is not already up. If no channel is specified, the
current channel will be answered instead.

ASTERISK-30422

Change-Id: Iddcbd501fcdf9fef0f453b7a8115a90b11f1d085
(cherry picked from commit f015d3e0cc)
2023-02-28 03:57:46 -06:00
Mike Bradeen
9e6a70b586 app_directory: Add a 'skip call' option.
Adds 's' option to skip calling the extension and instead set the
extension as DIRECTORY_EXTEN channel variable.

ASTERISK-30405

Change-Id: Ib9d9db1ba5b7524594c640461b4aa8f752db8299
2023-02-28 03:57:24 -06:00
Mike Bradeen
4bf3f6c04e app_read: Add an option to return terminator on empty digits.
Adds 'e' option to allow Read() to return the terminator as the
dialed digits in the case where only the terminator is entered.

ie; if "#" is entered, return "#" if the 'e' option is set and ""
if it is not.

ASTERISK-30411

Change-Id: I49f3221824330a193a20c660f99da0f1fc2cbbc5
2023-02-27 12:15:57 -06:00
Mike Bradeen
d334e0cf89 app_directory: add ability to specify configuration file
Adds option to app_directory to specify a filename from which to
read configuration instead of voicemail.conf ie;

same => n,Directory(,,c(directory.conf))

This configuration should contain a list of extensions using the
voicemail.conf format, ie;

2020=2020,Dog Dog,,,,attach=no|saycid=no|envelope=no|delete=no

ASTERISK-30404

Change-Id: Id58ccb1344ad1e563fa10db12f172fbd104a9d13
(cherry picked from commit ef6901e137)
2023-01-30 10:52:34 -06:00
Asterisk Development Team
8a6ee89571 Update for certified/18.9-cert4 certified-18.9-cert4 certified/18.9-cert4 2023-01-19 06:33:44 -05:00
George Joseph
dda609c9df res_pjsip_transport_websocket: Add remote port to transport
When Asterisk receives a new websocket conenction, it creates a new
pjsip transport for it and copies connection data into it.  The
transport manager then uses the remote IP address and port on the
transport to create a monitor for each connection.  However, the
remote port wasn't being copied, only the IP address which meant
that the transport manager was creating only 1 monitoring entry for
all websocket connections from the same IP address. Therefore, if
one of those connections failed, it deleted the transport taking
all the the connections from that same IP address with it.

* We now copy the remote port into the created transport and the
  transport manager behaves correctly.

ASTERISK-30369

Change-Id: Ib506d40897ea6286455ac0be4dfbb0ed43b727e1
2022-12-23 05:32:04 -07:00
Joshua C. Colp
c20750bbaf res_pjsip_transport_websocket: Also set the remote name.
As part of PJSIP 2.11 a behavior change was done to require
a matching remote hostname on an established transport for
secure transports. Since the Websocket transport is considered
a secure transport this caused the existing connection to not
be found and used.

We now set the remote hostname and the transport can be found.

ASTERISK-30065

Change-Id: Ia1cdef33e1411f927985b4b852c95e163c080e94
2022-12-23 05:31:55 -07:00
Alexandre Fournier
646a9a7ec6 res_geoloc: fix NULL pointer dereference bug
The `ast_geoloc_datastore_add_eprofile` function does not return 0 on
success, it returns the size of the underlying datastore. This means
that the datastore will be freed and its pointer set to NULL when no
error occured at all.

ASTERISK-30346

Change-Id: Iea9b209bd1244cc57b903b9496cb680c356e4bb9
2022-12-13 10:32:27 -05:00
Asterisk Development Team
1196d4b5d3 Update for certified/18.9-cert3 certified/18.9-cert3 2022-12-01 15:11:36 -05:00
Asterisk Development Team
4e9c0bc880 Update CHANGES and UPGRADE.txt for certified/18.9-cert3 2022-12-01 14:54:03 -05:00
Asterisk Development Team
28a23f6595 Update for certified/18.9-cert3 2022-12-01 13:52:55 -06:00
Mike Bradeen
de142180a3 ooh323c: not checking for IE minimum length
When decoding q.931 encoded calling/called number
now checking for length being less than minimum required.

ASTERISK-30103

Change-Id: I3dcfce0f35eca258dc450f87c92d4d7af402c2e7
2022-12-01 11:55:57 -06:00
Mike Bradeen
2285ffd5eb manager: prevent file access outside of config dir
Add live_dangerously flag to manager and use this flag to
determine if a configuation file outside of AST_CONFIG_DIR
should be read.

ASTERISK-30176

Change-Id: I46b26af4047433b49ae5c8a85cb8cda806a07404
2022-12-01 11:54:17 -06:00