When taking a masqed call, be sure to mark it as acknowledged
authorMark Spencer <markster@digium.com>
Sat, 6 Sep 2003 20:13:09 +0000 (20:13 +0000)
committerMark Spencer <markster@digium.com>
Sat, 6 Sep 2003 20:13:09 +0000 (20:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1481 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index cbdff7a..a2998e3 100755 (executable)
@@ -803,6 +803,7 @@ static int check_availability(struct agent_pvt *newlyavailable, int needlock)
                if (!res) {
                        /* Note -- parent may have disappeared */
                        if (p->abouttograb) {
+                               newlyavailable->acknowledged = 1;
                                ast_setstate(parent, AST_STATE_UP);
                                ast_setstate(chan, AST_STATE_UP);
                                /* Go ahead and mark the channel as a zombie so that masquerade will