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 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@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org