<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>indeed Mod_db is perfect for that</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=Avi@aMarcus.com href="mailto:Avi@aMarcus.com">Avi Marcus</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, January 09, 2011 10:12
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] return
value in diaplan from external script</DIV>
<DIV><BR></DIV>
<P>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.</P>
<DIV class=gmail_quote>On Jan 10, 2011 4:08 AM, "Madovsky" <<A
href="mailto:infos@madovsky.org">infos@madovsky.org</A>> wrote:<BR
type="attribution">> I'd like to get the value from a PHP or Perl function
back<BR>> to the dialplan. not sure how get the value.<BR>> <BR>>
Thanks<BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>