[asterisk-users] AGI Script with parameters
Tim Panton
tim at mexuar.com
Tue Nov 28 04:04:18 MST 2006
On 28 Nov 2006, at 08:47, Olivier Saulnier wrote:
> Hello,
>
> I want to use AGI for give some information for a softphone, as:
> exten => 0470022762,2,AGI(/ruby/ring.rb 192.168.0.10 5010)
> We use Ruby langage.
> The line doesn't worksin as this, but works with shell command.
> Also, if i modify my ruby script for give in the code the ip adress
> and port number, it works!
>
> Do you have any idea??
> best regards,
>
We use a "?" :
exten => 1,n(agi),Agi(${AGI}?FORWARD_CALLCLASS_ID=$
{FORWARD_CALLCLASS_ID})
But we also do :
exten => 1,n,set(STRIKE2=NO)
; set more vars....
exten => 1,n(agi),Agi(${AGI})
then do a getVariable("STRIKE2") in the AGI
Tim.
http://www.westhawk.co.uk/industries/voip.html
More information about the asterisk-users
mailing list