Daryl G. Jurbala
2007-Aug-13 20:25 UTC
[asterisk-users] AGI answering the channel even though I never asked it to
I am working on a call-back solution where the initiating call should never be answered. I was doing this simply through the dial plan, sending a progress tone, and then dumping the channel, and firing off a DeadAGI which created a call file to make the callback. Now I've tried extending this so that an AGI is fired first to check for things - like no inbound ANI - and play a DIFFERENT progress tone for that situation. It appears that every since I've done that, Asterisk is answering the channel. I don't have an Answer command in my dialplan or AGI. Is this something that will automagically happen whether I want it to or not? If so, I'm going to have to do some ugly dial plan scripting to make this work. In case it matters, this is a PHP AGI. Thanks, Daryl
Martin Smith
2007-Aug-13 20:37 UTC
[asterisk-users] AGI answering the channel even though I neverasked it to
Hello Daryl, See http://www.asterisk.org/doxygen/1.4/res__agi_8c.html#c631d48f46d51d4b057 b31807baa1f10 The AGI application will answer the channel if it isn't already answered. You probably need to do whatever you want to do in the dialplan, and keep using DeadAGI. Martin Smith, Systems Developer martins at bebr.ufl.edu Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > Daryl G. Jurbala > Sent: Monday, August 13, 2007 4:25 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] AGI answering the channel even > though I neverasked it to > > I am working on a call-back solution where the initiating > call should > never be answered. > > I was doing this simply through the dial plan, sending a progress > tone, and then dumping the channel, and firing off a DeadAGI which > created a call file to make the callback. > > Now I've tried extending this so that an AGI is fired first to check > for things - like no inbound ANI - and play a DIFFERENT > progress tone > for that situation. It appears that every since I've done that, > Asterisk is answering the channel. I don't have an Answer > command in > my dialplan or AGI. Is this something that will > automagically happen > whether I want it to or not? If so, I'm going to have to do some > ugly dial plan scripting to make this work. > > In case it matters, this is a PHP AGI. > > Thanks, > Daryl > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >