konabi schrieb:(Die Variable kann nicht als Argument dem AGI Script übergeben werden)
fwrite(STDOUT, "SET VARIABLE TRUNK ".$TRUNK_NAME." \n");
fflush(STDOUT);
fwrite(STDOUT, "SET VARIABLE MAX ".$CHANNEL_MAX." \n");
fflush(STDOUT);
exten => s,1,NoOp(Trunkname: ${TRUNK})
exten => s,n,NoOp(Maximale Channels: ${MAX})
[SIZE=3][FONT=monospace]exten => s,1,AGI(mytest.agi,${TRUNK},${MAX})
[FONT=Verdana]
[/FONT][/FONT][/SIZE]
[FONT=Courier New]
[/FONT] [SIZE=3][FONT=monospace][FONT=Verdana][FONT=Courier New] $TRUNK = $argv[1];
$MAX = $argv[2];[/FONT]
[/FONT][/FONT][/SIZE][FONT=Verdana]
[/FONT]