Commit e794d1ea authored by smorlat's avatar smorlat
Browse files

answer empty incoming SIP INFO requests.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@708 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent d3d482fc
No related merge requests found
Showing with 19 additions and 1 deletion
linphone-3.2.2 -- ?????????
* improve bitrate usage of speex codec
* allow speex to run with vbr (variable bit rate) mode
* add speex/32000 (ultra wide band speex codec)
* answer empty SIP INFO requests
linphone-3.2.1 -- October 5, 2009
* improve graphics and behaviour of mute button
* updated translations
......
......@@ -917,6 +917,7 @@ static void linphone_process_dtmf_relay(LinphoneCore *lc, eXosip_event_t *ev){
}
void linphone_call_message_new(LinphoneCore *lc, eXosip_event_t *ev){
osip_message_t *ans=NULL;
if (ev->request){
if (MSG_IS_INFO(ev->request)){
osip_content_type_t *ct;
......@@ -926,7 +927,18 @@ void linphone_call_message_new(LinphoneCore *lc, eXosip_event_t *ev){
linphone_process_media_control_xml(lc,ev);
else if (strcmp(ct->subtype,"dtmf-relay")==0)
linphone_process_dtmf_relay(lc,ev);
else ms_message("Unhandled SIP INFO.");
else {
ms_message("Unhandled SIP INFO.");
/*send an "Not implemented" answer*/
eXosip_call_build_answer(ev->tid,501,&ans);
if (ans)
eXosip_call_send_answer(ev->tid,501,ans);
}
}else{
/*empty SIP INFO, probably to test we are alive. Send an empty answer*/
eXosip_call_build_answer(ev->tid,200,&ans);
if (ans)
eXosip_call_send_answer(ev->tid,200,ans);
}
}
}else ms_warning("linphone_call_message_new: No request ?");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment