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
This commit is contained in:
Brian West 2007-12-29 02:18:23 +00:00
parent 8b1be45e01
commit b115bea584

View File

@ -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);
}
}
}