[asterisk-users] How to pass variable back and forth from dialplan to php file?

bruce bruce bruceb444 at gmail.com
Mon Jun 14 11:00:16 CDT 2010


Hi Everyone,

I have a php file that if an argument is passed to it, it will echo a number
back. I am looking to use system() in dial-plan to send ${EXTEN} to it and
then to get that processed value back from the php file and put it in $var
back into asterisk dial-plan. While trying this method doesn't work:

exten => _x.,1,SetVar(var = system(php /file.php ${EXTEN})
exten => _x.,n,NoOp(${var})

What is right syntax for line 1?

Thanks,
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100614/18b08f95/attachment.htm 


More information about the asterisk-users mailing list