<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I ended up using two 'forward'
statements in stead of t_replicate as it does not appear to work
with 2+ servers to replicate to.<br>
<br>
<br>
On 21/07/2014 15:01, Asgaroth wrote:<br>
</div>
<blockquote cite="mid:53CD1D53.9040909@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Further update, it looks like
append_branch is over-writing the original request-uri, an ngrep
shows the following for the 2 messages sent:<br>
<br>
This one looks like the proper replicate for the original
request<br>
<br>
U 2014/07/21 14:56:29.781372 BACKUP_REGISTRAR_1:5060 ->
BACKUP_REGISTRAR_3:5060<br>
REGISTER sip:<font color="#3333ff"><b>domain.com</b></font>;transport=UDP
SIP/2.0<br>
<br>
This one looks like the r-uri is re-written to that of the
BACKUP_REGISTRAR_2 address, but destination is still
BACKUP_REGISTRAR_3<br>
<br>
U 2014/07/21 14:56:33.781441 BACKUP_REGISTRAR_1:5060 ->
BACKUP_REGISTRAR_3:5060<br>
REGISTER sip:<font color="#3333ff"><b>BACKUP_REGISTRAR_2</b></font>:5060
SIP/2.0<br>
<br>
Is this normal operation or am I missing something fundamental
here with t_replicate/append_branch?<br>
<br>
Thanks<br>
Bruce<br>
<br>
On 21/07/2014 14:24, Bruce McAlister wrote:<br>
</div>
<blockquote cite="mid:53CD14AB.4050503@gmail.com" type="cite">Just
an update on this, it appears to send 2 REGISTER requests in
parellel to BACKUP_REGISTRAR_3, so it looks like the
append_branch is being added but its uri is set to
BACKUP_REGISTRAR_3 (and not BACKUP_REGISTRAR_2 as requested int
the append_branch section) <br>
<br>
On 21/07/2014 13:49, Asgaroth wrote: <br>
<blockquote type="cite">Hi All, <br>
<br>
I have an issue that I cant seem to get to the bottom of, I
would appreciate if someone could point me in the right
direction. <br>
<br>
I have 3 registrar's and would like to replicate the
registration regest from 1 to the other 2, I am trying this
with t_replicate, the docs say that to send to multiple
destinations an append_branch should be performed prior to the
t_replicate, which is what I am trying to do. <br>
<br>
What appears to happen is that the replication only sends the
REGISTER to the server defined in the t_replicate command, it
doesnt appear to be sending it to the destination defined in
append_branch. <br>
<br>
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>
Here is what I have tried so far (on registrar 1): <br>
<br>
#!define BACKUP_REGISTRAR_1 '1.1.1.1' <br>
#!define BACKUP_REGISTRAR_2 '1.1.1.2' <br>
#!define BACKUP_REGISTRAR_3 '1.1.1.3' <br>
<br>
save("location"); <br>
if ( src_ip != BACKUP_REGISTRAR_2 && src_ip !=
BACKUP_REGISTRAR_3 ) { <br>
append_branch("sip:" + BACKUP_REGISTRAR_2 + ":5060"); <br>
t_replicate("sip:" + BACKUP_REGISTRAR_3 + ":5060"); <br>
}; <br>
<br>
With the above in place, I only see the system attempting to
replicate to BACKUP_REGISTRAR_3, I dont see any request to
BACKUP_REGISTRAR_2. <br>
<br>
Am I doing something wrong here? <br>
<br>
Thanks <br>
Bruce <br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>