Hi
Can I ask some help please In my php script I return array to my asterisk
Hi
Can I ask some help please In my php script I return array to my asterisk
set_variable
Sets a variable to the specified value. The variables so created can later be used by later using ${} in the dialplan
Example
$agi->set_variable(“code”,$row[password]);
same=>n,verbose( ${code})
Thank you for the quick reply.
$agi->set_variable("code",$row[password]); is this done by php script ?, so there is no way to access the value of array in dialpan ? only that kind of solution of yours will work ?
Best Regards.
Did you read carefully the whole description ?
If you have used before PHP and Asterisk you will notice the above code is a PHP code not an Asterisk dial plan syntax…
PHP CODE
$agi->set_variable(“code”,$row[password]);
ASTERISK DIALPLAN CODE
same=>n,verbose( ${code})