No subject


Wed Jun 24 00:39:36 CEST 2009


| testaccount.33 | 2009-12-10 16:47:21 | sip:Testaccount.33 at XXXXX:5060    
                | sipp running on XXXXX 

with parameter set to 1:

| Testaccount.33 | 2009-12-10 16:48:10 | sip:Testaccount.33 at XXXXXX:5060   
                 | sipp running on XXXXX

Therefore i think its not a bug in the module, only a configuration and
database issue.    

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

Comment By: Nobody/Anonymous (nobody)
Date: 2009-12-10 09:03

Message:
There is a parameter to control case sensitivity:
http://kamailio.org/docs/modules/1.5.x/registrar.html#id2491689

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

Comment By: Henning Westerholt (henningw)
Date: 2009-12-10 08:54

Message:
I can confirm that usrloc stores the name in lowercase, even if its in
upper case in the subscriber table. This is probably a bug.

For the other thing, the reported case sensitivity in the query against
the location table, this is defined from the database that is used. So if
you would e.g. switch to mysql, all your queries would be case insensitive.
So i changed the bug title to be mirror this.

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

Comment By: Asgaroth (asgaroth000)
Date: 2009-12-10 00:38

Message:
Just for further information, here is the logic in the main route of the
kamailio script that is causing the problem, I thought I would add it in so
you can see where I am trying to execute the update. The actual
authentication is processed prior to this section.

if (is_method("REGISTER"))
        {
                if (!save("location")) {
                        sl_reply_error();
                } else {
                   xlog("L_INFO","Username: $au, FromUser: $fu,
OutboundProxy: $Ri, OutboundProxyPort: $Rp");
                   sql_query("bfl", "UPDATE location SET outboundproxy =
'$Ri', outboundproxyport = '$Rp' WHERE username = '$au'", "res");
                }
                exit;
        }

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

Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-12-10 00:19

Message:
According to RFC 3261 BNF grammar, the username part of a SIP URI is case
sensitive, this is:

  sip:alice at domain.org   !=   sip:Alice at domain.org

but domain part is case insensitive so:

  sip:alice at domain.org   ==   sip:alice at DOMain.ORG

So if 'usrloc' forces lowcase that's not correct (IMHO).

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

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



More information about the sr-dev mailing list