From: Brian West Date: Mon, 6 Oct 2008 16:03:39 +0000 (+0000) Subject: doh X-Git-Tag: v1.0.2~945 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16b65a8f2217176a157099dbda18766eb6f5559e;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9854 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index a27d870ccd..3aebff7360 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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); }