From: Simon Morlat Date: Fri, 3 May 2013 12:36:21 +0000 (+0200) Subject: fix bug when comparing event name (there can be parameters) X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=4da039cd52a3258f6ce0c09a9a53da1026beadfb fix bug when comparing event name (there can be parameters) --- diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 222e7c32..0c1b1244 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -1653,7 +1653,7 @@ static void process_notify(Sal *sal, eXosip_event_t *ev){ //osip_content_type_t *ct=NULL; osip_message_get_body(ev->request,0,&body); //ct=osip_message_get_content_type(ev->request); - if (h->hvalue && strcasecmp(h->hvalue,"refer")==0){ + if (h->hvalue && strncasecmp(h->hvalue,"refer",strlen("refer"))==0){ /*special handling of refer events*/ if (body && body->body){ osip_message_t *msg;