[SR-Users] bflag mystery

Juha Heinanen jh at tutpro.com
Wed Apr 10 19:00:03 CEST 2013


i have in config:

      setbflag(8);                                           
      xlog("L_INFO", "bflags are <$bf/$bF>\n");                  
      save("location", "0x02");                       

and i correctly get to syslog:

Apr 10 19:51:48 wheezy1 /usr/sbin/sip-proxy[6722]: INFO: bflags are <256/00000100>

however, when i look what gets stores in location table, cflags column
of the contact has value 384.  it is also shown by ul_dump:

Cflag:: 384

384 = 256 + 128.  i must be missing something trivial. how is it
possible that also flag 7 (which is my nat_bflag) gets set in usrloc?

-- juha



More information about the sr-users mailing list