[Asterisk-Users] return code from AGI

Moises Silva moises.silva at gmail.com
Fri Feb 3 08:30:45 MST 2006


not sure what you want, but for multiple returns i use
Set(AGI_STATUS=mystatus), so in the dialplan i just check for the variable
AGI_STATUS and do whatever i need depending on the status.

regards

On 2/2/06, vivek at staff.ownmail.com <vivek at staff.ownmail.com> wrote:
>
> Hello friends,
>   Asterisk applications like Dial and other commands return codes. When
> AGI script is executed, it returns -1 on hangup and 0 on non hangup exit.
> How do I check these return codes from the extensions.conf . I want to
> check these return codes and control the dialplan.
>   Please help me how do I track this.
>
> Thanks all for reading this mail.
>
>
> With warm regards.
>
> Vivek J. Joshi.
>
> vivek at staff.ownmail.com
> Trikon electronics Pvt. Ltd.
>
> --Sweat saves blood, blood saves lives, and brains saves both.
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>


--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060203/23f4ceb5/attachment.htm


More information about the asterisk-users mailing list