[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] append_branch and t_replicate issue
From:       Aelfatihy <a.elfatihy () gmail ! com>
Date:       2014-07-28 15:56:11
Message-ID: 52905616-2B2D-42CB-8D3C-BDC15001EE2F () gmail ! com
[Download RAW message or body]



Envoyé de mon iPad

Le 28 juil. 2014 à 11:06, Daniel-Constantin Mierla <miconda@gmail.com> a écrit :

> Hello,
> 
> On 25/07/14 22:47, Asgaroth wrote:
> > Hi,
> > 
> > using t_replicate() did the trick! it appears to be replicating to both systems \
> > now, thanks alot for looking at this.
> great, welcome!
> > 
> > The only difference i can see is that the r-uri is re-written for both replicated \
> > regesters although this shouldnt make any difference as the registration is \
> > already authorized and is not re-checked on the other 2 registrars :)
> 
> Perhaps you can keep same r-uri and set different dst-uri via $branch(...) \
> variable. 
> Cheers,
> Daniel
> 
> > 
> > Thanks
> > Bruce
> > 
> > On 25/07/2014 18:41, Daniel-Constantin Mierla wrote:
> > > 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
> 
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic