[Freeswitch-users] Calling Web service from Freeswitch

Seven Du dujinfang at gmail.com
Mon Apr 26 20:25:29 PDT 2010


is there a timeout param for curl ?

2010/4/27 Alain MELIOT <alain.meliot at gmail.com>:
> Hi steven
>
> Thank you for your answer
> i will try
>
> 2010/4/26 Steven Ayre <steveayre at gmail.com>
>>
>> To use mod_curl to do a GET/POST request:
>>
>> <action application="curl"
>> data="http://www.myhost.com/script?getName=myGetValue" />
>> <action application="curl" data="http://www.myhost.com/script post
>> postName=myPostValue%20a%20space" />
>>
>> You'd have to form a request string to match what your application
>> expects. E.g.
>> <action application="curl" data="http://www.myhost.com post
>> username=${username}&ip=${network_addr}"/>
>>
>> You can parse the XML from a script after the curl request, you'll
>> find the curl_response_code and curl_response variables contain the
>> HTTP status code (200 if ok) and XML result.
>>
>> -Steve
>>
>>
>> On 26 April 2010 17:28, Alain MELIOT <alain.meliot at gmail.com> wrote:
>> >
>> > Hi All
>> >
>> > New to freeswitch i rewrite an asterisk application to freeswitch.
>> > I have a javascript application where i collect some user data and i
>> > must
>> > send  the data to a web service (wsdl) for processing.
>> > The problem is that i have no idea  how to call the web service from
>> > curl or
>> > javascript.
>> > Any help will be welcome.
>> > Thank in advance
>> >
>> > Alain MELIOT
>> > _______________________________________________
>> > 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
>> >
>> >
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
>
>



-- 
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn



More information about the FreeSWITCH-users mailing list