]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sql err
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Feb 2011 19:05:48 +0000 (13:05 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Feb 2011 19:06:08 +0000 (13:06 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index a38a61eab86c27eca835a44b230aa95b6c26de34..2313cb7a1a27e0f1e3265e2e13775ae03e2c90cd 100644 (file)
@@ -2576,7 +2576,7 @@ uint32_t sofia_presence_contact_count(sofia_profile_t *profile, const char *cont
        char buf[32] = "";
        char *sql;
        
-       sql = switch_mprintf("select count(*) from sip_subscriptions where profile_name='%q' and contact_str='%q'", profile->name, contact_str);
+       sql = switch_mprintf("select count(*) from sip_subscriptions where profile_name='%q' and contact='%q'", profile->name, contact_str);
        
        sofia_glue_execute_sql2str(profile, profile->ireg_mutex, sql, buf, sizeof(buf));
        switch_safe_free(sql);