---------- Forwarded message ----------
From: "VERMA Vineet (BCS/SPS)" <vineet.verma@bics.com>
To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@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@lists.freeswitch.org>
To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com