mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10533 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
50e1a8c23f
commit
1eea29a474
7 files changed
+68
-37
No files matched your search
@@ -360,19 +360,15 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session)
|
||||
switch_mutex_lock(session->mutex);
|
||||
|
||||
while ((state = switch_channel_get_state(session->channel)) != CS_DONE) {
|
||||
uint8_t exception = 0;
|
||||
midstate = state;
|
||||
if (switch_channel_test_flag(session->channel, CF_REPEAT_STATE)) {
|
||||
switch_channel_clear_flag(session->channel, CF_REPEAT_STATE);
|
||||
exception = 1;
|
||||
}
|
||||
if (state != switch_channel_get_running_state(session->channel) || state == CS_HANGUP || exception) {
|
||||
if (state != switch_channel_get_running_state(session->channel) || state == CS_HANGUP) {
|
||||
int index = 0;
|
||||
int proceed = 1;
|
||||
int do_extra_handlers = 1;
|
||||
|
||||
switch_channel_set_running_state(session->channel, state);
|
||||
switch_channel_clear_flag(session->channel, CF_TRANSFER);
|
||||
switch_channel_clear_flag(session->channel, CF_REDIRECT);
|
||||
|
||||
switch (state) {
|
||||
case CS_NEW: /* Just created, Waiting for first instructions */
|
||||
|
||||
Reference in new issue
Block a user