Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Lua API call delays the packet sending out


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
freeswitch-users at li...
Guest





PostPosted: Mon Apr 19, 2021 6:17 am    Post subject: [Freeswitch-users] Lua API call delays the packet sending ou Reply with quote

------ 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





PostPosted: Fri Apr 30, 2021 9:19 pm    Post subject: [Freeswitch-users] Lua API call delays the packet sending ou Reply with quote

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@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> wrote:

Quote:



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



--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services