From b115bea5840a7760e8f809d330ac909a3c454de7 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 29 Dec 2007 02:18:23 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } } }