[asterisk-users] combining AGI with dialplans

james at dades.ca james at dades.ca
Fri Jun 15 22:36:22 CDT 2007


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/112 at testcntxt";
>     $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



More information about the asterisk-users mailing list