]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_command reg_url: correct field name
authorMathieu Parent <math.parent@gmail.com>
Wed, 23 Feb 2011 00:13:00 +0000 (01:13 +0100)
committerMathieu Parent <math.parent@gmail.com>
Wed, 23 Feb 2011 00:13:00 +0000 (01:13 +0100)
src/mod/applications/mod_commands/mod_commands.c

index 517134d2e1fa1c4260f2c8c40d920f5da0de9cc8..a6df087cb0cce0db3d29ba87e74551c8733335c0 100644 (file)
@@ -90,11 +90,11 @@ static switch_status_t select_url(const char *user,
 
        if (exclude_contact) {
                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);
        } else {
                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);
        }