<div dir="ltr">Hi guys.<div><br></div><div>I'm trying to realize active/active schema with kamailio.</div><div>Topology is as following:</div><div>active/active kamailio -> routing server (asterisk)</div><div><br></div><div>Kamailio servers work as registrar/location servers and sbc.</div><div>Asterisk server performs routing functions for calls.</div><div><br></div><div>We use sip / sips / ws / wss for signaling.</div><div><br></div><div>Schema built on aws platform and both kamailio have virtual ip address.</div><div>So when first kamailio crashes, second one assigns ip address of first kamailio. And vice-versa.</div><div><br></div><div>Both kamailio listens on both shared addresses all the time (with help of sysctl non lolcal bind function).</div><div><br></div><div>Problem occurs when first kamailio goes down and second kamailio gets ip address of first one. Asterisk tries to send in-dialog requests (for dialogs that were established on first kamailio), request goes to second kamailio and asterisk gets a socket error.</div><div><br></div><div>And this is proper behaviour I think, because first kamailio established tcp connection with asterisk from certain port, that is not listened on second kamailio.</div><div><br></div><div>So that, I think that the solution is to use force_send_socket function, but I'm not confident about it.</div><div>If anyone has ideas, please send your advices.</div><div>Thanks in advance.</div><div><br></div><div><br></div><div><br><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span>-- <br></span>BR, Donat Zenichev
<br>Wnet VoIP team
<br>Tel:  +380(44) 5-900-808
<br><a href="http://wnet.ua" target="_blank">http://wnet.ua</a></div></div>
</div></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
        <tr>
        <td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>