AGI script on web?


¿How i can configure AGI scripts on web interface?

Im testing with this:

In the extensions_custom.conf i add:

exten => 1003,1,Answer()
exten => 1003,2,SayDigits(${CALLERID(number)})
exten => 1003,4,AGI(fbedia.php,${CALLERID(number)})
exten => 1003,3,Playback(custom/test)

Then, if i call to extension 1003 from my sophone, all go well, and the AGI script fbedia.php execute correctly… However, i cant found this extension (1003) on my web:

Im try to configure my extensions_custom.conf like this (with the same name of extension (1001) that i have in the freepbx web):

exten => 1001,1,Answer()
exten => 1001,2,SayDigits(${CALLERID(number)})
exten => 1001,4,AGI(fbedia.php,${CALLERID(number)})
exten => 1001,3,Playback(custom/test)

but when is a external call, this ring in the extension 1001 sophone… and the script dont execute.
however, if i call from one sophone to 1001, then the script execute well…
¿mybe i need chante [from-internal-custom] to other context?

Sorry for my english…

You use a Custom Destination. Change your dialplan to something like this:

exten => 1003,1,Answer()
  ... etc

Then Create a Custom Destination with a GoTo string of:


Now you can choose the custom Destination for your IVR. If you also need a dialable feature code to reach the custom destination, create a Misc Application.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.