forked from Mirrors/freeswitch
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:
parent
8b1be45e01
commit
b115bea584
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user