chan_pjsip: Add support for passing hold and unhold requests through.
authorJoshua Colp <jcolp@digium.com>
Mon, 3 Nov 2014 14:45:01 +0000 (14:45 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 3 Nov 2014 14:45:01 +0000 (14:45 +0000)
commitac091d41844a9a4a0f7d539164bcd154351b6da7
tree84ec4d1350b4e6d1d1498c4ceabd2b5484f3947d
parent285be15aaf0469055d3392ecd73eb24395e49059
chan_pjsip: Add support for passing hold and unhold requests through.

This change adds an option, moh_passthrough, that when enabled will pass
hold and unhold requests through using a SIP re-invite. When placing on
hold a re-invite with sendonly will be sent and when taking off hold a
re-invite with sendrecv will be sent. This allows remote servers to handle
the musiconhold instead of the local Asterisk instance being responsible.

Review: https://reviewboard.asterisk.org/r/4103/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_pjsip.c
channels/pjsip/dialplan_functions.c
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/339e1dfa644d_add_moh_passthrough_option_to_pjsip.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
include/asterisk/res_pjsip_session.h
res/res_pjsip.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_sdp_rtp.c