mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-04 04:12:03 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3212 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
280daaf56c
commit
da76d9327b
@ -147,9 +147,6 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
|
|||||||
last = switch_time_now() - waitsec;
|
last = switch_time_now() - waitsec;
|
||||||
|
|
||||||
if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
|
if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
|
||||||
/* Turn on the device */
|
|
||||||
engage_device(tech_pvt);
|
|
||||||
|
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s CHANNEL INIT %d %d\n", switch_channel_get_name(channel),
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s CHANNEL INIT %d %d\n", switch_channel_get_name(channel),
|
||||||
switch_channel_get_state(channel), switch_test_flag(tech_pvt, TFLAG_ANSWER));
|
switch_channel_get_state(channel), switch_test_flag(tech_pvt, TFLAG_ANSWER));
|
||||||
@ -173,6 +170,11 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
|
|||||||
}
|
}
|
||||||
switch_yield(50000);
|
switch_yield(50000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (switch_channel_ready(channel)) {
|
||||||
|
/* Turn on the device */
|
||||||
|
engage_device(tech_pvt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user