FastAgi get_variable after GoSub

I am running into a problem where I can no longer get results with get_variable after running gosub.

The first get_variable request will return with “gosub complete” and subsequent request will be blank.


Can you share the relevant dailplan's and AGI code you’re using? Assuming you mean the GoSub() application for asterisk.

Honestly, I would keep all the AGI activity from touching the dailplan. Calling another context or section of the dialplan negates the functionality of AGI scripting.

Once the dailplan hands control to the AGI script, it shouldn’t go back to the dialplan for anything. You should be able to duplicate the GoSub() task in the AGI script.

GoSub is fundamentally a dialplan operation!