summaryrefslogtreecommitdiff
path: root/include/asterisk/res_pjsip_session.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-11-03 14:45:01 +0000
committerJoshua Colp <jcolp@digium.com>2014-11-03 14:45:01 +0000
commitac091d41844a9a4a0f7d539164bcd154351b6da7 (patch)
tree84ec4d1350b4e6d1d1498c4ceabd2b5484f3947d /include/asterisk/res_pjsip_session.h
parent285be15aaf0469055d3392ecd73eb24395e49059 (diff)
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
Diffstat (limited to 'include/asterisk/res_pjsip_session.h')
-rw-r--r--include/asterisk/res_pjsip_session.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/res_pjsip_session.h b/include/asterisk/res_pjsip_session.h
index d50b43179..887d52a1a 100644
--- a/include/asterisk/res_pjsip_session.h
+++ b/include/asterisk/res_pjsip_session.h
@@ -75,8 +75,10 @@ struct ast_sip_session_media {
struct ast_sdp_srtp *srtp;
/*! \brief The media transport in use for this stream */
pj_str_t transport;
- /*! \brief Stream is on hold */
- unsigned int held:1;
+ /*! \brief Stream is on hold by remote side */
+ unsigned int remotely_held:1;
+ /*! \brief Stream is on hold by local side */
+ unsigned int locally_held:1;
/*! \brief Stream type this session media handles */
char stream_type[1];
};