]> git.pld-linux.org Git - packages/asterisk.git/commitdiff
- digium bug 9660
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 12 Oct 2007 12:14:35 +0000 (12:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    asterisk-zhone.patch -> 1.2

asterisk-zhone.patch

index 7af4b377019b8433c7c4ef9816e263f369cd7e01..507c7553d7d0e59fb5c8326af72adffe8c000485 100644 (file)
@@ -41,3 +41,25 @@ diff -urN asterisk-1.4.11.org/channels/chan_zap.c asterisk-1.4.11/channels/chan_
        }
  
        if (res & ZT_EVENT_DTMFDOWN) {
+--- channels/chan_zap.c.org    2007-09-26 09:08:42.423698383 +0200
++++ channels/chan_zap.c        2007-09-26 09:09:43.422303554 +0200
+@@ -1607,11 +1607,18 @@
+ static inline int zt_set_hook(int fd, int hs)
+ {
+-      int x, res;
++      int x, res, count = 0;
+       x = hs;
+       res = ioctl(fd, ZT_HOOK, &x);
++      while (res < 0 && count < 20) {
++              usleep(100000); /* 1/10 sec. */
++              x = hs;
++              res = ioctl(fd, ZT_HOOK, &x);
++              count++;
++      }
++
+       if (res < 0) {
+               if (errno == EINPROGRESS)
+                       return 0;
This page took 0.146478 seconds and 4 git commands to generate.