VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
freeswitch-users at li... Guest
|
Posted: Mon Apr 19, 2021 6:17 am Post subject: [Freeswitch-users] Lua API call delays the packet sending ou |
|
|
------ Start of attached email. 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.
------ End of attached email ------
_________________________________________________________________________
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 |
|
Back to top |
|
|
dujinfang at gmail.com Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|