git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Kevin P. Fleming 20 years ago
parent 3d599e6501
commit c7c3fa1d53

@ -1,5 +1,7 @@
2005-11-15 Kevin P. Fleming <kpfleming@limerick.digium.com>
* channels/chan_alsa.c (alsa_hangup): handle autohangup properly (issue #5672)
* channels/chan_misdn.c (and other files): various fixes (issue #5739)
* channels/chan_sip.c (handle_request_info): properly forward 'flash' events received via SIP INFO (issue #5751, different patch)

@ -582,8 +582,14 @@ static int alsa_hangup(struct ast_channel *c)
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);

@ -565,6 +565,7 @@ static int oss_hangup(struct ast_channel *c)
/* Make congestion noise */
res = 2;
write(sndcmd[1], &res, sizeof(res));
hookstate = 0;
}
}
return 0;

Loading…
Cancel
Save