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

bruce bruce bruceb444 at gmail.com
Mon Jun 14 12:41:53 CDT 2010


Hi Carlso,

Thanks for the input. I have done this in php and am not familiar with
phpagi.
So, there is absolutely no way to temporarily solve this problem by getting
the value back from php file?

Wondering if it would require a lot of work to change the php file to
phpagi?
Thanks,
Bruce

On Mon, Jun 14, 2010 at 12:12 PM, Carlos Chavez <cursor at telecomabmex.com>wrote:

> On Mon, 2010-06-14 at 12:00 -0400, bruce bruce wrote:
> > 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})
> >
> >
>
>         This is exactly what AGI was made for.  Look into the PHPAGI
> library.
>
> --
> Telecomunicaciones Abiertas de México S.A. de C.V.
> Carlos Chávez Prats
> Director de Tecnología
> +52-55-91169161 ext 2001
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100614/ce2bfe69/attachment.htm 


More information about the asterisk-users mailing list