]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
extend timeout tolerance on openzap read to fix race in digium/zaptel/dahdi/whatever...
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 26 May 2009 21:47:48 +0000 (21:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 26 May 2009 21:47:48 +0000 (21:47 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@735 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/mod_openzap/mod_openzap.c

index feca83dc8bbc2c6db8b8ea5dea45f49b77d2d6da..5caa9e1a5b241fcb463172cb75f9fd72f2c8b9a4 100644 (file)
@@ -566,8 +566,11 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
 
        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;
-       total_to = chunk * 2;
+       total_to = chunk * 6;
 
        if (switch_test_flag(tech_pvt, TFLAG_DEAD)) {
                return SWITCH_STATUS_FALSE;