]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6164 I can see from this jira that this should be strcasecmp so SIP or sip are...
authorBrian West <brian@freeswitch.org>
Thu, 20 Feb 2014 19:50:04 +0000 (13:50 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 20 Feb 2014 19:50:04 +0000 (13:50 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 96ec3eca1a2bf0159b2acdfffce8f49338155faa..90aaaee1fccf65d77cfa933b8944204602272365 100644 (file)
@@ -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 {