Commit Graph

33255 Commits

Author SHA1 Message Date
George Joseph
a168011319 Cleanup deleted files 2024-02-20 05:47:54 -07:00
Asterisk Development Team
b5979e2cb4 Update for certified-18.9-cert7 certified-18.9-cert7 2023-12-20 16:19:20 +00:00
George Joseph
390a994e6c res_rtp_asterisk: Fix regression issues with DTLS client check
* Since ICE candidates are used for the check and pjproject is
  required to use ICE, res_rtp_asterisk was failing to compile
  when pjproject wasn't available.  The check is now wrapped
  with an #ifdef HAVE_PJPROJECT.

* The rtp->ice_active_remote_candidates container was being
  used to check the address on incoming packets but that
  container doesn't contain peer reflexive candidates discovered
  during negotiation. This was causing the check to fail
  where it shouldn't.  We now check against pjproject's
  real_ice->rcand array which will contain those candidates.

* Also fixed a bug in ast_sockaddr_from_pj_sockaddr() where
  we weren't zeroing out sin->sin_zero before returning.  This
  was causing ast_sockaddr_cmp() to always return false when
  one of the inputs was converted from a pj_sockaddr, even
  if both inputs had the same address and port.

Resolves: #500
Resolves: #503
Resolves: #505
2023-12-20 08:48:11 -07:00
Asterisk Development Team
35e0c6c0f4 Update for certified-18.9-cert6 certified-18.9-cert6 2023-12-14 20:04:12 +00:00
Gitea
22ae979dfc res_pjsip_header_funcs: Duplicate new header value, don't copy.
When updating an existing header the 'update' code incorrectly
just copied the new value into the existing buffer. If the
new value exceeded the available buffer size memory outside
of the buffer would be written into, potentially causing
a crash.

This change makes it so that the 'update' now duplicates
the new header value instead of copying it into the existing
buffer.
2023-12-14 12:03:39 -07:00
George Joseph
096819ec8a res_rtp_asterisk.c: Check DTLS packets against ICE candidate list
When ICE is in use, we can prevent a possible DOS attack by allowing
DTLS protocol messages (client hello, etc) only from sources that
are in the active remote candidates list.

Resolves: GHSA-hxj9-xwr8-w8pq
2023-12-14 12:03:28 -07:00
Ben Ford
11e772c642 manager.c: Prevent path traversal with GetConfig.
When using AMI GetConfig, it was possible to access files outside of the
Asterisk configuration directory by using filenames with ".." and "./"
even while live_dangerously was not enabled. This change resolves the
full path and ensures we are still in the configuration directory before
attempting to access the file.
2023-12-14 12:03:20 -07:00
Mike Bradeen
c4c0007b70 res_pjsip: disable raw bad packet logging
Add patch to split the log level for invalid packets received on the signaling port.
    The warning regarding the packet will move to level 2 so that it can still be displayed,
    while the raw packet will be at level 4.
2023-12-14 12:03:11 -07:00
Asterisk Development Team
b2a1aa2d10 Update for certified-18.9-cert5 certified-18.9-cert5 2023-07-07 19:38:32 +00:00
Sean Bright
58b865a6f3 apply_patches: Use globbing instead of file/sort.
This accomplishes the same thing as a `find ... | sort` but with the
added benefit of clarity and avoiding a call to a subshell.

Additionally drop the -s option from call to patch as it is not POSIX.
2023-07-07 13:31:53 -06:00
George Joseph
3a045074ff apply_patches: Sort patch list before applying
The apply_patches script wasn't sorting the list of patches in
the "patches" directory before applying them. This left the list
in an indeterminate order. In most cases, the list is actually
sorted but rarely, they can be out of order and cause dependent
patches to fail to apply.

We now sort the list but the "sort" program wasn't in the
configure scripts so we needed to add that and regenerate
the scripts as well.

Resolves: #193
2023-07-07 13:31:53 -06:00
George Joseph
7aaa1884ac bundled_pjproject: Backport security fixes from pjproject 2.13.1
Merge-pull-request-from-GHSA-9pfh-r8x4-w26w.patch
Merge-pull-request-from-GHSA-cxwq-5g9x-x7fr.patch
Locking-fix-so-that-SSL_shutdown-and-SSL_write-are-n.patch
Don-t-call-SSL_shutdown-when-receiving-SSL_ERROR_SYS.patch

Resolves: #188
2023-07-07 13:31:53 -06:00
George Joseph
72310e6b5d .github: Updates for AsteriskReleaser 2023-07-07 13:31:53 -06:00
Mike Bradeen
9a4a097b37 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
2023-07-07 13:31:53 -06:00
Mike Bradeen
2915ce3cb9 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
2023-07-07 13:31:53 -06:00
George Joseph
a46456ef44 .github: Back out triggering PROpenedOrUpdated by label 2023-07-07 13:31:53 -06:00
George Joseph
03c83527e5 .github: Move publish docs to new file CreateDocs.yml 2023-07-07 13:31:53 -06:00
George Joseph
5cc2629bf2 .github: Remove result check from PROpenUpdateGateTests 2023-07-07 13:31:53 -06:00
George Joseph
1e020207d1 .github: Fix use of 'contains' 2023-07-07 13:31:53 -06:00
George Joseph
ac53428da1 .github: Add recheck label test to additional jobs 2023-07-07 13:31:53 -06:00
George Joseph
7159cd2ad3 .github: Fix recheck label typos 2023-07-07 13:31:53 -06:00
George Joseph
6c9c68cb86 .github: Fix recheck label manipulation 2023-07-07 13:31:53 -06:00
George Joseph
af2abdbae6 .github: Allow PR submit checks to be re-run by label 2023-07-07 13:31:53 -06:00
Ben Ford
aba7168abe 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-07-07 13:31:53 -06:00
George Joseph
818e53184c test_statis_endpoints: Fix channel_messages test again 2023-07-07 13:31:53 -06:00
George Joseph
53d3f8892d 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-07-07 13:31:53 -06:00
George Joseph
86bad8f550 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-07-07 13:31:53 -06:00
George Joseph
aa87a29100 .github: Rework for merge approval 2023-07-07 13:31:53 -06:00
Ben Ford
0799c3d099 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-07-07 13:31:53 -06:00
George Joseph
c857cbc8f1 .github: Fix issues with cherry-pick-reminder 2023-07-07 13:31:53 -06:00
Mike Bradeen
79e4c7e370 indications: logging changes
Increase verbosity to indicate failure due to missing country
and to specify default on CLI dump

Resolves: #89
2023-07-07 13:31:53 -06:00
George Joseph
348228565d .github Ignore error when adding reviewrs to PR 2023-07-07 13:31:53 -06:00
George Joseph
6ba174263f .github: Update field descriptions for AsteriskReleaser 2023-07-07 13:31:53 -06:00
George Joseph
f26641b997 .github: Change title of AsteriskReleaser job 2023-07-07 13:31:53 -06:00
George Joseph
1971b06e04 .github: Don't add cherry-pick reminder if it's already present 2023-07-07 13:31:53 -06:00
George Joseph
8d59e19fce .github: Fix quoting in PROpenedOrUpdated 2023-07-07 13:31:53 -06:00
George Joseph
729542902d .github: Add cherry-pick reminder to new PRs 2023-07-07 13:31:53 -06:00
Sean Bright
a554cfe062 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-07-07 13:31:53 -06:00
Joshua C. Colp
31eeb9d068 .github: Tweak improvement issue type language. 2023-07-07 13:31:53 -06:00
Gitea
08c709d7c5 .github: Tweak new feature language, and move feature requests elsewhere. 2023-07-07 13:31:53 -06:00
Joshua C. Colp
1908567695 .github: Fix staleness check to only run on certain labels. 2023-07-07 13:31:53 -06:00
George Joseph
5cca713eda .github: Add AsteriskReleaser 2023-07-07 13:31:53 -06:00
Mike Bradeen
5d225cfa1c 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-07-07 13:31:53 -06:00
George Joseph
1ab4a01397 .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-07-07 13:31:53 -06:00
George Joseph
d34fb9d393 .github: Fix reference to CHERRY_PICK_TESTING_IN_PROGRESS 2023-07-07 13:31:53 -06:00
George Joseph
96b5db5d2c .github: Remove separate set labels step from new PR 2023-07-07 13:31:53 -06:00
George Joseph
2be80ff944 .github: Refactor CP progress and add new PR test progress 2023-07-07 13:31:53 -06:00
George Joseph
e3d18b6f45 .github: Add cherry-pick test progress labels 2023-07-07 13:31:52 -06:00
George Joseph
9875f3472e .github: Update issue templates 2023-07-07 13:31:52 -06:00
George Joseph
f0789ba2cb .github: Remove unnecessary parameter in CherryPickTest 2023-07-07 13:31:52 -06:00