[Asterisk-Users] RE: AGI Flakyness *sigh*

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Thu Feb 16 11:48:08 MST 2006


On Thursday 16 February 2006 13:18, Douglas Garstang wrote:
> As you can quite clearly see, Asterisk sends no return code back to the AGI
> script. I really want to understand why this happens. I also don't like the

Are you using AGI() or DeadAGI() ?

> until after the call is Hung up. Also, another annoyance. Why can't
> asterisk send back a return code once the dial is initiated, but before the
> call is connected? If you don't get a return code until after the call is
> hung up (and you script has to wait for the result from stdin), how are you
> supposed to a) perform post call processing and b) check the status of an
> open call with CHANNEL STATUS?

It really sounds like you are frustrated because you have assumed a number of 
things about how Asterisk operates instead of testing it and understand what 
the system does and does not do.

Post-call processing is VERY easy to do, and can be done several ways.  You 
can use the 'h' extension, or the 'g' flag to Dial() or also by using 
DeadAGI() instead of AGI().  I'm not sure what you mean by "checking the 
status of an open call with CHANNEL STATUS" but I'll see if anyone else on 
the list can help.

We all get frustrated.  It is best not to broadcast this fact to tens of 
thousands of people.  Collateral damage, and all that.

-A.



More information about the asterisk-users mailing list