//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