提交 e0a0a56f authored 作者: Mathieu Parent's avatar Mathieu Parent

mod_command reg_url: correct field name

上级 0a14839b
...@@ -90,11 +90,11 @@ static switch_status_t select_url(const char *user, ...@@ -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);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论