mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
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
This commit is contained in:
@@ -609,6 +609,8 @@ struct ast_sip_endpoint {
|
||||
struct ast_variable *channel_vars;
|
||||
/*! Whether to place a 'user=phone' parameter into the request URI if user is a number */
|
||||
unsigned int usereqphone;
|
||||
/*! Whether to pass through hold and unhold using re-invites with recvonly and sendrecv */
|
||||
unsigned int moh_passthrough;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
@@ -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];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user