case 480:\r
error=SalErrorFailure;\r
sr=SalReasonTemporarilyUnavailable;\r
+ break;\r
case 486:\r
error=SalErrorFailure;\r
sr=SalReasonBusy;\r
//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
* the exosip lock in a non blocking way, and give up if it takes too long*/\r
while (eXosip_trylock()!=0){\r
ms_usleep(100000);\r
+ tries++;\r
if (tries>30) {/*after 3 seconds, give up*/\r
ms_warning("Could not obtain exosip lock in a reasonable time, giving up.");\r
return -1;\r