fix bug when comparing event name (there can be parameters)

This commit is contained in:
Simon Morlat 2013-05-03 14:36:21 +02:00
parent 0b03d31909
commit 4da039cd52

View file

@ -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;