mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-02 14:48:22 +00:00
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:
parent
3d9097b87c
commit
962f6a118b
@ -2026,12 +2026,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (originate_status[0].peer_session
|
if (oglobals.session && switch_core_session_dequeue_message(oglobals.session, &message) == SWITCH_STATUS_SUCCESS) {
|
||||||
&& 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);
|
switch_core_session_receive_message(oglobals.session, message);
|
||||||
}
|
|
||||||
message = NULL;
|
message = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user