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.

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to