mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
normalize tests for outbound channels to use switch_channel_direction instead of testing for CF_OUTBOUND
This commit is contained in:
@@ -124,7 +124,7 @@ static void switch_core_standard_on_routing(switch_core_session_t *session)
|
||||
}
|
||||
|
||||
if (!count) {
|
||||
if (switch_channel_test_flag(session->channel, CF_OUTBOUND)) {
|
||||
if (switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
|
||||
if (switch_channel_test_flag(session->channel, CF_ANSWERED)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
||||
"No Dialplan on answered channel, changing state to HANGUP\n");
|
||||
|
Reference in New Issue
Block a user