On 25/07/14 12:51, Asgaroth wrote:
On 25/07/2014 11:33, Daniel-Constantin Mierla wrote:
$ru = "sip:" + BACKUP_REGISTRAR_1 + ":5060"; append_branch("sip:" + BACKUP_REGISTRAR_2 + ":5060"); *t_replicate("");*
Yes, and this should work on existing versions 4.1.x or older
OK, trying to test this and I'm seeing an error with debug=2:
/usr/sbin/kamailio[25432]: ERROR: tm [tm.c:1616]: t_replicate_uri(): bad replicate SIP address!
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.
You have to use master or pick the commit to 4.1
Cheers, Daniel
And, I guess because of this, the messages are not being replicated at all.
I tried something like this:
$ru = "*sip:me@*" + BACKUP_REGISTRAR_1 + ":5060"; append_branch("*sip:me@*" + BACKUP_REGISTRAR_1 + ":5060"); t_replicate("");
But I still get the same error message as above.
this is on kamailio version:
version: kamailio 4.1.4 (x86_64/linux) 84c1ff 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 ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 84c1ff compiled on 14:36:04 Jul 20 2014 with gcc 4.4.7
Thanks Bruce