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
John Baker
2004-Mar-22 19:08 UTC
[Asterisk-Users] passing multiple arguments to agi scripts
tad wrote:> 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 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >I've experienced the same and I thought it was just me. Man, that drove me crazy. John