From: Brian West Date: Thu, 20 Feb 2014 19:50:04 +0000 (-0600) Subject: FS-6164 I can see from this jira that this should be strcasecmp so SIP or sip are... X-Git-Tag: v1.5.8~25^2~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf70dcf47376b2724e71c7016b33a571fbdfb01;p=thirdparty%2Ffreeswitch.git FS-6164 I can see from this jira that this should be strcasecmp so SIP or sip are caught --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 96ec3eca1a..90aaaee1fc 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1835,7 +1835,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi char ref_to[1024] = ""; const char *var; - if (!strstr(msg->string_arg, "sip:")) { + if (!strcasecmp(msg->string_arg, "sip:")) { const char *format = strchr(tech_pvt->profile->sipip, ':') ? "sip:%s@[%s]" : "sip:%s@%s"; switch_snprintf(ref_to, sizeof(ref_to), format, msg->string_arg, tech_pvt->profile->sipip); } else {