dont ever return success when we don't end up with a new session

This commit is contained in:
Michael Jerris 2013-03-28 11:24:49 -04:00
parent fe1a758338
commit b15ac31174
1 changed files with 4 additions and 0 deletions

View File

@ -3756,6 +3756,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
*bleg = NULL;
}
if (bleg && !*bleg && status == SWITCH_STATUS_SUCCESS) {
status = SWITCH_STATUS_FALSE;
}
if (bleg && *bleg) {
switch_channel_t *bchan = switch_core_session_get_channel(*bleg);