[Freeswitch-svn] [commit] r7014 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
brian at freeswitch.org
Fri Dec 28 21:18:23 EST 2007
Author: brian
Date: Fri Dec 28 21:18:23 2007
New Revision: 7014
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
tweak to update when confirm happens when no subscriptions are present
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Fri Dec 28 21:18:23 2007
@@ -1325,6 +1325,12 @@
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);
}
}
}
More information about the Freeswitch-svn
mailing list