Bug 884071 Signaling - stop setting video prefs when in SDP mode r=jesup

This commit is contained in:
Ethan Hugg 2013-06-22 19:59:25 -07:00
parent 0627a32e04
commit cfb015452b

View File

@ -631,13 +631,20 @@ processSessionEvent (line_t line_id, callid_t call_id, unsigned int event, sdp_d
char* data1 =(char*)ccData.info1;
long strtol_result;
char *strtol_end;
int sdpmode = 0;
CCAPP_DEBUG(DEB_L_C_F_PREFIX"event=%d data=%s",
DEB_L_C_F_PREFIX_ARGS(SIP_CC_PROV, call_id, line_id, fname), event,
((event == CC_FEATURE_KEYPRESS) ? "..." : data));
memset(&featdata, 0, sizeof(cc_feature_data_t));
updateVideoPref(event, line_id, call_id, video_pref);
config_get_value(CFGID_SDPMODE, &sdpmode, sizeof(sdpmode));
if (!sdpmode) {
updateVideoPref(event, line_id, call_id, video_pref);
}
switch(event) {
case CC_FEATURE_ONHOOK:
getLineIdAndCallId(&line_id, &call_id);