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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to