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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to