[asterisk-dev] "sip:" or "SIP:" in chan_sip

Alex Balashov abalashov at evaristesys.com
Wed May 16 02:12:33 MST 2007


On Wed, 16 May 2007, Olle E Johansson said something to this effect:

> I really don't know what the URI spec says, but I assume it is case 
> insensitive. It makes sense to handle it that way in the code anyway. 
> I'll go ahead and try to fix this.

   The lowercase variety ('sip:') is standard in all implementations I've
ever run across.

   But, RFC 2396, which treats of URIs, has this to say:

     Scheme names consist of a sequence of characters beginning with a
     lower case letter and followed by any combination of lower case
     letters, digits, plus ("+"), period ("."), or hyphen ("-").  For
     resiliency, programs interpreting URI should treat upper case letters
     as equivalent to lower case in scheme names (e.g., allow "HTTP" as
     well as "http").

   So, going by the RFC's recommendations, it looks like 'SIP:' should be 
admissible as well.

-- Alex

--
Alex Balashov   <sasha at presidium.org>


More information about the asterisk-dev mailing list