[Freeswitch-users] mod_curl data answer
freeswitchtest
freeswitch at top-nachhilfe.de
Thu Feb 23 20:19:07 MSK 2012
Am 23.02.2012 18:07, schrieb Michael Collins:
> I think this might be a classic case of not understanding dialplan
> phases. Remember, the FreeSWITCH dialplan is parsed then executed,
> which is very different from how Asterisk does it. If you want to
> understand this subject in detail then I highly recommend chapters 5
> and 8 of the FreeSWITCH book. (See freeswitch.org
> <http://freeswitch.org> for links to purchasing it.)
>
> The short answer for you is to try using the inline="true" attribute:
>
> <action application="curl"
> data="http://www.mywebseite.de/freeswitch/call_in.php/?id=1234356788 json"
> inline="true"
> />
>
> See if that makes a difference and let us know.
> -MC
>
> On Wed, Feb 22, 2012 at 5:56 AM, freeswitchtest
> <freeswitch at top-nachhilfe.de <mailto:freeswitch at top-nachhilfe.de>> wrote:
>
> Hi,
>
> I am new in freeswitch but have used asterisk for more than 4 years.
>
> So I have scripts in php which connect to our internal mysql
> database an
> for example show who is calling.
>
> I trie in freeswitch with curl:
>
> <action application="curl"
> data="http://www.mywebseite.de/freeswitch/call_in.php/?id=1234356788
> json"/>
>
> If I make it at the CLI I can see the correcct answer - the number of
> our customer
>
> But how can I read the correct answer in the freeswitch dialplan. I
> thought of something like:
>
> <action application="set" data="hurra=${curl_response_data}"/>
>
> I tried in different ways but never got the number.
>
> Where I am wrong ?
>
> Thanks for your help
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
I bought the book and started reading :-)
Thank you for the answer !!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120223/5a60120d/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list