[OpenSIPS-Users] cannot parse the Contact URI with colon in display part

Vlad Paiu vladpaiu at opensips.org
Thu Jan 23 16:42:43 CET 2014


Hello,

Going through the SIP RFC, I see that the display name is described as

     display-name = *(token LWS)/ quoted-string

and token is

     token = 1*(alphanum / "-" / "." / "!" / "%" / "*" / "_" / "+" / "`" 
/ "'" / "~" )

Thus if your display name contains other symbols than the above, it 
should be a quoted string.

Best Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com

On 21.01.2014 22:57, Martin Stock wrote:
> Hi Guys,
>
> IMHO the current OpenSIPS creates a strange error message if the 
> display part of contact header contains a colon ":".
> E.g. the error messages looks like this:
> --- snip ---
> opensips[24791]: ERROR:core:parse_uri: bad uri,  state 0 parsed: Fax: 
> (4) / Fax: Name sip:1001 at 192.168.16.158:5060 (62)
> opensips[24791]: ERROR:nat_traversal:get_contact_uri: cannot parse the 
> Contact URI
> --- snap ---
>
> The contact header in the of the UA:
> Contact: Fax: Name <sip:1001 at 192.168.16.158:5060>
>
> If I remove the ":" inside the display part the error message disappears.
>
> In diplay parts of other URIs this is not a problem.
>
> Is that a bug?
>
> Regards
> Martin
>
> P.S.:
> I'm using OpenSIPS version 1.10.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list