Hello, <br><br>I'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't work. Then I saw that zaptel couldn't be loaded because I was on a vserver and I didn'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("/dev/dahdi/timer", O_RDWR);<br>+                fd = open(DAHDI_FILE_TIMER, O_RDWR);<br>                 if (fd >= 0) {<br>                         if (ioctl(fd, DAHDI_TIMERCONFIG, &x)) {<br>-                                ast_log(LOG_ERROR, "You have DAHDI built and drivers loaded, but the DAHDI timer test failed to set DAHDI_TIMERCONFIG to %d.\n", x);<br>
+                                ast_log(LOG_ERROR, "You have " DAHDI_NAME<br>+                                                " built and drivers loaded, but the "<br>+                                                DAHDI_NAME " timer test failed to set DAHDI_TIMERCONFIG to %d.\n", 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>