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

Bastian Schern ml04 at reventix.de
Thu Jan 23 18:33:46 CET 2014


Hi,

IMHO the definition for the display-name of the "Contact" and "From" is 
similar.

Complete SIP message with bad diplay names in header parts:
--- snip ---
REGISTER sip:192.168.100.100 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.177:5060;branch=z9hG4bK-2e2fcbb8
From: Fax: Test-Name <sip:1001 at 192.168.100.100>;tag=48a3731a9fedcbb7o0
To: Fax: Test-Name <sip:1001 at 192.168.100.100>
Call-ID: 5dcf6174-e6561fbf at 192.168.100.177
CSeq: 65011 REGISTER
Max-Forwards: 70
Contact: Fax: Test-Name <sip:1001 at 192.168.100.177:5060>;expires=3600
User-Agent: Linksys/SPA2102-5.2.12
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
--- snap ---

The error message is only announcing the bad "Contact" value. Also the 
REGISTER message is accepted by OpenSIPS correctly.

I have two questions about that:
1. Is the ERROR is only generated by the nat_traversal module?
2. Is it really an ERROR or is it only a WARN or INFO message?


Regards
	Bastian

Am 23.01.2014 16:42, schrieb Vlad Paiu:
> 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




More information about the Users mailing list