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 can not get the passing variable value. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040323/79bb1c91/attachment.htm
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 hangup.agi script. > I have tried > $var = $ARGV[0]; > $var = $ARGV[1]; > but still can not get the passing variable value.-- Eric Wieling * BTEL Consulting * 504-899-1387 x2111 "In a related story, the IRS has recently ruled that the cost of Windows upgrades can NOT be deducted as a gambling loss."
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|arg1&arg2 with spaces&arg3) (thats a pipe and then the args with & to separate them) Then at the top of the perl script do: @ARGV = split('&',$ARGV[0]); Now they are split! Jeb Campbell jebc@c4solutions.net Cell: 865-385-1437