mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
issue #5672
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2005-11-15 Kevin P. Fleming <kpfleming@limerick.digium.com>
|
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_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)
|
* 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--;
|
usecnt--;
|
||||||
ast_mutex_unlock(&usecnt_lock);
|
ast_mutex_unlock(&usecnt_lock);
|
||||||
if (hookstate) {
|
if (hookstate) {
|
||||||
res = 2;
|
if (autoanswer) {
|
||||||
write(sndcmd[1], &res, sizeof(res));
|
hookstate = 0;
|
||||||
|
} else {
|
||||||
|
/* Congestion noise */
|
||||||
|
res = 2;
|
||||||
|
write(sndcmd[1], &res, sizeof(res));
|
||||||
|
hookstate = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
snd_pcm_drop(alsa.icard);
|
snd_pcm_drop(alsa.icard);
|
||||||
ast_mutex_unlock(&alsalock);
|
ast_mutex_unlock(&alsalock);
|
||||||
|
@@ -565,6 +565,7 @@ static int oss_hangup(struct ast_channel *c)
|
|||||||
/* Make congestion noise */
|
/* Make congestion noise */
|
||||||
res = 2;
|
res = 2;
|
||||||
write(sndcmd[1], &res, sizeof(res));
|
write(sndcmd[1], &res, sizeof(res));
|
||||||
|
hookstate = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user