Bug in SIP URI parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm pretty sure domain names can have underscores in them (I just did  
a quick test with a bind install and it does seem to work). It might  
not be formally correct, but theres sometimes a disconnect between  
formally correct and practically correct.

On 29/07/2009, at 6:02 AM, Sa?l Ibarra wrote:

> According to the BNF grammar in the RFC (3261) the host part of a SIP
> URI should not contain underscores ('_'). However, pjsip does accept
> it.
>
>>>> lib
> <pjsua.Lib instance at 0x7fc4750277e8>
>>>> lib.verify_sip_url("SIp:alice:mypassword at invalid_hostpart.com:5070;param=xxx 
>>>> ")
> 0
>
> I'm using pjsip version 1.0.3 BTW.
>
>
> PS: This is the BNF grammar for SIP URIs :)
>
> SIP-URI          =  "sip:" [ userinfo ] hostport
>                    uri-parameters [ headers ]
>
> hostport         =  host [ ":" port ]
> host             =  hostname / IPv4address / IPv6reference
> hostname         =  *( domainlabel "." ) toplabel [ "." ]
> domainlabel      =  alphanum
>                    / alphanum *( alphanum / "-" ) alphanum
> toplabel         =  ALPHA / ALPHA *( alphanum / "-" ) alphanum
>
> alphanum  =  ALPHA / DIGIT
>
>
> -- 
> Sa?l -- "Nunca subestimes el ancho de banda de un cami?n lleno de  
> disketes."
> ----------------------------------------------------------------
> http://www.saghul.net/
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

===================================
Shayne O'Neill Development
Mobile, Web and Business process integration.
shayne.oneill at gmail.com 0400247091
Ask me about how Alfresco can help your business grow.




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux