<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    run with debug=3 in config file and see if there are log messages
    that gives you more details about what happens.<br>
    <br>
    Typically, when doing replication, you may need to replicate
    received and sometime socket information -- that can be done via
    headers and then added to avps before saving to location in the
    second peer. Look at the readme of registrar module for those
    parameters.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 19/01/14 14:05, Volkan Oransoy
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAM_EGOEWnMLgWQgJOULADcoAoX2Czmu5qYBi60SwLxxu-t=3aA@mail.gmail.com"
      type="cite">
      <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(<a class="moz-txt-link-rfc2396E" href="sip:10.1.1.2:5060;transport=udp">"sip:10.1.1.2:5060;transport=udp"</a>);<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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>