提交 30554381 authored 作者: Simon Wunderlich's avatar Simon Wunderlich 提交者: Nathan Neulinger

mod_skinny: wait up to 5 seconds for OpenRecvChannelAck

WiFi phones like the 7925g may take longer than just one second to
acknowledge the open receive message. Increase the timeout to 5 seconds.
Signed-off-by: 's avatarSimon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: 's avatarNathan Neulinger <nneul@neulinger.org>
上级 1727213b
......@@ -1142,7 +1142,7 @@ switch_status_t channel_answer_channel(switch_core_session_t *session)
/* Wait for media */
while(!switch_test_flag(tech_pvt, TFLAG_IO)) {
switch_cond_next();
if (++x > 1000) {
if (++x > 5000) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Wait tooo long to answer %s:%s\n",
switch_channel_get_variable(channel, "skinny_device_name"), switch_channel_get_variable(channel, "skinny_device_instance"));
return SWITCH_STATUS_FALSE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论