]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: Fix a ODBC DELETE Sql Query
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 16 Feb 2010 01:41:00 +0000 (01:41 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 16 Feb 2010 01:41:00 +0000 (01:41 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16657 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 7929d8e02bdf8708bbc309f4d823afd92f482f6d..fa1c4b03c292b40568741431ae9759761758a088 100644 (file)
@@ -4542,7 +4542,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
                test_sql = switch_mprintf("delete from sip_registrations where (contact like '%%TCP%%' "
                                                                  "or status like '%%TCP%%' or status like '%%TLS%%') and hostname='%q' "
                                                                  "and network_ip like '%%' and network_port like '%%' and sip_username "
-                                                                 "like '%%' and mwi_user like '%%' and mwi_host like '%%'"
+                                                                 "like '%%' and mwi_user like '%%' and mwi_host like '%%' "
                                                                  "and orig_server_host like '%%' and orig_hostname like '%%'", 
                                                                  mod_sofia_globals.hostname);