Hi I have an AGI script that is running on my Asterisk server.I’m using an OpenVox GSM gateway.I want to answer to a call using a specific trunk and a specific number.
This is the syntax I use to execute my AGI script in local way :
exten => 2040,1,Answer(500)
same => 2, Set(CHANNEL(language)=moore)
same => 3,Agi(test.php,1612279908)
same => 4,Hangup()
When calling 2040 I can execute my AGI Script.
Now I want to call a number inserted in my gateway via Sip trunk
I tried like this : exten => 2040,1,Answer(SIP/1002/500) 1002 is the trunk but It doesn’t work.
Is someone can help me with the correct answer?