]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorBrian West <brian@freeswitch.org>
Mon, 6 Oct 2008 16:03:39 +0000 (16:03 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 6 Oct 2008 16:03:39 +0000 (16:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9854 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index a27d870ccd6c40f74e06bc99b37df0057d6764bf..3aebff73601ac7edee9acc797df863aa253f653b 100644 (file)
@@ -2006,7 +2006,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Expire registration '%s@%s' due to options failure\n",
                                                  sip->sip_to->a_url->url_user, sip->sip_to->a_url->url_host);
 
-               sql = switch_mprintf("update sip_registrations set expired=%ld where sip_user='%s' and sip_host='%s'",
+               sql = switch_mprintf("update sip_registrations set expires=%ld where sip_user='%s' and sip_host='%s'",
                                                         (long) now, sip->sip_to->a_url->url_user, sip->sip_to->a_url->url_host);
                sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE);
        }