[asterisk-users] Is it possible that variables returned from AGI take a moment to "stick"?

virendra bhati virbhati at gmail.com
Fri Nov 4 06:37:27 CDT 2016


I don't think so any such method to return variable from AGI. But simple
solution is set variable in AGI and then you can get back after AGI call in
dialplan and these variable will be available until call finished.


---
 Virendra Bhati
+91-9718500594
+91-9250078532
Sr. Asterisk Developer
E-mail-: virbhati at gmail.com
Skype id:- virbhati2
New Delhi(India)


On Fri, Oct 21, 2016 at 6:06 PM, Jonathan H <lardconcepts at gmail.com> wrote:

> I thought dialplan flow was that (normal!) agi was called, it did its
> thing (which include returning some dialplan variables/lists), and
> then when agi finished it returned to the dialplan which then reliably
> carried the product of agi.
>
> But I'm calling agi, scanning a path in python, and then finding that
> unless I call a 1 second wait in the dialplan AFTER the agi, sometimes
> the variable is empty, even though agi debug shows it was sent.
>
> Any tests I can do, or is this to be expected?
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
>       http://www.asterisk.org/community/astricon-user-conference
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161104/9ec78fec/attachment.html>


More information about the asterisk-users mailing list