diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 773eb733c2..bf66fe3468 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1458,7 +1458,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu sip->sip_to->a_url->url_host ); - char *sql = switch_mprintf("update sip_registratons set expired=%ld where sip_user='%s' and sip_host='%s'", + char *sql = switch_mprintf("update sip_registrations set expired=%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