FS-6164 I can see from this jira that this should be strcasecmp so SIP or sip are caught

This commit is contained in:
Brian West 2014-02-20 13:50:04 -06:00
parent c679d98eb7
commit 8bf70dcf47
1 changed files with 1 additions and 1 deletions

View 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 {