Is It Possible That Variables Returned From AGI Take A Moment To “stick”?
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?
One thought on - Is It Possible That Variables Returned From AGI Take A Moment To “stick”?
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.
–