FS-3275 try this then

This commit is contained in:
Anthony Minessale 2011-06-22 19:03:33 -05:00
parent e47e52c9d4
commit 6eb3ff7af0
1 changed files with 2 additions and 1 deletions

View File

@ -1826,6 +1826,8 @@ static switch_status_t xfer_on_dtmf(switch_core_session_t *session, void *input,
app = "intercept";
}
switch_core_session_rwunlock(b_session);
} else {
switch_channel_set_state(channel, CS_RESET);
}
if ((extension = switch_caller_extension_new(peer_session, app, app_arg)) == 0) {
@ -1840,7 +1842,6 @@ static switch_status_t xfer_on_dtmf(switch_core_session_t *session, void *input,
switch_channel_wait_for_state(peer_channel, channel, CS_RESET);
switch_channel_set_state(peer_channel, CS_EXECUTE);
switch_channel_set_variable(channel, SWITCH_HANGUP_AFTER_BRIDGE_VARIABLE, NULL);
return SWITCH_STATUS_FALSE;
}