Commit Graph

28368 Commits

Author SHA1 Message Date
Alexander Traud
6078499b43 sip_to_pjsip: Write cos and tos.
When using the migration script sip_to_pjsip.py, both tos_sip and cos_sip got
missed, because of a typo. Therefore, cos and tos were not written to
pjsip.conf. Furthermore, that revealed a misuse of an internal function, caused
by a copy-and-paste error.

ASTERISK-22374

Change-Id: Id245ebadf70ab9776eb280c026288540af3af5c2
2016-08-18 08:23:42 -05:00
Alexander Traud
8c63306001 sip_to_pjsip: Add cert_file and ca_list_path.
When using the migration script sip_to_pjsip.py, cert_file and ca_list_path were
not migrated to pjsip.conf.

ASTERISK-22374

Change-Id: I4612877d190b7f86a48698cefbf5c4db6c265825
2016-08-18 08:22:51 -05:00
George Joseph
f87af89396 res_pjsip: Add contact_user to endpoint
contact_user, when specified on an endpoint, will override the user
portion of the Contact header on outgoing requests.

Change-Id: Icd4ebfda2f2e44d3ac749d0b4066630e988407d4
2016-08-17 16:21:02 -05:00
Richard Mudgett
d833ef6523 res_pjsip_session.c: Fix unbound srv failover tests.
Commit 1b666549f3 broke the srv failover
functionality if a TCP connection gets disconnected.  Under these
conditions, session_inv_on_state_changed() gets a
PJSIP_EVENT_TRANSPORT_ERROR and restarts the INVITE transaction on a new
transport.  Unfortunately, session_inv_on_tsx_state_changed() also gets
the same PJSIP_EVENT_TRANSPORT_ERROR event and unconditionally terminates
the session.

* Made session_inv_on_tsx_state_changed() complete terminating the session
on PJSIP_EVENT_TRANSPORT_ERROR only if the session state is still
PJSIP_INV_STATE_DISCONNECTED.

ASTERISK-26305 #close
Reported by: Richard Mudgett

Change-Id: If736e766b5c55b970fa38ca6c8a885caf27b897d
2016-08-17 14:13:56 -05:00
Alexander Traud
41e9bf60aa BuildSystem: Detect ca_list_path capabilities in external PJProject.
Since Asterisk 13.8, pj_ssl_cert_load_from_files2 got detected only in the
bundled PJProject but not in an external PJProject. Therefore, ca_list_path
could not be used in pjsip.conf. With this change, pj_ssl_cert_load_from_files2
is detected again to enable ca_list_path again.

ASTERISK-26303 #close

Change-Id: I4a4a0cdc5cdff33730911fb4cfc0498c069043d0
2016-08-17 06:24:14 -05:00
George Joseph
d938c18733 ari: Add documentation that path parameters are case-sensitive
Added to api.wiki.mustache so that the generated object pages
have the notation in the table header as well as under each method
that has path parameters.

ASTERISK-25492 #close

Change-Id: I36c46c6dc0c9ac350470394a999a1b19ef3fcdaf
2016-08-16 12:27:03 -05:00
Corey Farrell
ba91710bc4 Refactor usage pattern of xmldoc info tag.
This updates func_channel.c and main/message.c to use a generic xpointer
include instead of including info from each channel driver.  Now the
name attribute of info is CHANNEL or CHANNEL_EXAMPLES to be included in
documentation for func_channel.  Setting the name attribute of info to
MessageToInfo or MessageFromInfo causes it to be included in the
MessageSend application and AMI action.

Change-Id: I89fd8276a3250824241a618009714267d3a8d1ea
2016-08-16 10:42:31 -05:00
zuul
a50303cfc4 Merge "chan_sip: Fix lastrtprx always updated" into 14 2016-08-16 10:20:16 -05:00
zuul
72b102bab8 Merge "core: Entity ID is not set or invalid" into 14 2016-08-16 10:03:18 -05:00
Joshua Colp
1ae4b3c289 Merge "res_sorcery_config.c: Cleanup ao2 container usage idioms." into 14 2016-08-16 06:48:34 -05:00
Joshua Colp
9140f52df4 Merge "sorcery.c: Minor optimizations." into 14 2016-08-16 06:48:29 -05:00
Joshua Colp
7ec6a26dd6 Merge "sorcery.c: Tweak some container declaration formatting." into 14 2016-08-16 06:48:23 -05:00
Joshua Colp
251113408a Merge "manager: Add <see-also> tags to relate AoC events and actions" into 14 2016-08-16 05:34:19 -05:00
Joshua Colp
f21701b4a4 Merge "res_agi: Improve documentation" into 14 2016-08-16 05:34:00 -05:00
Joshua Colp
8de930b593 Merge "manager: Add <see-also> links between related events" into 14 2016-08-16 05:33:44 -05:00
Joshua Colp
5d32617a25 Merge "pbx.c: Additional fixes to ast_context_remove_extension_callerid2." into 14 2016-08-16 05:33:23 -05:00
zuul
01083e87e2 Merge "func_channel: Reorganize documentation" into 14 2016-08-16 01:21:15 -05:00
zuul
b8b9cee272 Merge "manager: Add <see-also> tags to relate UserEvent actions/apps/events" into 14 2016-08-15 23:04:33 -05:00
zuul
4b46e440df Merge "manager: Add <see-also> tags to relate Bridge related events,actions, and apps" into 14 2016-08-15 19:16:46 -05:00
zuul
cb6b69b53e Merge "manager: Add <see-also> tags to relate interrelated events/actions together" into 14 2016-08-15 18:48:53 -05:00
zuul
709f5f5bd4 Merge "app_dial: Improve documentation" into 14 2016-08-15 17:04:24 -05:00
cjack
19e323a6aa chan_sip: Fix lastrtprx always updated
Packets are read regulary, when there is no data in buffer fr->frametype
is AST_FRAME_NULL. There was no check of frametype and lastrtprx always 
updated and, therefore, rtptimeout did not work at all.

ASTERISK-25270 #close

Change-Id: If3b5ca0dbb822582a86eb7d01dcae4e83448c41d
2016-08-15 16:55:54 -05:00
Alexei Gradinari
811e7d7788 core: Entity ID is not set or invalid
The Exchanging Device and Mailbox States could not working
if the Entity ID (EID) is not set manually and can't be obtained
from ethernet interface.

This patch replaces debug message to warning
and addes missing description about option 'entityid' to
asterisk.conf.sample.

With this patch the asterisk also:
(1) decline loading the modules which won't work without EID:
    res_corosync and res_pjsip_publish_asterisk.
(2) warn if EID is empty on loading next modules:
    pbx_dundi, res_xmpp

Starting with v197 systemd/udev will automatically assign "predictable"
names for all local Ethernet interfaces.
This patch also addes some new ethernet prefixes "eno" and "ens".

ASTERISK-26164 #close

Change-Id: I72d712f1ad5b6f64571bb179c5cb12461e7c58c6
2016-08-15 13:35:39 -05:00
Richard Mudgett
840d274f4e res_sorcery_config.c: Cleanup ao2 container usage idioms.
Change-Id: Iad24b335fb121a2bc7f1d048ab7420569edcba5a
2016-08-15 13:14:21 -05:00
Richard Mudgett
2f8f063d0a sorcery.c: Minor optimizations.
* Remove some unused parameters from internal functions:
sorcery_wizard_create()
sorcery_wizard_update()
sorcery_wizard_delete()

* Created the struct sorcery_observer_invocation ao2 object without a lock
since it is not needed in sorcery_observer_invocation_alloc().

* Cleanup generic ao2 container sorcery object id hash, sort, and cmp
functions.

Change-Id: Iff71d75f52bc1b8cee955456838c149faaa4f92e
2016-08-15 13:14:21 -05:00
Richard Mudgett
aed60171f1 sorcery.c: Tweak some container declaration formatting.
* Tweak sorcery_object_type_alloc() formatting.
* Tweak ast_sorcery_init() formatting.

Change-Id: Ib02430023f15268cd7a2ea53f2c331213e4d3944
2016-08-15 13:14:21 -05:00
Corey Farrell
f7f9081f7a pbx.c: Additional fixes to ast_context_remove_extension_callerid2.
Do not check registrar of the first extension head.  We should only check
the registrar when we match the priority.

Additionally fix a couple calls to strcmp which used the input callerid
instead of the clean version ex.cidmatch.

ASTERISK-26233

Change-Id: I17ea6881a18f40840ae9c1f5394aab1fbb3769f1
2016-08-15 11:12:42 -05:00
Matt Jordan
7c46e3bfbb app_dial: Improve documentation
* Add some helpful <literal> and other embedded paragraph tags

* Document some of the lesser known channel variables set by Dial

* Add examples for some common Dial uses, along with some more
  challenging but useful options

Change-Id: Ib2fb9301e8e044d14fbb2815ec64161f19bbfbc1
2016-08-15 07:42:40 -05:00
Matt Jordan
2e77b973fb manager: Add <see-also> tags to relate interrelated events/actions together
Change-Id: Idbac539205aa732bf786c4f765577d8e9ff28ba4
2016-08-15 07:41:32 -05:00
Matt Jordan
18065140d5 manager: Add <see-also> tags to relate Bridge related events,actions, and apps
Change-Id: I67e6b79fa3102e494b5fe6cc7510472249080e85
2016-08-15 07:41:01 -05:00
Matt Jordan
f69ae95889 manager: Add <see-also> tags to relate AoC events and actions
Change-Id: Iea89a36222712148c1775c05ed0ad1049d67a70e
2016-08-15 07:40:46 -05:00
Matt Jordan
c5574667c7 manager: Add <see-also> tags to relate UserEvent actions/apps/events
Change-Id: I80f8a981f62f50e74609c69c49edcaca6c95efa4
2016-08-15 07:40:31 -05:00
Matt Jordan
1a44ebe8ec res_agi: Improve documentation
* Groups of AGI commands that have similar functionality now reference
  each other, and all reference the AGI application for ease of wiki
  reference.

* The documentation for the AGI application has been improved, in
  particular noting the various AGI types and how they are invoked.

* A warning message has been added to DeadAGI, noting that it is
  deprecated.

Change-Id: I479ccdee8a7393f01b18692c3d4ab7e6bdd1875d
2016-08-15 07:40:15 -05:00
Matt Jordan
3b3198333a manager: Add <see-also> links between related events
This patch adds some see-also references between related AMI events. It
focuses primarily on those events that are guaranteed to come in pairs,
such as DTMFBegin/DTMFEnd, as well as those that occur during the life
cycle of an Asterisk channel, such as Newchannel/Hangup.

Change-Id: Iaab600477052018d0f8c03d0c624c0856e9ff1f3
2016-08-15 07:39:51 -05:00
Matt Jordan
89dccb04bc func_channel: Reorganize documentation
* Following the example of the PJSIP channel driver, the channel
  technology specific documentation has been moved to the respective
  channel drivers that provide that functionality. This has the benefit
  of locating the documentation of items with those modules that provide
  it.

* Examples of using the CHANNEL function for both standard items as well
  as for PJSIP have been added.

* The 'max_forwards' standard item has been documented.

Change-Id: Ifaa79a232c8ac99cf8da6ef6cc7815d398b1b79b
2016-08-15 07:39:12 -05:00
Joshua Colp
2ce487585e manager: Clarify that dialplan manipulation actions are under system class.
ASTERISK-26246 #close

Change-Id: Id673b9786389f9d2a87f638ce1a25161f5f31657
2016-08-15 07:34:19 -05:00
zuul
0bb8366580 Merge "res_pjsip: Fail global load if debug or default_from_user are empty" into 14 2016-08-12 18:49:52 -05:00
zuul
f771e284eb Merge "res_pjsip_caller_id: Copy header name to short header name" into 14 2016-08-12 14:14:04 -05:00
zuul
906d0e72e1 Merge "Run mandatory cleanup when startup fails." into 14 2016-08-12 13:59:44 -05:00
zuul
488ea6b865 Merge "location.c: Misc fixes and cleanups." into 14 2016-08-12 12:06:13 -05:00
Joshua Colp
2153309241 Merge "app_queue: Prevent crash when a call is forwarded to an invalid location" into 14 2016-08-12 09:34:45 -05:00
Joshua Colp
7a6f943bf2 Merge "alembic: add auth_username to endpoint's identify_by enum" into 14 2016-08-12 04:47:07 -05:00
Joshua Colp
a4ba3d2b52 Merge "res_pjsip res_pjsip_mwi: Misc fixes and cleanups." into 14 2016-08-12 04:46:29 -05:00
zuul
15540119c0 Merge "pjsip_distributor.c: Add missing allocation failure check." into 14 2016-08-12 03:22:29 -05:00
zuul
d003057ff5 Merge "res_pjsip: Make aor named lock a mutex." into 14 2016-08-11 23:14:42 -05:00
Corey Farrell
03b80c5d27 Run mandatory cleanup when startup fails.
Errors during startup result in an exit.  These error branches should be
calling ast_run_atexit(0) to ensure mandatory cleanup is run.

ASTERISK-26267 #close

Change-Id: If226f2326ae2df7add20040696132214cf2bb680
2016-08-11 23:12:32 -04:00
zuul
6092514405 Merge "taskprocessor.c: Tweak high water checks." into 14 2016-08-11 21:17:56 -05:00
zuul
ef3973f57f Merge "res_odbc: Show only when there a fail attempt of connection in CLI" into 14 2016-08-11 21:17:54 -05:00
Joshua Colp
cf48c672af Merge "cdr_adaptive_odbc: Fix DNSs mixed config quote quoted_identifiers" into 14 2016-08-11 19:42:09 -05:00
Joshua Colp
968e78f9be Merge "autohints: Update CHANGES and extensions.conf.sample" into 14 2016-08-11 16:10:36 -05:00