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

Klaus-Peter Junghanns kpj at junghanns.net
Sat May 14 08:23:26 MST 2005


Hi,

that was the bug that prevented chan_capi to work on BSD. Together with
Jan Stocke i fixed that bug and it will also be in 0.4.0.

best regards

Klaus

Am Samstag, den 14.05.2005, 15:53 +0200 schrieb Armin Schindler:
> 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;
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list