[Asterisk-Users] passing multiple arguments to agi scripts

tad tad at media.mit.edu
Mon Mar 22 16:59:22 MST 2004


hi folks.

this may be common knowledge, but i haven't seen it documented. so...

it seems that one cannot pass multiple arguments to agi scripts? for
example, a line like this in extensions.conf:

exten => s,1,agi,script.agi|${CHANNEL}

successfully passes ${CHANNEL} as $ARGV[0] (i'm writing Perl)

however, this:

exten => s,1,agi,script.agi|${CHANNEL}|${CONTEXT}

fails to pass ${CONTEXT} as $ARGV[1]

i've got a workaround, so i'm not too concerned. but i am curious if i'm
my analysis is correct, and if so, thought it might be helpful to get this
message into the archives for future googlers.

over'n'out,
tad




More information about the asterisk-users mailing list