提交 8036f383 authored 作者: Anthony Minessale's avatar Anthony Minessale

extend timeout tolerance on openzap read to fix race in digium/zaptel/dahdi/whatever its called

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@735 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 96244610
...@@ -566,8 +566,11 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch ...@@ -566,8 +566,11 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
assert(tech_pvt->zchan != NULL); assert(tech_pvt->zchan != NULL);
/* Digium Cards sometimes timeout several times in a row here.
Yes, we support digium cards, ain't we nice.......
6 double length intervals should compensate */
chunk = tech_pvt->zchan->effective_interval * 2; chunk = tech_pvt->zchan->effective_interval * 2;
total_to = chunk * 2; total_to = chunk * 6;
if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { if (switch_test_flag(tech_pvt, TFLAG_DEAD)) {
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论