]> sjero.net Git - linphone/commitdiff
fix bug when comparing event name (there can be parameters)
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 3 May 2013 12:36:21 +0000 (14:36 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 3 May 2013 12:36:21 +0000 (14:36 +0200)
coreapi/sal_eXosip2.c

index 222e7c329a0df37786bfecc793fe04bd9ae3be72..0c1b12445a963151d98aa1be378e28cfd60e5b10 100644 (file)
@@ -1653,7 +1653,7 @@ static void process_notify(Sal *sal, eXosip_event_t *ev){
                //osip_content_type_t *ct=NULL;\r
                osip_message_get_body(ev->request,0,&body);\r
                //ct=osip_message_get_content_type(ev->request);\r
-               if (h->hvalue && strcasecmp(h->hvalue,"refer")==0){\r
+               if (h->hvalue && strncasecmp(h->hvalue,"refer",strlen("refer"))==0){\r
                        /*special handling of refer events*/\r
                        if (body && body->body){\r
                                osip_message_t *msg;\r