FS-5185 --resolve

This commit is contained in:
Jeff Lenk 2013-03-22 08:40:45 -05:00
parent 65ba846a30
commit 5406fb8a11

View File

@ -3869,19 +3869,14 @@ static void actual_message_query_handler(switch_event_t *event)
char *id, *domain; char *id, *domain;
dup = strdup(account); dup = strdup(account);
id = dup;
if (!strncasecmp(account, "sip:", 4)) { switch_split_user_domain(dup, &id, &domain);
id += 4;
}
if (!id) { if (!id || !domain) {
free(dup); free(dup);
return; return;
} }
if ((domain = strchr(id, '@'))) {
*domain++ = '\0';
profile = NULL; profile = NULL;
if (globals.message_query_exact_match) { if (globals.message_query_exact_match) {
@ -3902,7 +3897,6 @@ static void actual_message_query_handler(switch_event_t *event)
} }
} }
} }
}
switch_safe_free(dup); switch_safe_free(dup);