[SR-Users] db_cluster together with the registrar module = signal 11

Øyvind Kolbu oyvind.kolbu at usit.uio.no
Fri Aug 24 10:48:09 CEST 2012


On 2012-08-24 at 09:22, Daniel-Constantin Mierla wrote:
> Hello,
> 
> can you print the content of cls in frame 0 inside gdb?
> 
> p *cls

(gdb) p *cls
$1 = {name = {s = 0xb7b5a958 "data2=>voip2_data2=8r9p", len = 5}, clsid = 1761460487, ref = 1, rlist = {{clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0,
      prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0},
      clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0,
        0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0,
        0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0xb7b5a7c8,
        0x0, 0x0, 0x0, 0x0}, clen = 1, prio = 8, mode = 114, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}}, wlist = {
    {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {
      clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0},
    {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {
      clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0},
    {clist = {0x0, 0x0, 0x0, 0x0, 0x0}, clen = 0, prio = 0, mode = 0, crt = 0}, {clist = {0xb7b5a7c8, 0x0, 0x0, 0x0, 0x0}, clen = 1, prio = 9, mode = 112,
      crt = 0}}, usedcon = 0xb7b5a7c8, next = 0x0}


> I found and fixed a potential issue, by now in master:
> 
> http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4d15ba97bab58108cfedc45158d90583f67cdadf
> 
> You can cherry pick it in branch 3.3 and try it, with:
> 
> git pull origin
> git cherry-pick -x 4d15ba97bab58108cfedc45158d90583f67cdadf
> 
> But first get the content of cls, the fix I did was not convincing me it 
> is the reason for what you reported.

First impression is that everything is working now, thanks! At least
registrations are getting populated in both databases from both servers. As
I'm out traveling I havn't yet tested calling and whether or not the
failover works as expected. I assume setting usrloc's db_mode to 3 is
recommended in this kind of setup?

For now I'm using:
    modparam("db_cluster", "cluster","data2=>voip1_data2=9s9p;voip2_data2=8s9p")
on my voip1 machine, and the line below on the voip2 machine:
    modparam("db_cluster", "cluster","data2=>voip2_data2=9s9p;voip1_data2=8s9p")

The same configuration created coredumps on both machines previously.

-- 
Øyvind Kolbu



More information about the sr-users mailing list