Author: arekm                        Date: Fri Oct 12 12:14:40 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- digium bug 9660

---- Files affected:
SOURCES:
   asterisk-zhone.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/asterisk-zhone.patch
diff -u SOURCES/asterisk-zhone.patch:1.1 SOURCES/asterisk-zhone.patch:1.2
--- SOURCES/asterisk-zhone.patch:1.1    Sat Oct  6 06:11:13 2007
+++ SOURCES/asterisk-zhone.patch        Fri Oct 12 14:14:35 2007
@@ -41,3 +41,25 @@
        }
  
        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;
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/asterisk-zhone.patch?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to