Commit 4da039cd authored by Simon Morlat's avatar Simon Morlat

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

parent 0b03d319
......@@ -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;
......
Markdown is supported
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