[Asterisk-Users] Passing Argument to AGI

2004-03-23 Thread Unavailable ID
Can someone help me with passing argument to agi script. What I'm trying to this is execute agi script when hangup h,1,AGI(hangup.agi|string-argv-2348448) but can not get the argument variable passed to the hangup.agi script. I have tried $var = $ARGV[0]; or $var = $ARGV[1]; but still

Re: [Asterisk-Users] Passing Argument to AGI

2004-03-23 Thread Eric Wieling
Try h,1,AGI(hangup.agi,string-argv-2348448) On Tue, 2004-03-23 at 16:32, wrote: Can someone help me with passing argument to agi script. What I'm trying to this is execute agi script when hangup h,1,AGI(hangup.agi|string-argv-2348448) but can not get the argument variable passed to the

Re: [Asterisk-Users] Passing Argument to AGI

2004-03-23 Thread Jeb Campbell
On Mar 23, 2004, at 5:32 PM, Unavailable ID wrote: h,1,AGI(hangup.agi|string-argv-2348448) I have been using this for perl: exten = s,1,AGI(fax-incoming.agi|arg1arg2 with spacesarg3) (thats a pipe and then the args with to separate them) Then at the top of the perl script do: @ARGV =