[Asterisk-Users] Fix for chan_capi-0.3.5 using kernel >= 2.6.11

Armin Schindler armin at melware.de
Sat May 14 06:53:28 MST 2005


Hi all,

I found the fix for the problem of 'no sound on outgoing capi calls'.

It is not an error of the kernel (capi or driver), it an error of 
chan_capi-0.3.5.
A wrong file-descriptor is used for the pipe to asterisk. I don't know why 
this worked with other kernels, maybe kernel 2.6.11 got a 'fix' here.

Armin

Here is the patch to fix chan_capi-0.3.5:

diff -ur chan_capi-0.3.5.orig/chan_capi.c chan_capi-0.3.5.new/chan_capi.c
--- chan_capi-0.3.5.orig/chan_capi.c	2004-08-13 12:07:28.000000000 +0200
+++ chan_capi-0.3.5.new/chan_capi.c	2005-05-14 15:47:36.164052000 +0200
@@ -687,7 +687,7 @@
 	    p = malloc(sizeof(struct capi_pipe));
 	    memset(p, 0, sizeof(struct capi_pipe));
 	    p->fd = fds[1];
-	    c->fds[0] = fds[1];
+	    c->fds[0] = fds[0];
 	    p->PLCI = -1;
 	    p->i = i;
 	    p->c = c;



More information about the asterisk-users mailing list