I would think AGI would be better. ?

 

I don't think system() returns anything, except maybe a success/fail ?

 

 

 

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bruce bruce
Sent: Monday, June 14, 2010 12:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to pass variable back and forth from dialplan
to php file?

 

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

 

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to