[Freeswitch-users] curl zombie_exec
Seven Du
dujinfang at gmail.com
Tue Apr 28 08:22:18 UTC 2020
you have to patch mod_curl do to that like below. please make a pr if it
works for you.
SWITCH_ADD_APP(app_interface, "curl", "Perform a http request", "Perform a
http request",
curl_app_function, SYNTAX, SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC |
SAF_ZOMBIE_EXEC);
On Tue, Apr 28, 2020 at 4:07 AM Mai Duy Quang <quang at telepro.me> wrote:
> Hi,
>
> I call curl in lua script but has this error, been googling all day long
> but no hope. Any have fix for that?
>
> Channel is hungup and application curl does not have the zombie_exec flag.
>
> my lua code:
> -- to allow curl after the call
> session:execute("set_zombie_exec");
>
> freeswitch.consoleLog("notice", "[curl][ring groups][missed] " ..
> missed_call_data .. " ");
>
> session:execute("curl", missed_call_data .. " phone=" .. caller_id_number
> .. "&target=" .. ring_group_name);
> curl_response_code = session:getVariable("curl_response_code")
> curl_response = session:getVariable("curl_response_data”)
>
>
> Many thanks,
> Johnathan Mai
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://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
> https://freeswitch.com
--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200428/5b48c11d/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list