Hello, <br><br>I&#39;ve been trying to setup asterisk with zaptel for the last 3-4 days. I had a lot of errors and fixed all of them but asterisk still didn&#39;t work. Then I saw that zaptel couldn&#39;t be loaded because I was on a vserver and I didn&#39;t have the devices under /dev/zap/. I asked the system guys to install zaptel, they did but now I am getting this error only: <br>
<br>[Dec 14 16:59:39] ERROR[2986] asterisk.c: You have Zaptel built and drivers loaded, but the Zaptel timer test failed to set ZT_TIMERCONFIG to 160. <br><br>The code where this error lies is this: <br><pre>int fd;<br>-                int x = 160;<br>
-                fd = open(&quot;/dev/dahdi/timer&quot;, O_RDWR);<br>+                fd = open(DAHDI_FILE_TIMER, O_RDWR);<br>                 if (fd &gt;= 0) {<br>                         if (ioctl(fd, DAHDI_TIMERCONFIG, &amp;x)) {<br>-                                ast_log(LOG_ERROR, &quot;You have DAHDI built and drivers loaded, but the DAHDI timer test failed to set DAHDI_TIMERCONFIG to %d.\n&quot;, x);<br>
+                                ast_log(LOG_ERROR, &quot;You have &quot; DAHDI_NAME<br>+                                                &quot; built and drivers loaded, but the &quot;<br>+                                                DAHDI_NAME &quot; timer test failed to set DAHDI_TIMERCONFIG to %d.\n&quot;, x);<br>                                 exit(1);<br>
                         }<br></pre><br><br>The problem has something to do with ioctl function. <br><br><br>I run:<br><br>sudo /usr/sbin/asterisk -cv as root. <br><br>The installation is not a deb package. It was compiled by our ex-developer and left broken with a lot of errors. <br>
<br>Any ideas?<br><br>Thank you,<br><br>-- <br>Gurel Kaynak<br><a href="mailto:gurelkaynak@gmail.com">gurelkaynak@gmail.com</a> <br>