Re: Best approach for 2-node active-active Kamailio setup

Asmaa BOUDDYACH via sr-users <[email protected]> Wed, 8 Jul 2026 17:39:58 +0200
Newsgroups gmane.comp.voip.ser
Message-ID <CAFZyeg7_0Y_4jqvyf257sX4Mji9RD3Mey2a=CvBxhpZGWei1vw@mail.gmail.com>
--===============0649821960==
Content-Type: multipart/alternative; boundary="000000000000a3822506561b52f0"

--000000000000a3822506561b52f0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi S=C3=A9rgio,

Thank you for your questions.

To answer:

1. Call balancing and failover between the 2 DCs will be handled by the
operator via SIP OPTIONS ping. The operator will send traffic to Kamailio
Node 1 (DC1) as primary, and automatically failover to Kamailio Node 2
(DC2) if Node 1 stops responding to OPTIONS.

2. Both Kamailio nodes are exposed directly to the public Internet, each
with their own public IP address.

Best regards

Le mer. 8 juil. 2026 =C3=A0 17:04, Sergio Charrua <[email protected]> =
a
=C3=A9crit :

> Some questions imply
>
> - as this is a multi DC deployment, how will your calls be balanced
> between the 2 DCs and between nodes? Will you have an SBC handling load
> balancing and failover?
> - are the nodes, in each DC, available in a private network only (i.e: SB=
C
> talks with Kamailio nodes using private IPs or VPN) or are they facing
> public networks?
>
> I would use 2 nodes in each DC, in active-passive mode, maybe sharing a
> VIP between nodes of same DC (though DNS might be better option). Failove=
r
> is never enough. DMQ to share dialogs between nodes on each DC.
> And in case you have an SBC handling load balancing and failover, use DNS=
.
>
> Atenciosamente / Kind Regards / Cordialement / Un saludo,
>
>
> *S=C3=A9rgio Charrua*
>
> *www.kahea.ai <http://www.kahea.ai> / www.voip.pt <http://www.voip.pt>*
>
> *OpenTelecom* - Consulting for Telecoms, Lda
> Tel.: +351  <callto:+351+91+104+12+66>91 631 11 44
>
> Email : *[email protected] <[email protected]>*
>
> This message and any files or documents attached are strictly confidentia=
l
> or otherwise legally protected.
>
> It is intended only for the individual or entity named. If you are not th=
e
> named addressee or have received this email in error, please inform the
> sender immediately, delete it from your system and do not copy or disclos=
e
> it or its contents or use it for any purpose. Please also note that
> transmission cannot be guaranteed to be secure or error-free.
>
>
>
>
>
>
>
>
> On Wed, Jul 8, 2026 at 3:57=E2=80=AFPM Asma BOUDDYACH via sr-users <
> [email protected]> wrote:
>
>> Hi ,
>>
>> I am currently deploying a Kamailio SBC infrastructure with 2 nodes, one
>> per datacenter, and I would like to set them up in active-active mode.
>>
>> I have no experience yet with multi-node Kamailio setups and I would lik=
e
>> to ask:
>>
>> 1. What is the recommended approach for a 2-node active-active Kamailio
>> deployment today?
>>
>> 2. What modules or mechanisms should I use to synchronize state between
>> the two nodes (calls, registrations, etc.)?
>>
>> 3. Are there any known issues or limitations I should be aware of before
>> starting the configuration?
>>
>> Any guidance or documentation pointers would be greatly appreciated.
>>
>> Best regards,
>>
>> This message and any of its attachments is intended solely for the
>> addresses and is confidential. If you receive this message in error, ple=
ase
>> delete it and immediately notify the sender. Any use not in accord with =
its
>> purpose, any dissemination or disclosure, either whole or partial, is
>> prohibited except formal approval. The internet cannot guarantee the
>> integrity of this message. The INTELCIA Group shall (will) not therefore=
 be
>> liable for the message if modified.
>>
>> =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94
>>
>> Ce message et toutes les pi=C3=A8ces jointes sont =C3=A9tablis =C3=A0 l'=
intention
>> exclusive de ses destinataires et sont confidentiels. Si vous recevez ce
>> message par erreur, merci de le d=C3=A9truire et d=E2=80=99en avertir im=
m=C3=A9diatement
>> l=E2=80=99exp=C3=A9diteur. Toute utilisation de ce message non conforme =
=C3=A0 sa
>> destination, toute diffusion ou toute publication, m=C3=AAme partielle, =
est
>> interdite, sauf autorisation expresse. L=E2=80=99internet ne permettant =
pas
>> d=E2=80=99assurer l=E2=80=99int=C3=A9grit=C3=A9 de ce message, le groupe=
 INTELCIA d=C3=A9cline toute
>> responsabilit=C3=A9 au titre de ce message, dans l=E2=80=99hypoth=C3=A8s=
e o=C3=B9 il aurait =C3=A9t=C3=A9
>> modifi=C3=A9.
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions --
>> [email protected]
>> To unsubscribe send an email to [email protected]
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>>
>

--=20

*Cordialement*

*Asmaa BOUDDYACH*

Team Leader PBC =E2=80=93 D=C3=A9ploiement- Exploitation- Coordination  =E2=
=80=93
Communications Unifi=C3=A9es

Ex=C3=A9cutive R=C3=A9seau SI et Services \ Services \ Ligne de services Vo=
ix

Communications unifi=C3=A9es et Relations clients

SFR Business

*T=C3=A9l. **+33 (0) 1 87 64 78 13*

[image: logos-signature-e-mail-sfrbusiness]

--=20





















This message and any of its attachments is intended
solely for the addresses and is confidential. If you receive this message=
=20
in
error, please delete it and immediately notify the sender. Any use not=20
in
accord with its purpose, any dissemination or disclosure, either whole=20
or
partial, is prohibited except formal approval. The internet cannot=20
guarantee
the integrity of this message. The INTELCIA Group shall (will)=20
not therefore be
liable for the message if modified.



=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=
=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94



Ce
message et toutes les pi=C3=A8ces jointes sont =C3=A9tablis =C3=A0 l'intent=
ion=20
exclusive de
ses destinataires et sont confidentiels. Si vous recevez ce=20
message par erreur,
merci de le d=C3=A9truire et d=E2=80=99en avertir imm=C3=A9diatement=20
l=E2=80=99exp=C3=A9diteur. Toute
utilisation de ce message non conforme =C3=A0 sa=20
destination, toute diffusion ou
toute publication, m=C3=AAme partielle, est=20
interdite, sauf autorisation expresse.
L=E2=80=99internet ne permettant pas=20
d=E2=80=99assurer l=E2=80=99int=C3=A9grit=C3=A9 de ce message, le groupe
INTELCIA d=C3=A9cline toute=20
responsabilit=C3=A9 au titre de ce message, dans l=E2=80=99hypoth=C3=A8se
o=C3=B9 il aurait =C3=A9t=C3=A9=20
modifi=C3=A9.






--000000000000a3822506561b52f0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi S=C3=A9rgio,<br><br>Thank you for your questions.<br><b=
r>To answer:<br><br>1. Call balancing and failover between the 2 DCs will b=
e handled by the operator via SIP OPTIONS ping. The operator will send traf=
fic to Kamailio Node 1 (DC1) as primary, and automatically failover to Kama=
ilio Node 2 (DC2) if Node 1 stops responding to OPTIONS.<br><br>2. Both Kam=
ailio nodes are exposed directly to the public Internet, each with their ow=
n public IP address.<br><div><br></div><div>Best regards</div></div><br><di=
v class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gma=
il_attr">Le=C2=A0mer. 8 juil. 2026 =C3=A0=C2=A017:04, Sergio Charrua &lt;<a=
 href=3D"mailto:[email protected]">[email protected]</a>&gt; a =
=C3=A9crit=C2=A0:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
"><div dir=3D"ltr"><div>Some questions imply</div><div><br></div><div>- as =
this is a multi DC deployment, how will your calls be balanced between the =
2 DCs and between nodes? Will you have an SBC handling load balancing and f=
ailover?=C2=A0</div><div>- are the nodes, in each DC, available in a privat=
e network only (i.e: SBC talks with Kamailio nodes using private IPs or VPN=
) or are they facing public networks?</div><div><br></div><div>I would use =
2 nodes in each DC, in active-passive mode, maybe sharing a VIP between nod=
es of same DC (though DNS might be better option). Failover is never enough=
. DMQ to share dialogs between nodes on each DC.</div><div>And in case you =
have an SBC=C2=A0<span style=3D"background-color:transparent">handling load=
 balancing and failover, use DNS.</span></div><div><br></div><div><div dir=
=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div d=
ir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><p style=3D"color:rgb(0,0,0);m=
argin:0px;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"=
><span style=3D"font-family:Arial,sans-serif">Atenciosamente / Kind Regards=
 / Cordialement / Un saludo,</span></p><p style=3D"color:rgb(0,0,0);margin:=
0px;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"><b><s=
pan style=3D"font-family:Arial,sans-serif"><br></span></b></p><p style=3D"c=
olor:rgb(0,0,0);margin:0px;font-family:Calibri,sans-serif;background-color:=
rgb(253,253,253)"><b><span style=3D"font-family:Arial,sans-serif">S=C3=A9rg=
io Charrua</span></b></p><div><div dir=3D"ltr"><p style=3D"font-size:11pt;c=
olor:rgb(0,0,0);margin:0px;font-family:Calibri,sans-serif;background-color:=
rgb(253,253,253)"><b><span style=3D"font-size:9pt;font-family:Arial,sans-se=
rif;color:red"><span style=3D"color:rgb(0,0,0)"></span><span style=3D"color=
:rgb(51,102,255)"><a href=3D"http://www.kahea.ai" target=3D"_blank">www.kah=
ea.ai</a> /=C2=A0<a href=3D"http://www.voip.pt" target=3D"_blank">www.voip.=
pt</a></span></span></b></p><p style=3D"margin:0px;font-family:Calibri,sans=
-serif;background-color:rgb(253,253,253)"><span style=3D"font-family:Arial,=
sans-serif"><span style=3D"font-size:12px"><font color=3D"#000000"><b>OpenT=
elecom</b> - Consulting for Telecoms, Lda</font><br></span></span><span sty=
le=3D"color:rgb(0,0,0);font-size:x-small;font-family:Arial,sans-serif">Tel.=
:=C2=A0<span style=3D"color:rgb(51,102,153)"><a href=3D"callto:+351+91+104+=
12+66" style=3D"color:rgb(51,102,153);text-decoration:none" target=3D"_blan=
k">+351=C2=A0</a>91 631 11 44<br></span></span><font color=3D"#000000" size=
=3D"1"><span style=3D"font-family:&quot;Times New Roman&quot;,serif"></span=
></font></p><p style=3D"font-size:11pt;color:rgb(0,0,0);margin:0px;font-fam=
ily:Calibri,sans-serif;background-color:rgb(253,253,253)"><span style=3D"fo=
nt-size:x-small"><span style=3D"font-family:Arial,sans-serif;color:rgb(187,=
187,187)"><span style=3D"color:rgb(128,128,128)">Email :=C2=A0<strong><a hr=
ef=3D"mailto:[email protected]" style=3D"color:rgb(17,85,204)" target=
=3D"_blank">[email protected]</a></strong></span><br></span></span></p=
><table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" width=3D"650" styl=
e=3D"width:487.5pt">
 <tbody><tr>
  <td style=3D"padding:0cm">
  <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-family:&quot;Vo=
dafone Rg&quot;;color:rgb(204,204,204)">This message
  and any files or documents attached are strictly confidential or otherwis=
e
  legally protected.=C2=A0</span></p><p class=3D"MsoNormal"><span lang=3D"E=
N-US" style=3D"font-family:&quot;Vodafone Rg&quot;;color:rgb(204,204,204)">=
It is intended only for the individual or entity named. If
  you are not the named addressee or have received this email in error, ple=
ase
  inform the sender immediately, delete it from your system and do not copy=
 or
  disclose it or its contents or use it for any purpose. Please also note t=
hat
  transmission cannot be guaranteed to be secure or error-free. </span><spa=
n lang=3D"EN-US" style=3D"font-family:&quot;Times New Roman&quot;,serif"><s=
pan></span></span></p>
  </td>
 </tr>
</tbody></table><p style=3D"color:rgb(0,0,0);margin:0px;font-family:Calibri=
,sans-serif;background-color:rgb(253,253,253)">

<span style=3D"font-family:&quot;Times New Roman&quot;,serif"></span></p><p=
 class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p><p style=3D"colo=
r:rgb(0,0,0);margin:0px;font-family:Calibri,sans-serif;background-color:rgb=
(253,253,253)">=C2=A0</p></div></div><div style=3D"font-size:small"><br><br=
></div></div></div></div></div></div></div></div><br></div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jul 8, 2026 =
at 3:57=E2=80=AFPM Asma BOUDDYACH via sr-users &lt;<a href=3D"mailto:sr-use=
[email protected]" target=3D"_blank">[email protected]</a>&gt=
; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div di=
r=3D"ltr">Hi ,<br><br>I am currently deploying a Kamailio SBC infrastructur=
e with 2 nodes, one per datacenter, and I would like to set them up in acti=
ve-active mode.<br><br>I have no experience yet with multi-node Kamailio se=
tups and I would like to ask:<br><br>1. What is the recommended approach fo=
r a 2-node active-active Kamailio deployment today?<br><br>2. What modules =
or mechanisms should I use to synchronize state between the two nodes (call=
s, registrations, etc.)?<br><br>3. Are there any known issues or limitation=
s I should be aware of before starting the configuration?<br><br>Any guidan=
ce or documentation pointers would be greatly appreciated.<br><br>Best rega=
rds,</div>

<br>



















<p><span style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(3=
1,73,125)" lang=3D"EN-US">This message and any of its attachments is intend=
ed
solely for the addresses and is confidential. If you receive this message i=
n
error, please delete it and immediately notify the sender. Any use not in
accord with its purpose, any dissemination or disclosure, either whole or
partial, is prohibited except formal approval. The internet cannot guarante=
e
the integrity of this message. The INTELCIA Group shall (will) not therefor=
e be
liable for the message if modified.</span><span></span></p>

<p><span style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(3=
1,73,125)">=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94</s=
pan><span></span></p>

<p><span style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(3=
1,73,125)">Ce
message et toutes les pi=C3=A8ces jointes sont =C3=A9tablis =C3=A0 l&#39;in=
tention exclusive de
ses destinataires et sont confidentiels. Si vous recevez ce message par err=
eur,
merci de le d=C3=A9truire et d=E2=80=99en avertir imm=C3=A9diatement l=E2=
=80=99exp=C3=A9diteur. Toute
utilisation de ce message non conforme =C3=A0 sa destination, toute diffusi=
on ou
toute publication, m=C3=AAme partielle, est interdite, sauf autorisation ex=
presse.
L=E2=80=99internet ne permettant pas d=E2=80=99assurer l=E2=80=99int=C3=A9g=
rit=C3=A9 de ce message, le groupe
INTELCIA d=C3=A9cline toute responsabilit=C3=A9 au titre de ce message, dan=
s l=E2=80=99hypoth=C3=A8se
o=C3=B9 il aurait =C3=A9t=C3=A9 modifi=C3=A9.</span><span></span></p>





__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions -- <a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]=
.org</a><br>
To unsubscribe send an email to <a href=3D"mailto:[email protected]=
ilio.org" target=3D"_blank">[email protected]</a><br>
Important: keep the mailing list in the recipients, do not reply only to th=
e sender!<br>
</blockquote></div>
</blockquote></div><div><br clear=3D"all"></div><div><br></div><span class=
=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s=
ignature"><div dir=3D"ltr"><p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0=
.0001pt;color:rgb(34,34,34);font-size:11pt;font-family:Calibri,sans-serif">=
<a name=3D"SignatureSanitizer_m_-4073345684613365890__MailAutoSig"><b><span=
 style=3D"font-size:10pt;color:black">Cordialement</span></b></a><span styl=
e=3D"font-size:10pt;color:black"></span></p><p class=3D"MsoNormal" style=3D=
"margin:0cm 0cm 0.0001pt;color:rgb(34,34,34);font-size:11pt;font-family:Cal=
ibri,sans-serif"><b><span style=3D"font-size:10pt;color:black">Asmaa BOUDDY=
ACH</span></b><span style=3D"font-size:10pt;color:black"></span></p><p clas=
s=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;color:rgb(34,34,34);font-s=
ize:11pt;font-family:Calibri,sans-serif"><span style=3D"font-size:10pt;colo=
r:black">Team Leader PBC =E2=80=93 D=C3=A9ploiement- Exploitation- Coordina=
tion=C2=A0 =E2=80=93=C2=A0 Communications Unifi=C3=A9es</span></p><p class=
=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;color:rgb(34,34,34);font-si=
ze:11pt;font-family:Calibri,sans-serif"><span style=3D"font-size:10pt;color=
:black">Ex=C3=A9cutive R=C3=A9seau SI et Services \ Services \ Ligne de ser=
vices Voix</span></p><p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001p=
t;color:rgb(34,34,34);font-size:11pt;font-family:Calibri,sans-serif"><span =
style=3D"font-size:10pt;color:black">Communications unifi=C3=A9es et Relati=
ons clients</span></p><p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001=
pt;color:rgb(34,34,34);font-size:11pt;font-family:Calibri,sans-serif"><span=
 style=3D"font-size:10pt;color:black">SFR Business</span></p><p class=3D"Ms=
oNormal" style=3D"margin:0cm 0cm 0.0001pt;color:rgb(34,34,34);font-size:11p=
t;font-family:Calibri,sans-serif"><b><span style=3D"font-size:10pt;color:bl=
ack">T=C3=A9l.=C2=A0</span></b><b><span lang=3D"EN-US" style=3D"font-size:1=
0pt">+33 (0) 1 87 64 78 13</span></b><span style=3D"font-size:10pt"></span>=
</p><p class=3D"MsoNormal" style=3D"margin:0cm 0cm 0.0001pt;color:rgb(34,34=
,34);font-size:11pt;font-family:Calibri,sans-serif"><img width=3D"555" heig=
ht=3D"126" alt=3D"logos-signature-e-mail-sfrbusiness"></p></div></div>

<br>



















<p><span style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(3=
1,73,125)" lang=3D"EN-US">This message and any of its attachments is intend=
ed
solely for the addresses and is confidential. If you receive this message i=
n
error, please delete it and immediately notify the sender. Any use not in
accord with its purpose, any dissemination or disclosure, either whole or
partial, is prohibited except formal approval. The internet cannot guarante=
e
the integrity of this message. The INTELCIA Group shall (will) not therefor=
e be
liable for the message if modified.</span><span></span></p>

<p><span style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(3=
1,73,125)">=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94</s=
pan><span></span></p>

<p><span style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(3=
1,73,125)">Ce
message et toutes les pi=C3=A8ces jointes sont =C3=A9tablis =C3=A0 l&#39;in=
tention exclusive de
ses destinataires et sont confidentiels. Si vous recevez ce message par err=
eur,
merci de le d=C3=A9truire et d=E2=80=99en avertir imm=C3=A9diatement l=E2=
=80=99exp=C3=A9diteur. Toute
utilisation de ce message non conforme =C3=A0 sa destination, toute diffusi=
on ou
toute publication, m=C3=AAme partielle, est interdite, sauf autorisation ex=
presse.
L=E2=80=99internet ne permettant pas d=E2=80=99assurer l=E2=80=99int=C3=A9g=
rit=C3=A9 de ce message, le groupe
INTELCIA d=C3=A9cline toute responsabilit=C3=A9 au titre de ce message, dan=
s l=E2=80=99hypoth=C3=A8se
o=C3=B9 il aurait =C3=A9t=C3=A9 modifi=C3=A9.</span><span></span></p>






--000000000000a3822506561b52f0--

--===============0649821960==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!

--===============0649821960==--