mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 18:55:49 +00:00
mod_command reg_url: correct field name
This commit is contained in:
parent
0a14839bf9
commit
e0a0a56f24
@ -90,11 +90,11 @@ static switch_status_t select_url(const char *user,
|
|||||||
|
|
||||||
if (exclude_contact) {
|
if (exclude_contact) {
|
||||||
sql = switch_mprintf("select url, '%q' "
|
sql = switch_mprintf("select url, '%q' "
|
||||||
"from registrations where user='%q' and realm='%q' "
|
"from registrations where reg_user='%q' and realm='%q' "
|
||||||
"and url not like '%%%s%%'", (concat != NULL) ? concat : "", user, domain, exclude_contact);
|
"and url not like '%%%s%%'", (concat != NULL) ? concat : "", user, domain, exclude_contact);
|
||||||
} else {
|
} else {
|
||||||
sql = switch_mprintf("select url, '%q' "
|
sql = switch_mprintf("select url, '%q' "
|
||||||
"from registrations where user='%q' and realm='%q'",
|
"from registrations where reg_user='%q' and realm='%q'",
|
||||||
(concat != NULL) ? concat : "", user, domain);
|
(concat != NULL) ? concat : "", user, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user