[OpenSER-Devel] [ openser-Bugs-1818610 ] [lcr] load_contacts() forgets bflag of "location" table

SourceForge.net noreply at sourceforge.net
Tue Oct 23 17:06:53 CEST 2007


Bugs item #1818610, was opened at 2007-10-23 16:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1818610&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: [lcr] load_contacts() forgets bflag of "location" table

Initial Comment:
In serial forwarding with different "q" values contacts bflags are forgotten.

I have this "location" table:

  username    domain       contact                     received               cflags   q
  800         domain.org   sip:800 at 192.168.1.33:5060   sip:82.35.221.20:5060  192      0.80
  800         domain.org   sip:800 at 192.168.1.33:5080   sip:82.35.221.20:5080  192      0.50

Both contacts behind NAT and different "q".

I fix NAT for each branch in "branch_route[1]" in case of parallel forking. It works OK.


But since I added serial forwarding with load_contacts() and next_contacts() after lookup("location") and next_contacts() in "failure_route[1]" NAT doesn't work because those two functions forget the bflag(6).

In fact, the issue is worse since in "failure_route[1]" I do next_contacts() but in this case the INVITE is sent to 192.168.1.133:5080 instead the public IP !!!!

Is there any way to solve it? or is it a bug on lcr functions handling contacts bflags and "received" field?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1818610&group_id=139143



More information about the Devel mailing list