res/res_pjsip_sdp_rtp: Fix MOH transitions

Update the state of remote_hold immediately on receipt of remote
SDP so that the information is available when building the SDP
answer

ASTERISK-28754 #close

Change-Id: I7026032a807e9c95081cb8f060400b05deb4836f
This commit is contained in:
Torrey Searle
2020-02-24 16:00:08 +01:00
committed by Torrey Searle
parent 838583783f
commit 77c9ba8e63
2 changed files with 24 additions and 11 deletions

View File

@@ -89,6 +89,8 @@ struct ast_sip_session_media {
int timeout_sched_id;
/*! \brief Stream is on hold by remote side */
unsigned int remotely_held:1;
/*! \brief Stream is held by remote side changed during this negotiation*/
unsigned int remotely_held_changed:1;
/*! \brief Stream is on hold by local side */
unsigned int locally_held:1;
/*! \brief Does remote support rtcp_mux */