[sr-dev] propose change strncmp to strncasecmp in presence module

Juha Heinanen jh at tutpro.com
Thu Feb 19 03:28:30 CET 2015


Luis Azedo writes:
> Hi Juha,
> 
> so, would it be acceptable to introduce a param in module presence to
> allow case-insensitive matches on uris , preserving the current
> behaviour?

if there is a bug in current behavior that needs to be fixed.  no param
or variable is needed for that.

my understanding based on rfc3261 is that hostpart of sip uri is case
insensitive, but userpart is case sensitive:

  Comparison of the userinfo of SIP and SIPS URIs is
  case-sensitive. This includes userinfo containing 
  passwords or formatted as telephone-subscribers. Comparison of all other
  components of the URI is case-insensitive unless explicitly defined
  otherwise. 

-- juha



More information about the sr-dev mailing list