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:[email protected]>;tag=48a3731a9fedcbb7o0
To: Fax: Test-Name <sip:[email protected]>
Call-ID: [email protected]
CSeq: 65011 REGISTER
Max-Forwards: 70
Contact: Fax: Test-Name <sip:[email protected]: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


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to