Fix agent recording issue (bug #4551)
authorMark Spencer <markster@digium.com>
Sat, 18 Jun 2005 16:38:48 +0000 (16:38 +0000)
committerMark Spencer <markster@digium.com>
Sat, 18 Jun 2005 16:38:48 +0000 (16:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5933 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index a2d721d..a36957d 100755 (executable)
@@ -447,6 +447,10 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
                                        f = &null_frame;
                                } else {
                                        p->acknowledged = 1;
+                                       /* Use the builtin answer frame for the 
+                                          recording start check below. */
+                                       ast_frfree(f);
+                                       f = &answer_frame;
                                }
                        }
                        break;