mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Base ackcall on newly available agent, not the pending one
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -788,7 +788,7 @@ static int check_availability(struct agent_pvt *newlyavailable, int needlock)
|
|||||||
if (needlock)
|
if (needlock)
|
||||||
ast_mutex_unlock(&agentlock);
|
ast_mutex_unlock(&agentlock);
|
||||||
if (parent && chan) {
|
if (parent && chan) {
|
||||||
if (p->ackcall > 1) {
|
if (newlyavailable->ackcall > 1) {
|
||||||
/* Don't do beep here */
|
/* Don't do beep here */
|
||||||
res = 0;
|
res = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user