res_pjsip_sdp_rtp: include ice in ANSWER only if offered

Keep track if ICE candidates were in the SDP offer & only put them
in the corresponding SDP answer if the offer condaind ICE candidates

ASTERISK-27957 #close

Change-Id: Idf2597ee48e9a287e07aa4030bfa705430a13a92
This commit is contained in:
Torrey Searle
2018-07-09 11:42:11 +02:00
committed by Torrey Searle
parent df25563433
commit 1445384699
3 changed files with 37 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ struct ast_sip_session_media {
unsigned int locally_held:1;
/*! \brief Does remote support rtcp_mux */
unsigned int remote_rtcp_mux:1;
/*! \brief Does remote support ice */
unsigned int remote_ice:1;
/*! \brief Media type of this session media */
enum ast_media_type type;
/*! \brief The write callback when writing frames */