Commit Graph

30082 Commits

Author SHA1 Message Date
Richard Mudgett
9021fb87d1 res_stasis_mailbox.c: Fix leak of mailbox container.
Change-Id: I7d33c1635713047e7d1597c9d882f7dc006d94b4
2017-11-03 12:17:56 -05:00
Corey Farrell
23bece8e69 Build System: Fix build failure caused by recent CLI improvements.
We use the editline library to help with filename completion in our CLI
interface.  Some systems failed to find the header when included from
loader.c.  This is fixed by setting the proper CFLAGS for the build of
loader.o.

ASTERISK-27378

Change-Id: Ib7fd496f1d7ed48141a2eadd5dd61cab2f2308be
2017-11-03 10:39:28 -05:00
Joshua Colp
2551b5a4ba Merge "res_pjsip: Add to list of valid characters for from_user." into 15 2017-11-03 08:42:03 -05:00
Joshua Colp
7d72b7bcf2 Merge "Modules: Additional improvements to CLI completion." into 15 2017-11-03 08:05:28 -05:00
Jenkins2
17c0dfade5 Merge "res/ari/resource_bridges.h: Update from 'make ari-stubs'." into 15 2017-11-02 14:04:59 -05:00
Ben Ford
5b13290522 res_pjsip: Add to list of valid characters for from_user.
Fixes a regression where some characters were unable to be used in
the from_user field of an endpoint. Additionally, the backtick was
removed from the list of valid characters, since it is not valid,
and it was replaced with a single quote, which is a valid character.

ASTERISK-27387

Change-Id: Id80c10a644508365c87b3182e99ea49da11b0281
2017-11-02 11:49:47 -05:00
Jenkins2
549e1edf8e Merge "core: Don't attempt to write to a stream that does not exist." into 15 2017-11-02 11:13:47 -05:00
Corey Farrell
af2947c013 Modules: Additional improvements to CLI completion.
Replace 'needsreload' argument with a 'type' argument to specify which
type of modules you want completion.  This provides more accurate CLI
completion for load and unload commands.

* 'module unload' now excludes modules that have active references or are
  not running.
* 'module load' now excludes modules that are already running.
* 'core set debug [atleast] <level> [module]' shows running modules only.

ASTERISK-27378

Change-Id: Iea3e00054461484196c46f688f02635cc886bad1
2017-11-02 08:29:47 -04:00
Joshua Colp
e9b53dcd9b core: Don't attempt to write to a stream that does not exist.
When a frame is provided to ast_write ensure that a multistream
capable channel has a stream for it before attempting to give it
to the channel driver. In some cases (such as a deferred SDP
negotiation) the stream may not yet exist.

ASTERISK-27364

Change-Id: Icf84ca982a67cdd6e9a71851eb7eb1bd0e865276
2017-11-02 07:34:46 -03:00
Corey Farrell
9897675b35 Add missing menuselect dependencies.
This adds menuselect dependencies for modules that use symbols of other
modules.

ASTERISK-27390

Change-Id: Ia2d2849f5b87a72af7324a82edc3f283eafb5385
2017-11-02 03:08:07 -04:00
Corey Farrell
a54313a87a res/ari/resource_bridges.h: Update from 'make ari-stubs'.
A comment was updated when I ran 'make ari-stubs'.

Change-Id: Ib5154ae3ad72aff53374c28ead540fe349c42175
2017-11-01 23:57:28 -04:00
Corey Farrell
ec92451748 Prevent unload of modules which implement an Optional API.
Once an Optional API module is loaded it should stay loaded.  Unloading
an optional API module runs the risk of a crash if something else is
using it.  This patch causes all optional API providers to tell the
module loader not to unload except at shutdown.

ASTERISK-27389

Change-Id: Ia07786fe655681aec49cc8d3d96e06483b11f5e6
2017-11-01 19:51:31 -05:00
Sean Bright
65c718ab50 pjsip_message_filter: Only do interface lookup for wildcard addresses.
Change-Id: Ie083987e69dc43b6861671c218cacacc11b2072f
2017-11-01 13:59:09 -05:00
Jenkins2
21b922b565 Merge "features: Bridge application's BRIDGERESULT not appropriately set" into 15 2017-11-01 08:07:45 -05:00
Kevin Harwell
ed1d77c481 features: Bridge application's BRIDGERESULT not appropriately set
The dialplan application "Bridge" was not setting the BRIDGERESULT to failure
when a failure did occur. Even worse if it did fail to join the bridge it would
still report success.

This patch now sets the BRIDGERESULT variable to an appropriate value for a
given condition state. Also, removed the value INCOMPATIBLE as a valid result
type since it is no longer used.

ASTERISK-27369 #close

Change-Id: I22588e7125a765edf35cff28c98ca143e9927554
2017-10-31 15:25:17 -05:00
Corey Farrell
906e0ef860 res_ari_channels: Fix reference leak in channel_state_invalid.
channel_state_invalid leaked a reference to the channel snapshot any
time it was aquired.

ASTERISK-27067 #close

Change-Id: I8c653f00416b39978513c5605c4be0f03b1df29a
2017-10-31 14:41:29 -04:00
Jenkins2
c8cfee06e4 Merge "core / pjsip: Add support for grouping streams together." into 15 2017-10-31 13:17:10 -05:00
Jenkins2
09f7a976bf Merge "ast_coredumper: allow setting asterisk binary explicitly" into 15 2017-10-31 07:23:32 -05:00
Jenkins2
cfca0022c7 Merge "Build System: Fix --disable-xmldoc option." into 15 2017-10-31 06:37:19 -05:00
Joshua Colp
4c4622ef64 Merge "Modules: Fix issues with CLI completion." into 15 2017-10-30 17:18:40 -05:00
Joshua Colp
046c250199 core / pjsip: Add support for grouping streams together.
In WebRTC streams (or media tracks in their world) can be grouped
together using the mslabel. This informs the browser that each
should be synchronized with each other.

This change extends the stream API so this information can
be stored with streams. The PJSIP support has been extended
to use the mslabel to determine grouped streams and store
this association on the streams. Finally when creating the
SDP the group information is used to cause each media stream
to use the same mslabel.

ASTERISK-27379

Change-Id: Id6299aa031efe46254edbdc7973c534d54d641ad
2017-10-30 22:09:59 +00:00
Jenkins2
92b61748be Merge "alembic: Add bundle column in ps_endpoints table" into 15 2017-10-30 11:43:58 -05:00
Jenkins2
f1e31c83a0 Merge "app_agent_spool: Fix typo in dtmf features usage desctiption" into 15 2017-10-30 11:30:07 -05:00
Joshua Colp
6e7b2bbf68 Merge "ast_coredumper: Add gzipping of binaries and display of signal info" into 15 2017-10-30 10:38:25 -05:00
Tzafrir Cohen
9834111f8b ast_coredumper: allow setting asterisk binary explicitly
Adds an extra option, --asterisk-bin=<path> to ast_coredumper. If
provided, the binary given to gdb will be the parameter, rather than
asterisk from the PATH.

ASTERISK-27380 #close

Change-Id: I25f5b91eb75059b0fb2f142e468c26b283b0a9f3
2017-10-30 09:59:19 -05:00
Florian Floimair
6325b73d26 alembic: Add bundle column in ps_endpoints table
The ps_endpoints table was missing the bundle column
introduced with the bundle feature in
commit 065c3005ad.

ASTERISK-27374 #close

Change-Id: Ic900f4f2c20f64b99ea898d50f5c0a7117472d46
2017-10-30 07:36:48 -06:00
Corey Farrell
57f5335278 Modules: Fix issues with CLI completion.
* Stop using ast_module_helper to check if a module is loaded, use
  ast_module_check instead (app_confbridge and app_meetme).
* Stop ast_module_helper from listing reload classes when needsreload
  was not requested.

ASTERISK-27378

Change-Id: Iaed8c1e4fcbeb242921dbac7929a0fe75ff4b239
2017-10-30 00:40:05 -05:00
Igor Goncharovskiy
8dfedbf3b1 app_agent_spool: Fix typo in dtmf features usage desctiption
Fix typo, that specify usage wrong option 'dtmf-features' for CHANNEL() function
instead of correct 'dtmf_features'

ASTERISK-27377 #close

Change-Id: I15ecc829c1035b359584673e12cdb5c9291ac930
2017-10-28 19:24:07 -05:00
Corey Farrell
4b7a565dc5 res_pjsip_pubsub: Resolve potential crash in allocate_subscription.
When allocate_subscription fails to initialize fields of the new sub it
calls destroy_subscription.

Change-Id: I5b79c915ec216dc00c13c1e4172137864a4bec85
2017-10-27 13:53:19 -05:00
Jenkins2
f5f80fae31 Merge "codec.c: Defensively check the returned samples." into 15 2017-10-27 09:39:36 -05:00
Jenkins2
3bfb6c1514 Merge "app_voicemail.c: Fix compiler warning with IMAP build." into 15 2017-10-27 08:48:57 -05:00
Jenkins2
ed1b6d6c69 Merge "res_pjsip: Add 'ip' as a valid option to 'identify_by' on endpoint." into 15 2017-10-26 18:27:31 -05:00
Richard Mudgett
abf1e0709c app_voicemail.c: Fix compiler warning with IMAP build.
ASTERISK-27181

Change-Id: Ic4468b49860bd7f67e922baf4c9e96828c184d17
2017-10-26 12:24:40 -05:00
Richard Mudgett
a510cda254 codec.c: Defensively check the returned samples.
Earlier versions of the codec_opus samples_count callback can return
negative error values on undecodable frames.  This resulted in a divide by
zero exception.

* Added a defensive check in ast_codec_samples_count() for a "negative"
samples count return value.  Log the event and set the count to zero.

ASTERISK-27194

Change-Id: Icf69350307ecbbc80a3d74de46af9bd80ea17819
2017-10-26 11:48:13 -05:00
George Joseph
760fab5e0b Merge "http.c: Fix http header send content." into 15 2017-10-25 14:58:08 -05:00
Joshua Colp
e77bee9fb5 res_pjsip: Add 'ip' as a valid option to 'identify_by' on endpoint.
When the identify_by option on an endpoint is set to ip it will
only be identified using the res_pjsip_endpoint_identifier_ip module.
This ensures that it is not mistakenly matched using the username of
the From header. To ensure behavior has not changed the default has
been changed to "username,ip" for the identify_by option.

ASTERISK-27206

Change-Id: I2170b86a7f7e221b4f00bf14aa1ef1ac5b050bbd
2017-10-25 18:13:46 +00:00
George Joseph
c552e94d7c ast_coredumper: Add gzipping of binaries and display of signal info
The --tarball-coredump option now creates a gzipped tarball of
coredumps processed, their results txt files and copies of
/etc/os-release, /usr/sbin/asterisk, /usr/lib(64)/libasterisk* and
/usr/lib(64)/asterisk as those files are needed to properly examine
the coredump.  The file will be named
/tmp/asterisk.<timestamp>.coredumps.tar.gz or
/tmp/asterisk-<uniqueid>.coredumps.tar.gz if --tarball-uniqueid was
specified.

Added dumps of *_siginfo to the top of the txt files so you can
tell what signal was invoked.

Change-Id: Ib9ee6d83592d4b1bc90cb3419a05376a88d1ded9
2017-10-25 12:28:11 -05:00
Ben Ford
373a1a9797 http.c: Fix http header send content.
Currently ast_http_send barricades a portion of the content that
needs to be sent in order to establish a connection for things
like the ARI client. The conditional and contents have been changed
to ensure that everything that needs to be sent, will be sent.

ASTERISK-27372

Change-Id: I8816d2d8f80f4fefc6dcae4b5fdfc97f1e46496d
2017-10-25 10:30:24 -05:00
Corey Farrell
ddcf98c0d3 Build System: Fix --disable-xmldoc option.
The configure option to disable XML documentation does not currently
work.  This patch makes it effective, but also causes an ABI change by
removing the ast_xmldoc_* symbols.  Disabling xmldoc also prevents docs
from being automatically generated, but they can still be manually
generated with 'make doc/core-en_US.xml'.

ASTERISK-26639

Change-Id: Ifac562340c09f80c83e0203de098fcac93bf8c44
2017-10-25 10:26:12 -05:00
Jenkins2
aa1c969942 Merge "chan_sip: Fix SUBSCRIBE with missing "Expires" header." into 15 2017-10-25 07:59:22 -05:00
Joshua Colp
b78d63c45e Merge "hashtab: Use ast_free." into 15 2017-10-25 07:30:07 -05:00
Joshua Colp
b8140176e7 Merge "res_pjsip_sdp_rtp: Fix setting of address type for rtp_ipv6" into 15 2017-10-25 06:44:27 -05:00
Joshua Colp
4990048d9d Merge "res_pjproject.c: Upgrade bundled PJPROJECT to 2.7" into 15 2017-10-25 05:26:14 -05:00
Jenkins2
cbd9263080 Merge "main/Makefile: Remove rule for non-existant testexpr2." into 15 2017-10-24 16:13:25 -05:00
Joshua Colp
ad7a185417 Merge "res_xmpp: Ensure the connection filter is available." into 15 2017-10-24 15:35:24 -05:00
Jenkins2
da359db93d Merge "lpc10: Avoid compiler warning when DONT_OPTIMIZE/COMPILE_DOUBLE." into 15 2017-10-24 15:00:02 -05:00
Joshua Colp
cad9079339 Merge "test_config: Fix failure and segfault when config_hook is run twice." into 15 2017-10-24 13:57:06 -05:00
Corey Farrell
c75a7351bd chan_sip: Fix SUBSCRIBE with missing "Expires" header.
When chan_sip receives a SUBSCRIBE request with no "Expires" header it
processes the request as an unsubscribe.  This is incorrect, per RFC3264
when the "Expires" header is missing a default expiry should be used.

ASTERISK-18140

Change-Id: Ibf6dcd4fdd07a32c2bc38be1dd557981f08188b5
2017-10-24 11:03:22 -05:00
Joshua Colp
558431635c Merge "chan_sip: Crypto attribute not last but first on SDP media level." into 15 2017-10-24 09:28:15 -05:00
Alexander Traud
24ed38129c lpc10: Avoid compiler warning when DONT_OPTIMIZE/COMPILE_DOUBLE.
ASTERISK-23556
Reported by: Marcello Ceschia

Change-Id: Ic27e88e0336a0d83877dc857938659dc5560b93c
2017-10-24 07:29:03 -05:00