mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 04:27:06 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9604 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
a6989de65c
commit
be3df211e3
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -910,8 +910,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_media(const char *uuid, switch_media_
|
||||
if (switch_channel_test_flag(channel, CF_PROXY_MODE)) {
|
||||
status = SWITCH_STATUS_SUCCESS;
|
||||
switch_core_session_receive_message(session, &msg);
|
||||
|
||||
if (!(flags & SMF_IMMEDIATE)) {
|
||||
|
||||
if ((flags & SMF_IMMEDIATE)) {
|
||||
switch_channel_wait_for_flag(channel, CF_REQ_MEDIA, SWITCH_FALSE, 250, NULL);
|
||||
switch_yield(250000);
|
||||
} else {
|
||||
switch_channel_wait_for_flag(channel, CF_REQ_MEDIA, SWITCH_FALSE, 10000, NULL);
|
||||
switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user