[OpenSER-Devel] [ openser-Bugs-1793928 ] [rr] louse_roote() should import domains from domain module

SourceForge.net noreply at sourceforge.net
Sun Nov 4 00:56:57 UTC 2007


Bugs item #1793928, was opened at 2007-09-13 14:56
Message generated for change (Comment added) made by ibc_sf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1793928&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: [rr] louse_roote() should import domains from domain module

Initial Comment:
In the loose_route() documentatión there is:
"There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE."

The problem is that the URI domain is not matched with domains of "domain" module.

This causes a problem in SIP devices which include a "Route" header in REGISTER, so it produces an infinite loop in OpenSer if there is not "alias=URI_domain" or if URI_domain doesn't appear in /etc/hosts.

Obviosly, if I work with domain modules I just want to store domains in "domain" table, and not to add them manually in openser.cfg as "alias" or in /etc/hosts.

Could "loose_route()" consult domain module entries in order to know if the URI is local or not?

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

>Comment By: Iñaki Baz (ibc_sf)
Date: 2007-11-04 00:56

Message:
Logged In: YES 
user_id=1844020
Originator: YES

Sorry but I reopen again this report.

In RFC 3261 into "16 Proxy Behavior" section we can read (page 102):

   "The URI placed in the Record-Route header field MUST resolve to
    the element inserting it (or a suitable stand-in) when the
    server location procedures of [4] are applied to it, so that
    subsequent requests reach the same SIP element."

And [4] refers to: "SIP: Locating SIP Servers" RFC 3263.

That means the "Route" header URI can be a hostname or a domain and it can
envolve a DNS query (SRV and A type).

Maybe I've understood wrongly the text above, but if not, shouldn't
"louse_roote()" do a DNS query for URI in "Route" header?

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

Comment By: Iñaki Baz (ibc_sf)
Date: 2007-10-02 17:27

Message:
Logged In: YES 
user_id=1844020
Originator: YES

In SIP_Forum's SIPconnect program to get SIP compliant devices and
services we can read:

"SIP Proxy Servers MUST use canonical hostnames in any 'Via:' and/or
'Route:' SIP header field that it inserts in the SIP message.":

 
http://www.zoomerang.com/web/SharedResults/SharedResultsSurveyResultsPage.aspx?ID=L234XRLBNYYH
(point 15)

So if that is true then OpenSer behaviour is correct and there is a bug in
oSIP stack because it shouldn't add a "Route" header with SIP domain value
in REGISTER messages.

Maybe this report could be closed then?

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

Comment By: Klaus Darilion (klaus_darilion)
Date: 2007-09-13 15:43

Message:
Logged In: YES 
user_id=1318360
Originator: NO

Are you sure? I think the rules for finding the IP address of the SIP URI
in the Route header is RFC 3263.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2007-09-13 15:35

Message:
Logged In: NO 

this request is invalid.  route header contains hostnames or host
addresses, not domains.

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

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



More information about the Devel mailing list