[Asterisk-Users] Passing Argument to AGI

Jeb Campbell jebc at c4solutions.net
Tue Mar 23 18:49:53 MST 2004


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 at c4solutions.net
Cell: 865-385-1437




More information about the asterisk-users mailing list