<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    What protection you are talking about ?<br>
    Do you have listen parameter for a virtual_ip at both master and
    backup servers ?<br>
    Have you set ip_nonlocal_bind option ?<br>
    <br>
    I've used this scheme without any problems and it worked great.<br>
    <br>
    As I understand you need to add "sock_hdr_name" and "sock_flag"
    parameters of the registrar module to set a header name where socket
    information should be taken from and choose a flag that will be used
    by registrar module to get the socket info from some header instead
    of real socket.<br>
    <br>
    <br>
    <blockquote
cite="mid:CADsZGGvE-o+zyyVg2hc1S=_9EOUOgZYm48Lq-31hv-W2gZtfrQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Dear Daniel,</div>
        <div><br>
        </div>
        <div>
          <div><br>
          </div>
          <div>I'm using this way that you mentioned, but did not
            succeed. Must assign the virtual IP socket server parameter
            standby. But as this is virtual IP at the time of
            replication on the active server, is not allowed, because of
            a protection from "get_sock_hdr" to ./registrar/save.c</div>
        </div>
        <div><br>
        </div>
        <div>It's possible to somehow assign this virtual IP socket
          parameter of the server standby?</div>
        <div><br>
        </div>
        <div>Thanks in advance</div>
        <div>Cheers</div>
        <div>Raphael</div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">2013/7/25 Daniel-Constantin Mierla <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
              <br>
              for the socket, there is already an embedded header, look
              at the readme for registrar module for sock header, or
              something like that. You just need to set that header to
              the value you want.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 7/24/13 10:33 PM, Raphael Borges wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>Hello, anyone have any idea for this my
                        problem? Need to somehow override the value of
                        the server socket standy by entering the virtual
                        IP in this field.</div>
                      <div><br>
                      </div>
                      <div>Thanks in advance.</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">2013/7/23 Raphael Borges
                        <span dir="ltr"><<a moz-do-not-send="true"
                            href="mailto:raphaelsilvaborges@gmail.com"
                            target="_blank">raphaelsilvaborges@gmail.com</a>></span><br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div dir="ltr">
                            <div>
                              <div
                                style="font-family:arial,sans-serif;font-size:13px">Daniel,

                                I had another similar problem. Would you
                                like a procedure similar to the socket
                                parameter. It is possible to add a new
                                header and assign the parameter socket
                                in server standby somehow?</div>
                              <div
                                style="font-family:arial,sans-serif;font-size:13px"><br>
                              </div>
                              <div
                                style="font-family:arial,sans-serif;font-size:13px">Thanks

                                in advance.</div>
                            </div>
                            <div
                              style="font-family:arial,sans-serif;font-size:13px">
                              <div> <img moz-do-not-send="true"
                                  src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div>
                            </div>
                          </div>
                          <div>
                            <div>
                              <div class="gmail_extra"><br>
                                <br>
                                <div class="gmail_quote">2013/7/23
                                  Raphael Borges <span dir="ltr"><<a
                                      moz-do-not-send="true"
                                      href="mailto:raphaelsilvaborges@gmail.com"
                                      target="_blank">raphaelsilvaborges@gmail.com</a>></span><br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div dir="ltr">
                                      <div>Daniel, I had another similar
                                        problem. Would you like a
                                        procedure similar to the socket
                                        parameter. It is possible to add
                                        a new header and assign the
                                        parameter socket in server
                                        standby somehow?</div>
                                      <div> <br>
                                      </div>
                                      <div>Thanks in advance.</div>
                                      <span><font color="#888888">
                                          <div>Raphael</div>
                                        </font></span></div>
                                    <div>
                                      <div>
                                        <div class="gmail_extra"><br>
                                          <br>
                                          <div class="gmail_quote">2013/7/22
                                            Raphael Borges <span
                                              dir="ltr"><<a
                                                moz-do-not-send="true"
                                                href="mailto:raphaelsilvaborges@gmail.com"
                                                target="_blank">raphaelsilvaborges@gmail.com</a>></span><br>
                                            <blockquote
                                              class="gmail_quote"
                                              style="margin:0 0 0
                                              .8ex;border-left:1px #ccc
                                              solid;padding-left:1ex">
                                              <div dir="ltr">
                                                <div class="gmail_extra"><span
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Thanks

                                                    Daniel, your help
                                                    was very useful.</span><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <br
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <span
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">With

                                                    this I created a
                                                    header by append_hf
                                                    () before calling
                                                    the function</span><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <span
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">t_replicate

                                                    and standby server
                                                    retrieved the value
                                                    of this header and</span><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <span
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">assigns

                                                    this value to the
                                                    parameter avp</span><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <span
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Example</span><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <span
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">$avp(s:rcv)

                                                    = $hdr(IP-source);</span><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <br
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                  <span
                                                    style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Best

                                                    regards</span><span><font
                                                      color="#888888"><br
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
                                                      <span
                                                        style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Raphael</span><br>
                                                    </font></span></div>
                                                <div>
                                                  <div>
                                                    <div
                                                      class="gmail_extra"><br>
                                                    </div>
                                                    <div
                                                      class="gmail_extra"><br>
                                                    </div>
                                                    <div
                                                      class="gmail_extra"><br>
                                                      <div
                                                        class="gmail_quote">
                                                        <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">
                                                          <div dir="ltr">
                                                          <div
                                                          class="gmail_quote">Hello,<br>
                                                          <div
                                                          text="#000000"
bgcolor="#FFFFFF"> <br>
                                                          the received
                                                          is taken from
                                                          an avp
                                                          specified by
                                                          parameter
                                                          received_avp
                                                          of registrar
                                                          module:<br>
                                                          <br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://kamailio.org/docs/modules/devel/modules/registrar.html#idp4433296"
target="_blank">http://kamailio.org/docs/modules/devel/modules/registrar.html#idp4433296</a><br>
                                                          <br>
                                                          You can carry
                                                          the original
                                                          details via a
                                                          header on the
                                                          replicated
                                                          REGISTER
                                                          (using
                                                          append_hf()),
                                                          then take the
                                                          header on the
                                                          second server
                                                          and store its
                                                          value in the
                                                          avp.<br>
                                                          <br>
                                                          Cheers,<br>
                                                          Daniel
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          <div>On
                                                          7/18/13 9:05
                                                          PM, Raphael
                                                          Borges wrote:<br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div dir="ltr"><b>Hello,</b><br>
                                                          <br>
                                                          <br>
                                                          I have two
                                                          servers in
                                                          kamailio
                                                          duality, I am
                                                          using the
                                                          function
                                                          t_replicate ()
                                                          for
                                                          replication
                                                          log as below:<br>
                                                          Server 1
                                                          active<br>
                                                          t_replicate
                                                          ("xxx.xxx.xxx.2",
                                                          "5060");<br>
                                                          Server 2
                                                          reserves<br>
                                                          t_replicate
                                                          ("xxx.xxx.xxx.1",
                                                          "5060");<br>
                                                          <br>
                                                          But when the
                                                          record is
                                                          replicated to
                                                          the standby
                                                          server the
                                                          parameter
                                                          received is
                                                          being filled
                                                          with the
                                                          active server
                                                          IP, where the
                                                          IP would
                                                          Correro UAC,
                                                          registry
                                                          problems
                                                          generating the
                                                          backup server.<br>
                                                          <br>
                                                          Example<br>
                                                          Server 1
                                                          active
                                                          xxx.xxx.xxx.1<br>
                                                          <br>
                                                          $ Kamctl ul
                                                          show<br>
                                                          Domain ::
                                                          location table
                                                          = 512 records
                                                          = 1 = 1
                                                          max_slot<br>
                                                                   AOR
                                                          :: 4301<br>
                                                                          

                                                          Contact ::
                                                          sip: <a
                                                          moz-do-not-send="true"
href="mailto:4301@yyy.yyy.yyy.100" target="_blank">4301@yyy.yyy.yyy.100</a>;
                                                          transport =
                                                          udp Q =<br>
                                                                                  

                                                          Expires ::
                                                          4566<br>
                                                                                  

                                                          Callid ::
                                                          ccd0431c-6a4c-1231-0a94-7356c4f466e6<br>
                                                                                  

                                                          CSeq ::
                                                          46740150<br>
                                                                                  

                                                          User-agent ::
                                                          stepo_LITE<br>
                                                                                  

                                                          Received ::
                                                          sip:
                                                          yyy.yyy.yyy.100:
                                                          5060<br>
                                                                                  

                                                          State ::
                                                          CS_SYNC<br>
                                                                                  

                                                          Flags :: 0<br>
                                                                                  

                                                          CFLAG :: 0<br>
                                                                                  

                                                          Socket :: udp:
                                                          xxx.xxx.xxx.1:
                                                          5060<br>
                                                                                  

                                                          Methods ::
                                                          8159<br>
                                                          <br>
                                                          Server 2
                                                          Reserve
                                                          xxx.xxx.xxx.2<br>
                                                          <br>
                                                          $ Kamctl ul
                                                          show<br>
                                                          Domain ::
                                                          location table
                                                          = 512 records
                                                          = 1 = 1
                                                          max_slot<br>
                                                                   AOR
                                                          :: 4301<br>
                                                                          

                                                          Contact ::
                                                          sip: <a
                                                          moz-do-not-send="true"
href="mailto:4301@yyy.yyy.yyy.100" target="_blank">4301@yyy.yyy.yyy.100</a>;
                                                          transport =
                                                          udp Q =<br>
                                                                                  

                                                          Expires ::
                                                          6665<br>
                                                                                  

                                                          Callid ::
                                                          ec7cfd42-6a7c-1231-0f94-7356c4f466e6<br>
                                                                                  

                                                          CSeq ::
                                                          46750472<br>
                                                                                  

                                                          User-agent ::
                                                          stepo_LITE<br>
                                                                                  

                                                          Received ::
                                                          sip:
                                                          xxx.xxx.xxx.1:
                                                          5060<br>
                                                                                  

                                                          State ::
                                                          CS_SYNC<br>
                                                                                  

                                                          Flags :: 0<br>
                                                                                  

                                                          CFLAG :: 0<br>
                                                                                  

                                                          Socket :: udp:
                                                          xxx.xxx.xxx.2:
                                                          5060<br>
                                                                                  

                                                          Methods ::
                                                          8159<br>
                                                          <div><font
                                                          color="#606060"><font
                                                          size="1"><font
                                                          face="Verdana,
                                                          Arial,
                                                          Helvetica"><br>
                                                          <br>
                                                          <br>
                                                          Tkanks<br>
                                                          <br>
                                                          Raphael<br>
                                                          </font></font></font></div>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888"><span><font color="#888888">
</font></span></font></span></pre>
                                                          <span><font
                                                          color="#888888"><span><font
color="#888888"> </font></span></font></span></blockquote>
                                                          <span><font
                                                          color="#888888"><span><font
color="#888888"> <br>
                                                          <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
</pre>
                                                          </font></span></font></span></div>
                                                          <span><font
                                                          color="#888888">
                                                          <br>
_______________________________________________<br>
                                                          SIP Express
                                                          Router (SER)
                                                          and Kamailio
                                                          (OpenSER) -
                                                          sr-users
                                                          mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                                                          target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                                          <br>
                                                          </font></span></div>
                                                          <br>
                                                          </div>
                                                        </blockquote>
                                                      </div>
                                                      <br>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </blockquote>
                                          </div>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
</pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>
  </body>
</html>