move callstate changes down to take place after the core states have run

This commit is contained in:
Anthony Minessale
2013-04-15 10:43:28 -05:00
parent cac7ad645b
commit 2d0b24743f
3 changed files with 18 additions and 5 deletions

View File

@@ -684,6 +684,7 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses
api_hook(session, hook_var, use_session);
}
switch_channel_set_callstate(session->channel, CCS_HANGUP);
switch_set_flag(session, SSF_HANGUP);
}