]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix timer in dtmf generator
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Sep 2009 22:13:43 +0000 (22:13 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Sep 2009 22:13:43 +0000 (22:13 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@834 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/zap_io.c

index 0f1c53647de950f5f6ff4c16c113bab37e441f0e..28e6f126867528d67f80fdcc9ddcbd1591ddc9fe 100644 (file)
@@ -1847,8 +1847,10 @@ static zap_status_t handle_dtmf(zap_channel_t *zchan, zap_size_t datalen)
                                        return ZAP_FAIL;
                                }
                        }
-               
-                       zchan->skip_read_frames = wrote / (1000 / zchan->effective_interval);
+
+                       if (x) {
+                               zchan->skip_read_frames = (wrote / (zchan->effective_interval * 8)) + 4;
+                       }
                }
        }