[Asterisk-Users] AGI/php help needed with variables

Warren H. Prince wprince at unconundrum.com
Sun Feb 29 21:00:09 MST 2004


I want to pull the current extension into a php script, but can't seem 
to figure out the syntax.  I've tried:

$agi->agi_exec("GET VARIABLE EXTEN $EXTEN");
$EXTEN = $agi->response_var($EXTEN);
$EXTEN = $agi->request("agi_extension");
$EXTEN = $agi->get_variable('EXTEN');

and some other variations, but none seem to work.  The first example is 
the only one that doesn't cause an error, but it still doesn't return 
the extension.  Could someone offer a hand?

Thanks in advance.




More information about the asterisk-users mailing list