mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
revert 4f6d888152febb9b8c28854192d13fd6e7228b1d
This commit is contained in:
parent
2bbc37e3d1
commit
3e4957c0b3
@ -3497,12 +3497,12 @@ static void select_from_profile(sofia_profile_t *profile,
|
|||||||
|
|
||||||
if (exclude_contact) {
|
if (exclude_contact) {
|
||||||
sql = switch_mprintf("select contact, profile_name, '%q' "
|
sql = switch_mprintf("select contact, profile_name, '%q' "
|
||||||
"from sip_registrations where (sip_user='%q' or sip_username='%q') and (sip_host='%q' or presence_hosts like '%%%q%%') "
|
"from sip_registrations where sip_user='%q' and (sip_host='%q' or presence_hosts like '%%%q%%') "
|
||||||
"and contact not like '%%%s%%'", (concat != NULL) ? concat : "", user, user, domain, domain, exclude_contact);
|
"and contact not like '%%%s%%'", (concat != NULL) ? concat : "", user, domain, domain, exclude_contact);
|
||||||
} else {
|
} else {
|
||||||
sql = switch_mprintf("select contact, profile_name, '%q' "
|
sql = switch_mprintf("select contact, profile_name, '%q' "
|
||||||
"from sip_registrations where (sip_user='%q' or sip_username='%q') and (sip_host='%q' or presence_hosts like '%%%q%%')",
|
"from sip_registrations where sip_user='%q' and (sip_host='%q' or presence_hosts like '%%%q%%')",
|
||||||
(concat != NULL) ? concat : "", user, user, domain, domain);
|
(concat != NULL) ? concat : "", user, domain, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_assert(sql);
|
switch_assert(sql);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user