In my first message I included the example script:
> ***test.php***
> #!/usr/bin/php -q
> <?php
> require_once('phpagi.php');
> $agi = new AGI();
>
> $dialstr="IAX2/wayne/[EMAIL PROTECTED]";
> $agi->SetVar("JAMES",$dialstr);
> exit(0);
> ?>
I have found why it didn't work. I needed to call $agi->set_variable()
not $agi->SetVar. This does what I wanted and expected.
James
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users