<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Rhys,</p>
<p>Seems you're looking into something called "anycast". If it's the
case, have you checked
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamailio-minimal-anycast.cfg">https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamailio-minimal-anycast.cfg</a>
?</p>
<p>But overall you are correct, <font face="Courier New, Courier,
monospace">myself</font> is not enough clever to get if
interface is active or not.<br>
</p>
<pre class="moz-signature" cols="72">Regards,
Igor</pre>
<div class="moz-cite-prefix">On 14.12.2021 05:50, Rhys Hanrahan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:29D4A93C-41D6-408F-8DDF-5B14851835FC@nexusone.com.au">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">Hi
Everyone,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">I
have Kamailio acting as a registrar, using DMQ to replicate
usrloc between nodes. I’m relaying INVITEs to the home
registrar, but skipping this if (uri == myself) is true.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB">In
my lab I just setup my SBCs in an active/active mode,
similar to the link below. So I have 2x VIPs and both SBCs
listen on both, but the first VIP is only master on SBC01
and the second VIP is only master on SBC02.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><a
href="https://docs.nginx.com/nginx/admin-guide/high-availability/ha-keepalived-nodes/"
moz-do-not-send="true">https://docs.nginx.com/nginx/admin-guide/high-availability/ha-keepalived-nodes/</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-GB"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB">My issue is that now “myself” will always
return true even if the virtual IP is actually not active
on this node at the moment, so the invite is never relayed
properly if it’s on another node. I guess “myself” is just
blindly looking at the list of Ips that are configured
with either listen= or alias= and doesn’t care if the IP
actually exists on the server at the time, or not?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB">I am thinking I may have to ditch relying on
“myself” entirely and come up with some other way of
checking for local requests, but I am wondering if there’s
a good way of approaching this? I was thinking of perhaps
triggering an add/remove of listen directives (or
something) when a failover of a VIP happens, though this
seems kind of heavy handed. Hoping there is a better way.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB">Has anyone else tried doing active/active
Kamailio instances like this?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"
lang="EN-GB">Thanks!</span><span
style="font-size:11.0pt;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-size:11.0pt;color:black" lang="EN-GB"><br>
<b>Rhys Hanrahan</b> | Chief Information Officer<br>
<b>e:</b> <a href="mailto:rhys@nexusone.com.au"
moz-do-not-send="true"><span style="color:#0563C1">rhys@nexusone.com.au</span></a>
<br>
<br>
</span><span lang="EN-GB"><a
href="http://www.nexusone.com.au/"
moz-do-not-send="true"><span
style="font-size:11.0pt;color:black;text-decoration:none"><img
style="width:2.375in;height:.5937in"
id="Picture_x0020_2"
src="cid:part3.06E20AFA.EDC1990B@gmail.com"
alt="www.nexusone.com.au" class="" width="228"
height="57" border="0"></span></a></span><span
style="font-size:11.0pt;color:black" lang="EN-GB"> </span><span
lang="EN-GB"><a href="http://www.fusiontech.com.au/"
moz-do-not-send="true"><span
style="font-size:11.0pt;color:black;text-decoration:none"><img
style="width:2.052in;height:.6145in"
id="Picture_x0020_1"
src="cid:part5.07EFD011.2B545981@gmail.com"
alt="signature_132622389" class="" width="197"
height="59" border="0"></span></a></span><span
style="color:black" lang="EN-GB"><br>
</span><b><span style="color:#0070C0" lang="EN-GB"><br>
</span></b><b><span style="color:#1F4E79" lang="EN-GB">NEXUS
ONE</span></b><b><span style="color:#0070C0"
lang="EN-GB"> </span></b><b><span style="color:black"
lang="EN-GB">|</span></b><b><span style="color:#0070C0"
lang="EN-GB"> FUSION TECHNOLOGY SOLUTIONS</span></b><b><span
style="font-size:11.0pt;color:#0070C0" lang="EN-GB"><br>
</span></b><b><span style="font-size:11.0pt;color:black"
lang="EN-GB">p:</span></b><span
style="font-size:11.0pt;color:black" lang="EN-GB"> 1800
NEXUS1 (1800 639 871) or 1800 565 845 <b>|</b> <b>a:</b> Suite
12.03 Level 12, 227 Elizabeth Street, Sydney NSW 2000<br>
<a href="http://www.nexusone.com.au/"
moz-do-not-send="true"><span style="color:#0563C1">www.nexusone.com.au</span></a> <b>|</b> <a
href="http://www.fusiontech.com.au/"
moz-do-not-send="true"><span style="color:#0563C1">www.fusiontech.com.au</span></a><br>
<br>
</span><i><span style="font-size:9.0pt;color:#767171"
lang="EN-GB">The information in this email and any
accompanying attachments may contain; a. Confidential
information of Fusion Technology Solutions Pty Ltd,
Nexus One Pty Ltd or third parties; b. Legally
privileged information of Fusion Technology Solutions
Pty Ltd, Nexus One Pty Ltd or third parties; and or c.
Copyright material Fusion Technology Solutions Pty Ltd,
Nexus One Pty Ltd or third parties. If you have received
this email in error, please notify the sender
immediately and delete this message. Fusion Technology
Solutions Pty Ltd, Nexus One Pty Ltd does not accept any
responsibility for loss or damage arising from the use
or distribution of this email.</span></i><span
style="font-size:10.0pt;color:black" lang="EN-GB"><br>
<br>
</span><i><span
style="font-size:8.0pt;color:#1F4E79;mso-fareast-language:EN-GB"
lang="EN-GB">Please consider the environment before
printing this email.</span></i><span
style="color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
</body>
</html>