<div dir="ltr"><div dir="ltr">On Tue, Nov 26, 2019 at 7:53 PM Jai Rangi <<a href="mailto:jprangi@gmail.com">jprangi@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>That's what I thought initially. There are around 1000 registrations (mostly TCP) (LUA + Mysql) with timeout of 15 minutes. There are lots of BLFs, subscribes and shared lines, and multiple registrations (average of 3.5, so total of 3500 registrations points). We do ping for keepalive every 3 minutes. I guess increasing ping time and registration timeout to 30 minutes will help. <br></div><div>Thoughts? <br></div><div><br></div></div></blockquote><div><br></div><div>You may want to uncomment (or add if not there) the second line:</div><div><br></div><div>   <!-- launch a new thread to process each new inbound register when using heavier backends --><br>    <!-- <param name="inbound-reg-in-new-thread" value="true"/> --></div><div><br></div><div>in sip_profiles/internal.xml</div><div><br></div><div>-giovanni<br></div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>-Jai<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 25, 2019 at 4:33 PM Mike Jerris <<a href="mailto:mike@freeswitch.org" target="_blank">mike@freeswitch.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Our code to handle options couldn’t be much simpler.  If you are seeing massive delays the only thing I would guess would be that there is some sort of massive ddos type attack causing significant queuing of inbound requests or a register storm and your registrations handlers are getting behind.  Take a look at logging and sip traffic around the same time for clues on what else might be happening on this sip profile at the same time.<br><div><br><blockquote type="cite"><div>On Nov 25, 2019, at 12:22 PM, Jai Rangi <<a href="mailto:jprangi@gmail.com" target="_blank">jprangi@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>Hello,</div><div><br></div><div>Every now and then we see long delay in response for options. Example in the trace below free-switch took 44 seconds before it send 200 OK. <br></div><div><br></div><div>What will be best way to troubleshoot this? </div><div><br></div><div>U 2019/11/25 10:49:27.185325 <a href="http://192.168.1.1:49020/" target="_blank">192.168.1.1:49020</a> -> <a href="http://192.168.1.5:5060/" target="_blank">192.168.1.5:5060</a><br>OPTIONS <a href="mailto:sip%3A100000@192.168.1.5" target="_blank">sip:100000@192.168.1.5</a> SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.2.1:49020;branch=z9hG4bKhjhs8ass877.<br>Max-Forwards: 70.<br>To: <a href="mailto:sip%3A100000@192.168.1.5" target="_blank">sip:100000@192.168.1.5</a>.<br>From: <a>sip:1000@192.168.2.1:49020;tag=cbzxq0</a>.<br>Call-ID: <a href="mailto:hcrtfi@192.168.2.1" target="_blank">hcrtfi@192.168.2.1</a>.<br>CSeq: 1 OPTIONS.<br>Accept: application/sdp.<br>Content-Length: 0.<br>.<br><br>U 2019/11/25 10:49:51.819959 <a href="http://192.168.1.5:5060/" target="_blank">192.168.1.5:5060</a> -> <a href="http://192.168.1.1:49020/" target="_blank">192.168.1.1:49020</a><br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP 192.168.2.1:49020;branch=z9hG4bKhjhs8ass877;received=192.168.1.1.<br>From: <<a href="http://sip:1000@192.168.2.1:49020/" target="_blank">sip:1000@192.168.2.1:49020</a>>;tag=cbzxq0.<br>To: <<a href="mailto:sip%3A100000@192.168.1.5" target="_blank">sip:100000@192.168.1.5</a>>;tag=aUUQj55rcetma.<br>Call-ID: <a href="mailto:hcrtfi@192.168.2.1" target="_blank">hcrtfi@192.168.2.1</a>.<br>CSeq: 1 OPTIONS.<br>Contact: <sip:<a href="http://192.168.1.5:5660/" target="_blank">192.168.1.5:5660</a>>.<br>User-Agent: Monitor.<br>Accept: application/sdp.<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.<br>Supported: path, replaces.<br>Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.<br>Content-Length: 0.</div><div><br></div></div>
_________________________________________________________________________<br><br>The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank">https://signalwire.com</a><br>Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>Build your next product on our scalable cloud platform.<br><br>Join our online community to chat in real time <a href="https://signalwire.community" target="_blank">https://signalwire.community</a><br><br>Professional FreeSWITCH Services<br><a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a></div></blockquote></div><br></div>_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div></div>