Update of /usr/cvsroot/asterisk/channels In directory mongoose.digium.com:/tmp/cvs-serv28606/channels
Modified Files: chan_alsa.c chan_oss_old.c Log Message: issue #5672 Index: chan_alsa.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- chan_alsa.c 6 Nov 2005 15:09:46 -0000 1.52 +++ chan_alsa.c 15 Nov 2005 20:56:19 -0000 1.53 @@ -582,8 +582,14 @@ usecnt--; ast_mutex_unlock(&usecnt_lock); if (hookstate) { - res = 2; - write(sndcmd[1], &res, sizeof(res)); + if (autoanswer) { + hookstate = 0; + } else { + /* Congestion noise */ + res = 2; + write(sndcmd[1], &res, sizeof(res)); + hookstate = 0; + } } snd_pcm_drop(alsa.icard); ast_mutex_unlock(&alsalock); Index: chan_oss_old.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_oss_old.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- chan_oss_old.c 6 Nov 2005 15:09:46 -0000 1.4 +++ chan_oss_old.c 15 Nov 2005 20:56:19 -0000 1.5 @@ -565,6 +565,7 @@ /* Make congestion noise */ res = 2; write(sndcmd[1], &res, sizeof(res)); + hookstate = 0; } } return 0; _______________________________________________ Asterisk-Cvs mailing list Asterisk-Cvs@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-cvs