<div dir="ltr">Hi,<br><div><br>Please check how SIP works, but as far as I remember if Kamailio gets
200 from Freeswitch #2, it will send cancell to all other branches.
<br><br></div><div>With kind regards,<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Tue, Apr 10, 2018 at 9:01 AM, Atul Thosar <span dir="ltr"><<a href="mailto:atulthosar@gmail.com" target="_blank">atulthosar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;color:rgb(53,28,117)">Any pointers, suggestions.<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_7619849374642533645gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:courier new,monospace;color:rgb(51,0,153)">--<br><div style="font-family:courier new,monospace;color:rgb(53,28,117);display:inline" class="gmail_default">Thanks<span style="font-family:courier new,monospace;color:rgb(51,0,153)">,</span><br style="font-family:courier new,monospace;color:rgb(51,0,153)"></div></span><span style="font-family:courier new,monospace;color:rgb(51,0,153)">Atul Thosar</span><br style="font-family:courier new,monospace;color:rgb(51,0,153)"><span style="font-family:courier new,monospace;color:rgb(102,0,0)"><span style="color:rgb(51,0,153)"></span></span><span style="font-family:courier new,monospace;color:rgb(102,0,0)"><span style="color:rgb(51,0,153)"></span></span><br style="color:rgb(51,0,153)"><span style="font-family:courier new,monospace;color:rgb(102,0,0)"><font style="color:rgb(51,0,153)" size="2"><br></font></span></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On 8 April 2018 at 17:23, Atul Thosar <span dir="ltr"><<a href="mailto:atulthosar@gmail.com" target="_blank">atulthosar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:courier new,monospace;color:rgb(53,28,117)">Thanks all for your responses.<br><br><br>I am new to Kamailio, so appreciate if some one can help me with sample code where kamailio routes call to another FreeSWITCH server if 1st FreeSWITCH server does not respond in some time, say 3 sec. Btw I have a query on this approach. Consider a following scenario - <br><br>0. kamailio is configured w/ 2 FreeSWITCH servers in dispatcher and with configuration where on not receiving response to INVITE in 3 sec, kamailio will forward the call to another FreeSWITCH server.<br>1. kamailio receives INVITE and forwards INVITE to FreeSWITCH #1<br>2. FreeSWITCH #1 receives INVITE, but 100 trying response could not reach to kamailio bec of network break, say for 4 sec.<br>3. So After 3 sec, since kamailio does not receive any response from FreeSWITCH #1, it forwards INVITE to FreeSWITCH #2<br>4. FreeSWITCH #2 responds with 200 OK and kamailio receives it.<br>5. After 4 sec, when network recovers, FreeSWITCH #1 sends 200 OK to kamailio. How kamailio would behave here? Will it drops the call w/ FreeSWITCH #1?</div><div style="font-family:courier new,monospace;color:rgb(53,28,117)"><br></div><div class="gmail_extra"><br clear="all"><div><div class="m_7619849374642533645m_9058186570313884308gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:courier new,monospace;color:rgb(51,0,153)">--<br><div>Thanks<span style="font-family:courier new,monospace;color:rgb(51,0,153)">,</span><br style="font-family:courier new,monospace;color:rgb(51,0,153)"></div></span><span style="font-family:courier new,monospace;color:rgb(51,0,153)">Atul Thosar</span><br style="font-family:courier new,monospace;color:rgb(51,0,153)"><span style="font-family:courier new,monospace;color:rgb(102,0,0)"><span style="color:rgb(51,0,153)"></span></span><span style="font-family:courier new,monospace;color:rgb(102,0,0)"><span style="color:rgb(51,0,153)"></span></span><br style="color:rgb(51,0,153)"><span style="font-family:courier new,monospace;color:rgb(102,0,0)"><font style="color:rgb(51,0,153)" size="2"><br></font></span></div></div></div><div><div class="m_7619849374642533645h5">
<br><div class="gmail_quote">On 7 April 2018 at 21:46, Julien Chavanton <span dir="ltr"><<a href="mailto:jchavanton@gmail.com" target="_blank">jchavanton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div><br>I would set it to a low value to make sure you avoid sending calls a Freeswitch server facing problems, in the case of Freeswitch the same GW will also handle media, if it is having hardtime repliyng to SIP OPTIONS it will very likely have problem handling the media.<br><br>It may also get worst during the call even stop responsding and loose transaction in progress or in dialog transactions later like session timers and BYEs.<br><br>Off loading it may able help other calls already using it. <br><br><br></div><div>You may push your strategy further thinking about :<br></div><div><br></div><div>- The risk is that you run out of GW, could be handled when ds_select is returning nothing.<br></div><div>- Another side effect, would be that you are sending more traffic to other GW, they must be able to handle the extra load.<br></div><div><br></div><div>In kamailio 5 there is a new algorithm that behaves better when one GW is put out of service. <br><br><span class="m_7619849374642533645m_9058186570313884308m_-9016147023596210097gmail-quote">“<span class="m_7619849374642533645m_9058186570313884308m_-9016147023596210097gmail-quote">11</span>”</span> - use relative weight based load distribution.
You have to set the attribute 'rweight' per each address in
destination set. Active host usage probability is
rweight/(SUM of all active host rweights in destination group).
<br></div><div><br></div><div>Regards<span class="m_7619849374642533645m_9058186570313884308HOEnZb"><font color="#888888"><br></font></span></div><span class="m_7619849374642533645m_9058186570313884308HOEnZb"><font color="#888888"><div>Julien<br></div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_7619849374642533645m_9058186570313884308h5">On Mon, Apr 2, 2018 at 6:06 PM, Atul Thosar <span dir="ltr"><<a href="mailto:atulthosar@gmail.com" target="_blank">atulthosar@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_7619849374642533645m_9058186570313884308h5"><div dir="ltr"><span style="color:rgb(0,0,0)"><span style="font-family:trebuchet ms,sans-serif">Hi All,<br>I am using Kamailio <div><b></b></div><b>v4.4.x</b> to load balanced traffic to FreeSWITCH servers. I have query regarding ds_ping_interval and ds_probing_threshold. We have very high traffic (around 200-400<div> (CPS)</div> calls per sec) hitting on Kamailio which then distribute it to 2-3 FreeSWITCH servers.<div> </div>What is the optimal value should I set to ds_ping_interval and ds_probing_threshold?<br><br>If I set <div></div>ds_ping_interval=2 and <div></div>ds_probing_threshold=1 then in every 2 sec, I would come to know if my <div></div>FreeSWITCH server is down/up. But by setting such low values, I afraid there would <div>be </div>lot of SIP traffic on network.<div> If I set high (say
<div></div>ds_probing_threshold=5) then I may loose high number of calls (200 CPS, I will loose 1000 calls) in case
<div></div>FreeSWITCH server is down. </div><br><br>As I said earlier we have very high traffic hitting on Kamailio, can't kamailio use INVITE itself to probe FreeSWITCH server is down/up? In case of low traffic can't it switch over to OPTION mechanism?<br><br>--<br><div>Thanks in Advance</div>,<br><div></div>Atul</span></span><div><span style="color:rgb(0,0,0)"><span style="font-family:trebuchet ms,sans-serif"></span></span></div><span style="color:rgb(0,0,0)"><span style="font-family:trebuchet ms,sans-serif"><div></div><div></div><br><br></span></span></div>
<br></div></div><span>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>