answer empty incoming SIP INFO requests.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@708 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2009-10-09 09:06:57 +00:00
parent d3d482fc87
commit e794d1eac8
2 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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 ?");