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
This commit is contained in:
parent
9624461049
commit
8036f3839c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue