Project "FreeSWITCH Source" received a push.

branch: master updated

       via: e0a0a56f240ec397d2074cf28d3c9976ab3bfd83 (commit)
      from: 0a14839bf9e760fa10b186d4ea5ab561a508902b (commit)


= COMMIT LOG ===========================================================
committer: Mathieu Parent
comments: 
mod_command reg_url: correct field name

diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c
index 517134d..a6df087 100644
--- a/src/mod/applications/mod_commands/mod_commands.c
+++ b/src/mod/applications/mod_commands/mod_commands.c
@@ -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);
 	}
 
========================================================================

Summary of changes:
 src/mod/applications/mod_commands/mod_commands.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source