Hey guys,
First off thanks for any help in advanced! I'm saving a nat branch flag into usrloc when the user registers, now each user has two registrations to the same username in usrloc, upon lookup("location"), inside of branch_route[] it appears only one of them have the nat branch flag set, while the other does not? Is there any case where a branch flag could somehow get mangled, or what to look for, or what may cause this? Also one other thing from a database outlook (the cflag) is equivalent on both AOR's.
However again at the time of branch_route, one flag is i.e. 000800, and the other 000820, any thoughts are appreciated, thanks!
I don't think I understood well...
On Thu, Jul 2, 2009 at 9:16 PM, Brandon Armsteadbrandon@cryy.com wrote:
Are you saying that you have 2 registrations for the same AoR and one has some flags and the other doen't?
However again at the time of branch_route, one flag is i.e. 000800, and the other 000820, any thoughts are appreciated, thanks!
If you have multiple registrations for the same AoR and keep a NAT branch flag upon lookup location that flag will only be present for the natted one, so in branch_route you can check for it...
Hope it helpled,
Hello,
I have two registrations for the same AoR and they both have the same bflags set in the database, upon branch_route[] they do not. I do not see at any point either where I would have modified it -- which is my current problem. Thanks!
On Thu, Jul 2, 2009 at 11:59 PM, Saúl Ibarra saghul@gmail.com wrote:
Check your cfg and look closely to
El 4 de jul de 2009, 12:17 a.m., "Brandon Armstead" brandon@cryy.com escribió:
Hello,
I have two registrations for the same AoR and they both have the same bflags set in the database, upon branch_route[] they do not. I do not see at any point either where I would have modified it -- which is my current problem. Thanks!
On Thu, Jul 2, 2009 at 11:59 PM, Saúl Ibarra saghul@gmail.com wrote:
Sorry, finger went too fast :)
Check every branch flag setting, they should be set the same way. Xlog each set and try to debug it a little...
El 4 de jul de 2009, 12:17 a.m., "Brandon Armstead" brandon@cryy.com escribió:
Hello,
I have two registrations for the same AoR and they both have the same bflags set in the database, upon branch_route[] they do not. I do not see at any point either where I would have modified it -- which is my current problem. Thanks!
On Thu, Jul 2, 2009 at 11:59 PM, Saúl Ibarra saghul@gmail.com wrote:
Hello,
On 07/04/2009 12:52 AM, Saúl Ibarra wrote:
do you see a pattern in which branch does not have the proper flags? Is the first one? You can use $T_branch_idx to print branch index.
Cheers, Daniel
Hi Brandon!
That sounds strange. I would debug it the following way:
1. set the nat bflag unconditional for every REGISTER request.
2. verify that the natbflag is stored in DB for all contacts
3. after lookup use xlog to log the values of the bflags:
http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#branch_attribute...
$var(i)=0; while($var(i)<$branch(count)) { xlog("branch $var(i):\n"); xlog(" uri =$(branch(uri)[$var(i)])\n"); xlog(" bflag=$(branch(flags)[$var(i)])\n"); $var(i) = $var(i) + 1; }
if there is still a problem, then there might be a bug in Kamailio
regards klaus
Brandon Armstead schrieb: