Commit Graph

29858 Commits

Author SHA1 Message Date
Alexander Traud
d53a312a03 chan_ooh323: Avoid typecasting an int to unsigned short.
clang 5.0 warned about this.

ASTERISK-27577

Change-Id: I898fe4255023138a9e8b579fe4482fcf582f2b78
2018-01-12 04:05:14 -06:00
Alexander Traud
1d625a7428 install_prereq: Update Debian/Ubuntu libraries.
ASTERISK-27555

Change-Id: I0818b6e42631be1b69237e2b41d3415275693e53
2018-01-12 08:01:40 +01:00
Richard Mudgett
f35960d55b res_pjsip: Split type=identify to IP address and SIP header matching priorities
The type=identify endpoint identification method can match by IP address
and by SIP header.  However, the SIP header matching has limited
usefulness because you cannot specify the SIP header matching priority
relative to the IP address matching.  All the matching happens at the same
priority and the order of evaluating the identify sections is
indeterminate.  e.g., If you had two type=identify sections where one
matches by IP address for endpoint alice and the other matches by SIP
header for endpoint bob then you couldn't predict which endpoint is
matched when a request comes in that matches both.

* Extract the SIP header matching criteria into its own "header" endpoint
identification method so the user can specify the relative priority of the
SIP header and the IP address matching criteria in the global
endpoint_identifier_order option.  The "ip" endpoint identification method
now only matches by IP address.

ASTERISK-27491

Change-Id: I9df142a575b7e1e3471b7cda5d3ea156cef08095
2018-01-11 14:14:08 -06:00
Jenkins2
231caefd9b Merge "res_pjsip_endpoint_identifier_ip.c: Remove unnecessary requirement." into 13 2018-01-11 13:27:49 -06:00
Tzafrir Cohen
90b2dc1450 Ignore quilt .pc directory, used in deb packaging
Debian packaging uses quilt to manage patches. Book-keeping for them is
done using quilt (either directly, or in a compatible format), and
tracked in the directory .pc .

Change-Id: I22c90f3d7ab8918e6216e7b686de6fa0e1fdaa7b
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
2018-01-11 10:54:32 -06:00
Jenkins2
60a66b56a5 Merge "res_pjsip.c: Update the endpoint identification documentation." into 13 2018-01-11 08:18:11 -06:00
Jenkins2
1f1b8e85b0 Merge "stasis_endpoints: Remove silly usage of RAII_VAR." into 13 2018-01-11 07:53:20 -06:00
Joshua Colp
fab209e746 Merge "stasis_message_router: Remove silly usage of RAII_VAR." into 13 2018-01-11 07:28:58 -06:00
Jenkins2
8d642b8d07 Merge "stasis_system: Remove silly usage of RAII_VAR." into 13 2018-01-11 07:03:48 -06:00
Jenkins2
2697904f0e Merge "stasis: Remove silly usage of RAII_VAR." into 13 2018-01-11 06:36:16 -06:00
Jenkins2
6acabbeaca Merge "stasis_bridges: Remove silly usage of RAII_VAR." into 13 2018-01-11 06:10:18 -06:00
Jenkins2
7c4733bf7f Merge "stasis_cache: Remove silly usage of RAII_VAR." into 13 2018-01-11 05:46:07 -06:00
Jenkins2
ffec53b528 Merge "stasis_cache_pattern: Remove silly usage of RAII_VAR." into 13 2018-01-11 05:42:47 -06:00
Jenkins2
d72d6f6223 Merge "res_pjsip.c: Fix ident_to_str() and refactor ident_handler()." into 13 2018-01-10 17:10:59 -06:00
Corey Farrell
608112ced3 stasis: Remove silly usage of RAII_VAR.
Change-Id: Ib11193531e797bcb16bba560a408eab155f706d1
2018-01-10 17:09:04 -05:00
Joshua Colp
cdefdea1cc Merge "app_confbridge: Fix NULL check in action_kick_last." into 13 2018-01-10 08:11:53 -06:00
Joshua Colp
7f2d6f51ed Merge "res_pjsip_endpoint_identifier_ip.c: Allow multiple IdentifyDetail AMI events." into 13 2018-01-10 06:55:10 -06:00
Joshua Colp
a1eb5b06a8 Merge "res_stasis: Reduce RAII_VAR usage." into 13 2018-01-10 06:40:39 -06:00
Corey Farrell
b7c25740fa stasis_bridges: Remove silly usage of RAII_VAR.
Change-Id: I0fa7ab05454f183dc4ff10e26d18776d2b0fcf1f
2018-01-09 22:12:24 -05:00
Richard Mudgett
2e09ed3b18 res_pjsip.c: Update the endpoint identification documentation.
* Endpoint identify_by documentation.
* IP/Header endpoint identifier documentation.

Change-Id: Id92f00b495acca7be945daf749d2abd7f76a0b5a
2018-01-09 13:38:32 -06:00
Jenkins2
8e0f2c7379 Merge "Revert "codec_opus: Make libcurl a dependency in menuselect"" into 13 2018-01-09 13:33:15 -06:00
Richard Mudgett
dd6dee7e50 res_pjsip_endpoint_identifier_ip.c: Remove unnecessary requirement.
The requirement that "ip" must be in the endpoint identify_by list to
allow the type=identify method to identify the endpoint is not necessary.
The "ip" identifier method can match one and only one endpoint.  To even
work, the "ip" identifier method configuration must explicitly specify the
identified endpoint.  Therefore, why bother configuring the type=identify
identifier in the first place?  The requirement only adds the potential
for configuration errors for no benefit.  Even worse, those configuration
errors cannot be detected when the configuration loads.  The requirement
was introduced with the ASTERISK_27206 patch.

* Remove the code change that enforces the requiremnt.  Listing the "ip"
method in the identify_by value is simply documentation.

Change-Id: Ia057f92a33fb5d9f51dc5d5692e3d5ee1a6f2c11
2018-01-09 12:31:19 -06:00
Richard Mudgett
96040fa6bb res_pjsip.c: Fix ident_to_str() and refactor ident_handler().
* Extracted sip_endpoint_identifier_type2str() and
sip_endpoint_identifier_str2type() to simplify the calling functions.

* Fixed pjsip_configuration.c:ident_to_str() building the endpoint's
identify_by value string.

Change-Id: Ide876768a8d5d828b12052e2a75008b0563fc509
2018-01-09 12:18:03 -06:00
Richard Mudgett
a8a2f39f04 res_pjsip_endpoint_identifier_ip.c: Allow multiple IdentifyDetail AMI events.
The AMI PJSIPShowEndpoint action could only list one IdentifyDetail AMI
event per endpoint.  However, there is no reason that multiple
type=identify sections cannot identify the same endpoint.

* Reworked format_ami_endpoint_identify() to generate as many
IdentifyDetail AMI events as there are matching identifiers.

Change-Id: Ie146792aef72d78e05416ab5b27bc552a30399db
2018-01-09 12:01:14 -06:00
Corey Farrell
dedf0ff2bf stasis_cache: Remove silly usage of RAII_VAR.
Change-Id: Ifa95e5801c949df296c7e4376347730fb0ed52ef
2018-01-09 12:10:27 -05:00
Corey Farrell
8a6b3537b1 stasis_cache_pattern: Remove silly usage of RAII_VAR.
Change-Id: Ic98a51f555062cd863b6db3f8d76065943a9dea3
2018-01-09 12:09:08 -05:00
Corey Farrell
909e642918 stasis_endpoints: Remove silly usage of RAII_VAR.
Change-Id: Ic099dc552f36c353c89783a4bcfd09f010432733
2018-01-09 11:57:50 -05:00
Corey Farrell
bd11159dbc stasis_message_router: Remove silly usage of RAII_VAR.
Change-Id: I50d6ae230920e0b878ed9cc8f79eef746e06701d
2018-01-09 11:55:37 -05:00
Corey Farrell
975a38e524 stasis_system: Remove silly usage of RAII_VAR.
Change-Id: Iedbe5656cee68cd3a96a953558764aa02d4a0c3b
2018-01-09 11:53:28 -05:00
Alexander Traud
b45fb3a6ec translate: Avoid absolute value on unsigned substraction.
ast_format_get_sample_rate(.) returns an unsigned type. The difference of a
substraction between two unsigned types does not get implicitly converted to a
signed type. Therefore, using abs(.) did not make sense.

ASTERISK-27549

Change-Id: Ib904d9ee0d46b6fdd1476fbc464fbbf813304017
2018-01-09 10:45:57 -06:00
Sean Bright
1da8846ca7 Revert "codec_opus: Make libcurl a dependency in menuselect"
This reverts commit 028f4320de.

Change-Id: Ieb91f825cb55202a937f5361c01d356e7662b70c
2018-01-09 08:22:35 -06:00
Jenkins2
637f6216c4 Merge "res_pjsip.c: Fix endpoint identifier registration name search." into 13 2018-01-09 08:22:30 -06:00
Jenkins2
edbfcfcae1 Merge "BuildSystem: Really do not pass unknown-warning options to the compiler." into 13 2018-01-09 06:39:28 -06:00
Jenkins2
e8f81a2905 Merge "codec_gsm: Avoid shifting a negative signed value." into 13 2018-01-09 05:59:45 -06:00
Jenkins2
3a8744b59b Merge "res_pjsip_endpoint_identifier_ip.c: Fix apply identify validation." into 13 2018-01-09 05:51:17 -06:00
Jenkins2
29d96b46f0 Merge "BuildSystem: Find ptlib-config on Debian/Ubuntu." into 13 2018-01-09 05:38:15 -06:00
Corey Farrell
c67eb7031b app_confbridge: Fix NULL check in action_kick_last.
The check for last_user == NULL needs to happen before we dereference
the variable, previously it was possible for us to check flags of a NULL
last_user.

Change-Id: I274f737aa8af9d2d53e4a78cdd7ad57561003945
2018-01-08 18:58:33 -06:00
Corey Farrell
17480f6ea4 res_stasis: Reduce RAII_VAR usage.
In addition to being a micro-optimization (RAII_VAR has overhead), this
change improves output of REF_DEBUG.  Unfortunately when RAII_VAR calls
ao2_cleanup it does so from a generated _dtor_varname function.  For
example this caused _dtor_app to release a reference instead of
__stasis_app_unregister.

Change-Id: I4ce67120583a446babf9adeec678b71d37fcd9e5
2018-01-08 17:51:28 -06:00
Jenkins2
7cc614d223 Merge "res_stasis: Fix app_is_subscribed_bridge_id." into 13 2018-01-08 11:13:21 -06:00
Jenkins2
b6b1d73cb5 Merge "General: Avoid implicit conversion to char when changes value to negative." into 13 2018-01-08 06:32:29 -06:00
Jenkins2
d680ade35c Merge "editline: Avoid comparison between pointer and zero character constant." into 13 2018-01-08 05:52:55 -06:00
Jenkins2
776ec5765d Merge "pbx: Prevent execution of NULL pointer." into 13 2018-01-08 05:43:51 -06:00
Corey Farrell
c1acc4f364 res_stasis: Fix app_is_subscribed_bridge_id.
Instead of searching for bridge_id provided in an argument this function
always searched for BRIDGE_ALL first.  Rewrite this function to work
like the similar functions for channel and endpoint functions.

Change-Id: Ib5caca69e11727c5c8a7284a1d00621f40f1e60a
2018-01-07 22:00:54 -06:00
Jenkins2
eeb99efead Merge "General: Silence modules on (un)load." into 13 2018-01-07 16:43:26 -06:00
Jenkins2
5745f3489b Merge "chan_ooh323: Limit outgoinglimit to positive values as intended." into 13 2018-01-06 20:27:39 -06:00
Richard Mudgett
96348acbe8 Merge "ooh323cDriver: Fix typo in header guard." into 13 2018-01-06 20:16:21 -06:00
Alexander Traud
da1a9f392a General: Silence modules on (un)load.
Some (normally optional) modules created notices, warnings, and even errors
in normal situations like (un)load. This cluttered the command-line interface
(CLI) on start and while stopping gracefully. However, when an user went for
the script './contrib/scripts/install_prereq', those modules get compiled-in
because their prerequisites were met at compile time. Furthermore, because of
ASTERISK_27475, the former talkative module 'res_curl' is built as side-effect.

ASTERISK-27553

Change-Id: I9f105f46d72553994e820679bfde3478a551b281
2018-01-06 20:08:16 -06:00
Alexander Traud
aa52c52b21 BuildSystem: Really do not pass unknown-warning options to the compiler.
When an older GCC version is called with a too new warning option, GCC exited
with an error and Asterisk was not built. Therefore, the configure script tests
the installed compiler whether it supports that warning option. If not, Asterisk
does not pass it to the installed compiler. However, some compilers (like clang)
do not exit (error) but give just a warning in such a case. Because the compiler
did not exit, Asterisk passed the unknown-warning option.

ASTERISK-27560

Change-Id: Ia9b7747f649b27ff5e9f75c3db3fee4fe7a29621
2018-01-06 15:42:39 -06:00
Alexander Traud
9865e689d2 General: Avoid implicit conversion to char when changes value to negative.
clang 5.0 warned about this.

ASTERISK-27557

Change-Id: I7cceaa88e147cbdf81a3a7beec5c1c20210fa41e
2018-01-06 22:14:50 +01:00
Alexander Traud
a68da30069 editline: Avoid comparison between pointer and zero character constant.
gcc 7.2 warned about this.

ASTERISK-27559

Change-Id: I48960dda9cf0a11b6a9426f775e632363f8caa74
2018-01-06 06:46:19 -06:00