I have a call treatment that ultimately kicks off an AGI that sends a sms, then comes back to the dialplan to finish with a than you message and hangup.
There is a new requirement to wait 300 seconds prior to sending the text. I can make the agi script (python) wait 300 seconds no problem, but I do not want to have the channel up. Instead I want the 300 seconds to kick off, while the thank you and hang up happen.
I think I need:
AGISIGHUP=no to ensure the agi continues to run (wait the 300 seconds then send sms) when the call/channel hangs up.
I also think I need to call my agi as Async AGI so that the wait timer can kick off, but the dial plan can continue to the thank you and hang up.
- Is that right?
- How do I enable Async AGI for my SNG distro? I read I need an AMI entry?
- Alternative recommendations?