Skip to content
Snippets Groups Projects
Commit 77617f59 authored by Mark Spencer's avatar Mark Spencer
Browse files

Remove broken "ackcall" fix (bug #3043)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 706bb6f0
No related branches found
No related tags found
No related merge requests found
...@@ -354,6 +354,10 @@ static struct ast_frame *agent_read(struct ast_channel *ast) ...@@ -354,6 +354,10 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
p->acknowledged = 0; p->acknowledged = 0;
} }
} }
#if 0
/* I don't know what this code does and was unable to get a hold of Jim to
find out, but it causes chan_agent to crash (see bug #3043) at
http://bugs.digium.com */
if ((!strncmp(p->chan->name,"Zap",3)) && (!p->ackcall) && (!p->acknowledged)) if ((!strncmp(p->chan->name,"Zap",3)) && (!p->ackcall) && (!p->acknowledged))
{ {
...@@ -362,6 +366,7 @@ static struct ast_frame *agent_read(struct ast_channel *ast) ...@@ -362,6 +366,7 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
if (p->chan) if (p->chan)
p->chan->_bridge = ast; p->chan->_bridge = ast;
} }
#endif
if (f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) { if (f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {
/* TC */ /* TC */
if (p->ackcall) { if (p->ackcall) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment