From: Brian West Date: Sat, 29 Dec 2007 02:18:23 +0000 (+0000) Subject: tweak to update when confirm happens when no subscriptions are present X-Git-Tag: v1.0-rc1~882 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b115bea5840a7760e8f809d330ac909a3c454de7;p=thirdparty%2Ffreeswitch.git tweak to update when confirm happens when no subscriptions are present git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7014 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index ed8f6bb055..8fa085027f 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1325,6 +1325,12 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status sofia_glue_execute_sql(profile, SWITCH_FALSE, sql, profile->ireg_mutex); free(sql); + } else if (status == 200) { + char *sql = NULL; + sql = switch_mprintf("update sip_dialogs set state='%s' where uuid='%s';\n", astate, switch_core_session_get_uuid(session)); + switch_assert(sql); + sofia_glue_execute_sql(profile, SWITCH_FALSE, sql, profile->ireg_mutex); + free(sql); } } }