[Freeswitch-users] return value in diaplan from external script

Madovsky infos at madovsky.org
Mon Jan 10 06:53:45 MSK 2011

indeed Mod_db is perfect for that

  ----- Original Message ----- 
  From: Avi Marcus 
  To: FreeSWITCH Users Help 
  Sent: Sunday, January 09, 2011 10:12 PM
  Subject: Re: [Freeswitch-users] return value in diaplan from external script

  You can't, or at least you can't directly. While you can call a php script, freeswitch will not wait for the output. Here's a few options: -use lua to do your processing. That can be run inline to set variables and the like. (Easiest if you can get your head around the lua) -if you just need a simple sql query, use somethibg like mod odbc query from the git contrib. -use xml curl so you can completely control the dialplan flow -or even more if lua isn't your thing you can create an esl php applicatio that can control the call in realtime, rather than just generating dialplan xml. -or an iffy idea -call the php script, have it save to sql or something, and have the xml dialplan sleep for a moment and then retrieve it.

  On Jan 10, 2011 4:08 AM, "Madovsky" <infos at madovsky.org> wrote:
  > I'd like to get the value from a PHP or Perl function back
  > to the dialplan. not sure how get the value.
  > Thanks


  FreeSWITCH-users mailing list
  FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110109/0fbad597/attachment.html 

More information about the FreeSWITCH-users mailing list