The Contact's ABNF is within RFC 3261 section 25.1.  Your new contact
parameter must conform to contact-extension.  You'd use an equals instead
of colon.

Contact        =  ("Contact" / "m" ) HCOLON
                  ( STAR / (contact-param *(COMMA contact-param)))
contact-param  =  (name-addr / addr-spec) *(SEMI contact-params)
contact-params     =  c-p-q / c-p-expires
                      / contact-extension
contact-extension  =  generic-param
generic-param  =  token [ EQUAL gen-value ]
gen-value      =  token / host / quoted-string
token       =  1*(alphanum / "-" / "." / "!" / "%" / "*"
                     / "_" / "+" / "`" / "'" / "~" )

> -----Original Message-----
> From: sip-implementors-boun...@lists.cs.columbia.edu [mailto:sip-
> implementors-boun...@lists.cs.columbia.edu] On Behalf Of J C Sunil
> Kumar Reddy
> Sent: Friday, March 21, 2014 6:33 AM
> To: sip-implementors@lists.cs.columbia.edu
> Subject: [Sip-implementors] Query on Contact header parameter
>
> Hi All,
>
> I need to send a proprietary parameter in contact header in an INVITE
> message to other end.
> Something like this:
>
> Contact: "Sunil"
> <sip:48002@10.128.224.41;transport=tcp>;category:strvalue
>
> Here "category:strvalue" is my proprietary parameter. Where "category"
> is a
> param name and "strvalue" is the value.
>
> What does the SIP standard specify? whether it should be colon(:) or
> Equals(=)?
> I mean according to SIP standards, which is the correct one?
>
> category:strvalue
> or
> category=strvalue
> or something else?

-- 


This email is intended solely for the person or entity to which it is 
addressed and may contain confidential and/or privileged information. If 
you are not the intended recipient and have received this email in error, 
please notify BroadSoft, Inc. immediately by replying to this message, and 
destroy all copies of this message, along with any attachment, prior to 
reading, distributing or copying it.

_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to