[OpenSIPS-Devel] [opensips] Error in the logs while looking for contact param when param missing (#228)

Bogdan Andrei IANCU notifications at github.com
Fri May 9 09:21:14 CEST 2014


@ovidiusas , according to the RFC3261 grammar , the contact body
["test" sip:test at 192.168.2.113:53814;ob;reg-id=1;+sip.instance="urn:uuid:ed409b05-1872-36ee-8ba0-865cb642250b"]
is not valid. If display name is present, the URI must be enclosed between angle brackets (see page 227 in the RFC):

 Contact        =  ("Contact" / "m" ) HCOLON
                  ( STAR / (contact-param *(COMMA contact-param)))
contact-param  =  (name-addr / addr-spec) *(SEMI contact-params)
name-addr      =  [ display-name ] LAQUOT addr-spec RAQUOT
addr-spec      =  SIP-URI / SIPS-URI / absoluteURI
display-name   =  *(token LWS)/ quoted-string

So, the correct format should be : 
["test" <sip:test at 192.168.2.113:53814>;ob;reg-id=1;+sip.instance="urn:uuid:ed409b05-1872-36ee-8ba0-865cb642250b"]

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/228#issuecomment-42639830
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140509/3d74ba57/attachment-0001.htm>


More information about the Devel mailing list