regression from yesterday causing a seg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15147 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-10-13 17:31:10 +00:00
parent 3d9097b87c
commit 962f6a118b
1 changed files with 2 additions and 6 deletions

View File

@ -2026,12 +2026,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
}
}
if (originate_status[0].peer_session
&& switch_core_session_dequeue_message(oglobals.session, &message) == SWITCH_STATUS_SUCCESS) {
if (oglobals.session && !ringback_data && or_argc == 1 && and_argc == 1) {
/* when there is only 1 channel to call and bridge and no ringback */
switch_core_session_receive_message(oglobals.session, message);
}
if (oglobals.session && switch_core_session_dequeue_message(oglobals.session, &message) == SWITCH_STATUS_SUCCESS) {
switch_core_session_receive_message(oglobals.session, message);
message = NULL;
}