mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-02 05:43:09 +00:00
FS-5185 --resolve
This commit is contained in:
parent
65ba846a30
commit
5406fb8a11
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user