[SR-Users] append_branch and t_replicate issue

Daniel-Constantin Mierla miconda at gmail.com
Fri Jul 25 19:41:54 CEST 2014


Hello,

use t_replicate() without any parameter.

I said before that I mistakenly evaluated the code as working with empty 
parameter, but it was not. Later today I pushed a new patch for this 
case as well.

Cheers,
Daniel

On 25/07/14 19:35, Asgaroth wrote:
> Hi,
>
> On 25/07/2014 13:49, Daniel-Constantin Mierla wrote:
>> The second one is with the patch to the code and it is enough to pick 
>> only that one.
>
> OK, I tried 4.1.4 with this patch applied and I still get the 
> following error message:
>
> /usr/sbin/kamailio[22158]: ERROR: tm [tm.c:1618]: t_replicate_uri(): 
> bad replicate SIP address!
>
> Kamailio version:
>
> version: kamailio 4.1.4 (x86_64/linux) 43f4ee
> 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: 43f4ee
> compiled on 16:07:03 Jul 25 2014 with gcc 4.4.7
>
> The snip I am trying is as follows:
>
>             $ru = "sip:me@" + BACKUP_REGISTRAR_1 + ":5060";
>             append_branch("sip:me@" + BACKUP_REGISTRAR_1 + ":5060");
>             t_replicate("");
>
> I had a copy of the 4.1 branch on my local machine, the steps I 
> followed to build the tar file was:
>
> git clone git://git.sip-router.org/kamailio kamailio
> cd kamailio
> git checkout -b 4.1 origin/4.1
> git pull origin
> git cherry-pick -x c5b6b6021e75cd4e73f54f9131524b588709950c
> make FLAVOUR=kamailio tar
>
> Thanks
> Bruce

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list