[asterisk-users] After call into console/dsp hangup hear ringing

Jerry Geis geisj at pagestation.com
Sun Oct 4 21:06:29 CDT 2009


I found the problem.

The function send_sound() in chan_alsa.c does this:
               if (FD_ISSET(sndcmd[0], &rfds)) {
                        if (read(sndcmd[0], &cursound, sizeof(cursound)) 
< 0) {
                                ast_log(LOG_WARNING, "read() failed: 
%s\n", strerror(errno));
                        }
                        silencelen = 0;
                        offset = 0;
                        sampsent = 0;


This sets cursound to 0 and cursound should be -1.

If I change cursound here to local_cursound and recompile I do not hear 
the ring after my call.

Jerry



More information about the asterisk-users mailing list