[Asterisk-bsd] My working asterisk-head on FreeBSD 5.2.1
Chris Stenton
asterisk-bsd@lists.digium.com
Fri, 30 Jul 2004 14:25:00 +0100
OK this is what is working for me on 5.2.1. Giving me MOH, meetme, iax
trunking and ping pong timing.
ztdummy r17
svn checkout svn://svn.berlios.de/zaptel-bsd/
THREADS FIX
http://bugs.digium.com/bug_view_page.php?bug_id=0002067
MOH Fix ... gave the wrong bug number on the last post :-)
http://bugs.digium.com/bug_view_advanced_page.php?bug_id=0002167
And the following hack on meetme ... need to find out why usleep works
but tsleep does not.
--- app_meetme.c.org Fri Jul 30 13:39:07 2004
+++ app_meetme.c Fri Jul 30 13:42:01 2004
@@ -155,11 +155,14 @@
int res;
int x;
while(len) {
- x = ZT_IOMUX_WRITE | ZT_IOMUX_SIGEVENT;
- res = ioctl(fd, ZT_IOMUX, &x);
- if (res >= 0)
+// x = ZT_IOMUX_WRITE | ZT_IOMUX_SIGEVENT;
+// res = ioctl(fd, ZT_IOMUX, &x);
+// if (res >= 0)
+ /* Change this to write till the buffer is full then
wait till there is enough room */
res = write(fd, data, len);
if (res < 1) {
++ /* buffer full so I wait 8 samples (1 ms) to
let other threads have a go*/
++ usleep(1000);
if (errno != EAGAIN) {
ast_log(LOG_WARNING, "Failed to write
audio data to conference: %s\n", strerror(errno));
return -1;
Chris