<div dir="ltr">Hi all,<div><br></div><div>I am trying to setup an active-active pair of sip proxies. I have connected two kamailio boxes to the same PostgreSQL database and my usrloc db_mode is 3. I can see the registration data in the database but "ul show" outputs of two device is not same. I think writing registration data to the same db is not enough. </div>
<div><br></div><div>I have found a method to replicate the registraiton process. With t_replicate, I synchronize REGISTER requests to both boxes. But I had to disable shared database because of uniqe id validations.</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">route[REGISTRAR] {<br>        if (is_method("REGISTER"))<br>
        {<br>                if(isflagset(FLT_NATS))<br>                {<br>                        setbflag(FLB_NATB);<br>                }<br>                if (!save("location"))<br>                        sl_reply_error();<br>
                t_replicate("sip:10.1.1.2:5060;transport=udp");<br>                exit;<br>        }<br>}</blockquote></div><div><br></div><div><br></div><div>My media servers randomly sends calls to SIP proxies. If Media server send the call to the original registrar then the replicated, call initiates normally. But when UA registered in first proxy, and Media server sends the call to the send one, even if second one has UA in location table, call does not initiate.</div>
<div><br></div><div>Does anyone have an idea about this kind of an active active setup?</div><div><br></div><div>Thanks in advance. Best regards,</div><div><br></div><div>/Volkan</div></div>