<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 25/07/14 12:51, Asgaroth wrote:<br>
    </div>
    <blockquote cite="mid:53D23698.2030204@gmail.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 25/07/2014 11:33,
        Daniel-Constantin Mierla wrote:<br>
      </div>
      <blockquote cite="mid:53D2328B.9020302@gmail.com" type="cite">
        <blockquote cite="mid:53D22F58.1050108@gmail.com" type="cite">$ru

          = "sip:" + BACKUP_REGISTRAR_1 + ":5060"; <br>
          append_branch("sip:" + BACKUP_REGISTRAR_2 + ":5060"); <br>
          <b>t_replicate("");</b><br>
        </blockquote>
        Yes, and this should work on existing versions 4.1.x or older</blockquote>
      <br>
      OK, trying to test this and I'm seeing an error with debug=2:<br>
      <br>
      /usr/sbin/kamailio[25432]: ERROR: tm [tm.c:1616]:
      t_replicate_uri(): bad replicate SIP address!<br>
    </blockquote>
    <br>
    I read the condition on uri wrong -- it was only on a null pointer
    for the uri, not on length (in this case pointer is to a empty
    string). I pushed an enhanced check for length as well, but it is
    only in master for the moment.<br>
    <br>
    You have to use master or pick the commit to 4.1<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote cite="mid:53D23698.2030204@gmail.com" type="cite"> <br>
      And, I guess because of this, the messages are not being
      replicated at all.<br>
      <br>
      I tried something like this:<br>
      <br>
      $ru = "<b><a class="moz-txt-link-freetext" href="sip:me@">sip:me@</a></b>" + BACKUP_REGISTRAR_1 + ":5060";<br>
      append_branch("<b><a class="moz-txt-link-freetext" href="sip:me@">sip:me@</a></b>" + BACKUP_REGISTRAR_1 + ":5060");<br>
      t_replicate("");<br>
      <br>
      But I still get the same error message as above.<br>
      <br>
      this is on kamailio version:<br>
      <br>
      version: kamailio 4.1.4 (x86_64/linux) 84c1ff<br>
      flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
      DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
      PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
      USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
      HAVE_RESOLV_RES<br>
      ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
      16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB<br>
      poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
      id: 84c1ff <br>
      compiled on 14:36:04 Jul 20 2014 with gcc 4.4.7<br>
      <br>
      Thanks<br>
      Bruce<br>
    </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>