<div>So besides the missing ) on line 1, I have some other comments:</div>
<div> </div>
<div>1) You should replace your priority numbers with 'n'. Just so much easier to know that the issue isn't with priority numbers. And typing 'dialplan show <context>' is a nice way to see if everything is setup correctly. The 'n' is a personal choice, but the longer your application the better.
</div>
<div> </div>
<div>2) I thought I read somewhere that AGI was now auto-answering the channel. But I guess that's not right. AGI will auto-answer the channel if something causes it to do so. If you want to post your AGI code without any database commands, I'll glance at it.
</div>
<div> </div>
<div>humm, I guess that's all I see. Everything else seems fine.</div>
<div> </div>
<div>It may be good to check the ChannelStatus once in a while just to debug where the channel is getting answered.</div>
<div> </div>
<div><a href="http://gundy.org/asterisk/agi.html">http://gundy.org/asterisk/agi.html</a></div>