mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
add sync
This commit is contained in:
@@ -3516,6 +3516,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
if (*bleg) {
|
if (*bleg) {
|
||||||
switch_channel_t *bchan = switch_core_session_get_channel(*bleg);
|
switch_channel_t *bchan = switch_core_session_get_channel(*bleg);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (session && caller_channel) {
|
if (session && caller_channel) {
|
||||||
switch_caller_profile_t *cloned_profile, *peer_profile = switch_channel_get_caller_profile(switch_core_session_get_channel(*bleg));
|
switch_caller_profile_t *cloned_profile, *peer_profile = switch_channel_get_caller_profile(switch_core_session_get_channel(*bleg));
|
||||||
|
|
||||||
@@ -3535,8 +3537,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||||||
switch_cond_next();
|
switch_cond_next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_channel_audio_sync(bchan);
|
||||||
|
|
||||||
switch_ivr_sleep(*bleg, 0, SWITCH_TRUE, NULL);
|
if (caller_channel) {
|
||||||
|
switch_channel_audio_sync(caller_channel);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oglobals.session) {
|
if (oglobals.session) {
|
||||||
|
Reference in New Issue
Block a user