Yes, it's legal, and yes it's a generic parameter variant of the contact-params. I believe this is defined in draft-ietf-sip-callee-caps-03.txt
Regards,
Brian
-----Original Message-----
From: Umesh Balani [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 01, 2004 4:17 AM
To: [EMAIL PROTECTED]
Subject: [Sip-implementors] Contact header
Here is a sample REGISTER request that is sent by Windows Messenger.
REGISTER sip:iptel.org SIP/2.0
Via: SIP/2.0/UDP 172.17.24.240:3025
Max-Forwards: 70
From:
<sip:[EMAIL PROTECTED]>;tag=b900f655ff4b4308b4941ab9aaac6fb2;epid=f2ed7cd
23d
To: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 1 REGISTER
Contact: <sip:172.17.24.240:3025>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER"
User-Agent: RTC/1.2.4949 (Messenger 5.0.0381)
Event: registration
Allow-Events: presence
Content-Length: 0
In the following header
Contact: <sip:172.17.24.240:3025>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER"
I am not sure which sip header would the "methods=....." fit. ?
i.e. -> methods="INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE,
CANCEL, NOTIFY, ACK, REFER"
The closest match which I see is "contact-extension = generic-param"
where
generic-param = token [ EQUAL gen-value ].
even this matches only
"<sip:172.17.24.1:13129>;m" cause only one token i.e. "m" is matched
which is
right as per the
generic-param = token [ EQUAL gen-value ]
rule. So where am I going wrong ?
Secondly, It this methods tag legal, couldn't find any refrence to it in
3261 ?
Grammar Refrence ::
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
c-p-q = "q" EQUAL qvalue
qvalue = ( "0" [ "." 0*3DIGIT ]
) / ( "1" [ "." 0*3("0") ] )
c-p-expires = "expires" EQUAL
delta-seconds
delta-seconds = 1*DIGIT
contact-extension = generic-param
generic-param = token [ EQUAL
gen-value ]
gen-value = token / host /
quoted-string
_________________________
Regards
Umesh Balani
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
_______________________________________________ Sip-implementors mailing list [EMAIL PROTECTED] http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
