]> git.pld-linux.org Git - packages/asterisk.git/blobdiff - asterisk-zhone.patch
- Include SRTP support (chan_sip complains without it)
[packages/asterisk.git] / asterisk-zhone.patch
index 7af4b377019b8433c7c4ef9816e263f369cd7e01..683b19fc8a6b2c39c1c9d31aba45acebdf9e8912 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) {
+--- asterisk/channels/chan_zap.c.org   2007-09-26 09:08:42.423698383 +0200
++++ asterisk/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.02588 seconds and 4 git commands to generate.