[Freeswitch-users] Lua API call delays the packet sending out
Seven Du
dujinfang at gmail.com
Sat May 1 02:04:44 UTC 2021
I have a patch that could do async curl using the curl multi api, but not
finished yet.
On Mon, Apr 19, 2021 at 7:07 PM VERMA Vineet (BCS/SPS) via FreeSWITCH-users
<freeswitch-users at lists.freeswitch.org> wrote:
>
>
>
> ---------- Forwarded message ----------
> From: "VERMA Vineet (BCS/SPS)" <vineet.verma at bics.com>
> To: "freeswitch-users at lists.freeswitch.org" <
> freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Mon, 19 Apr 2021 11:00:44 +0000
> Subject: Lua API call delays the packet sending out
>
> Dears,
>
>
>
> I am facing the issue that when REST API triggers the freeswitch I am
> sending the reply with
>
>
>
> Following code:
>
>
>
> * stream:write("HTTP/1.1 200 OK\r\n")*
>
> * if (accept == "application/json" or accept == "*/*") then*
>
> * stream:write("Content-Type: application/json\r\n")*
>
> * else*
>
> * stream:write("Content-Type: text/plain\r\n")*
>
> * end*
>
> * stream:write("\r\n")*
>
>
>
> but it seems before packet it out , there is as deplay of 2-3 sec .
>
>
>
> can you please suggest how to solve this?
>
> I already tried
>
> stream:shutdown();
>
> and
>
> stream:close()
>
>
>
> but did not helped.
>
>
>
>
>
> Thanks & Regards
>
> *Vineet Verma*
> This e-mail cannot be used for other purposes than BICS business use.
>
>
>
> ---------- Forwarded message ----------
> From: "VERMA Vineet (BCS/SPS) via FreeSWITCH-users" <
> freeswitch-users at lists.freeswitch.org>
> To: "freeswitch-users at lists.freeswitch.org" <
> freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Mon, 19 Apr 2021 04:07:36 -0700 (PDT)
> Subject: [Freeswitch-users] Lua API call delays the packet sending out
> _________________________________________________________________________
>
> 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/20210501/9536b58b/attachment.html>
More information about the FreeSWITCH-users
mailing list