PJSIP: Add Path header support
authorKinsey Moore <kmoore@digium.com>
Wed, 15 Jan 2014 13:16:10 +0000 (13:16 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 15 Jan 2014 13:16:10 +0000 (13:16 +0000)
commit7cbb6eab15a29af562d1ef3f174f9af0b64b83b1
treef0f7a87a9ace19f0af7d1e158e645f848f4a5e27
parentaa9db707c56fa673560e25663f581954a66f3974
PJSIP: Add Path header support

This adds Path support to chan_pjsip in res_pjsip_path.c with minimal
additions in res_pjsip_registrar.c to store the path and additions in
res_pjsip_outbound_registration.c to enable advertisement of path
support to registrars and intervening proxies.

Path information is stored on contacts and is enabled via Address of
Record (AoRs) and Registration configuration sections.

While adding path support, it became necessary to be able to add SIP
supplements that handled messages outside of sessions, so a framework
for handling these types of hooks was added in parallel to the
already-existing session supplements and several senders of
out-of-dialog requests were refactored as a result.

(closes issue ASTERISK-21084)
Review: https://reviewboard.asterisk.org/r/3050/
........

Merged revisions 405565 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@405566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 files changed:
channels/chan_pjsip.c
contrib/ast-db-manage/config/versions/2fc7930b41b3_add_pjsip_endpoint_options_for_12_1.py [new file with mode: 0755]
include/asterisk/res_pjsip.h
include/asterisk/res_pjsip_session.h
res/res_pjsip.c
res/res_pjsip/location.c
res/res_pjsip/pjsip_distributor.c
res/res_pjsip/pjsip_options.c
res/res_pjsip_caller_id.c
res/res_pjsip_diversion.c
res/res_pjsip_header_funcs.c
res/res_pjsip_messaging.c
res/res_pjsip_mwi.c
res/res_pjsip_nat.c
res/res_pjsip_notify.c
res/res_pjsip_outbound_registration.c
res/res_pjsip_path.c [new file with mode: 0644]
res/res_pjsip_refer.c
res/res_pjsip_registrar.c
res/res_pjsip_session.c
res/res_pjsip_t38.c