tweak to confirm blind transfer patch

This commit is contained in:
Anthony Minessale
2012-05-08 19:33:53 -05:00
parent d82a38dfd6
commit f106c18f51
4 changed files with 32 additions and 18 deletions

View File

@@ -174,8 +174,11 @@ static void switch_core_standard_on_routing(switch_core_session_t *session)
}
if (!extension) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "No Route, Aborting\n");
switch_channel_hangup(session->channel, SWITCH_CAUSE_NO_ROUTE_DESTINATION);
if (switch_ivr_blind_transfer_ack(session, SWITCH_FALSE) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "No Route, Aborting\n");
switch_channel_hangup(session->channel, SWITCH_CAUSE_NO_ROUTE_DESTINATION);
}
}
end: