On 11/2/07, Eric ManxPower Wieling <[EMAIL PROTECTED]> wrote:
>
> Sadly those docs cover the situation of this:
>
> exten => 666,1,Set(MY_VAR=fred)
> exten => 666,n,AGI(simple_c_prgm)
>
> Not this:
> exten => 666,1,AGI(simple_c_prgm|123|789)
Looking back over it, you're right.
However, multiple args passed to the AGI work fine; they come in the same
way as any standard argc/argv program.
i.e.:
AGI(agentpause.agi
,--mode=pause,--autopause,--agent=${AGENTCODE},--pausereason=${PAUSEREASON})
I handle this (in Perl) using Getopt::Long, which knows nothing of AGI's
stdin/stdout mechanics:
GetOptions(
\%opts,
'mode=s',
'agent=i',
'pausereason=i',
'autopause!',
) or die "can't parse command line";
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users