Hi Brett

Thanks for the answer. I missed the <> while pasting in the mail. The Contact 
received is:

Contact: 
<sip:917163166;phone-context=+34@10.31.255.134:5070;endpoint=192.168.126.12;transport=udp>

Should the ReINVITE be sent to 10.31.255.134:5070 in this case?

Regards
Tarun Gupta


-----Original Message-----
From: Brett Tate [mailto:br...@broadsoft.com]
Sent: Monday, February 10, 2014 4:17 PM
To: Tarun2 Gupta; sip-implementors@lists.cs.columbia.edu
Subject: RE: [Sip-implementors] Query on Contact in INVITE

> Is the following a valid example of a Contact in INVITE:

No; the missing brackets cause the parameters to decode as header parameters 
instead of being part of the sip-uri.  This causes the '@' to be an invalid 
header parameter character.  Similarly, "917163166" wouldn't decode correctly 
as a "host".  I am assume that some decodes will accommodate the invalid 
character usage; however the sip-uri won't decode as the sender likely intended.

generic-param =  token [ EQUAL gen-value ]
gen-value     =  token / host / quoted-string

host        =  hostname / IPv4address / IPv6reference
hostname    =  *( domainlabel "." ) toplabel [ "." ]
domainlabel =  alphanum / alphanum *( alphanum / "-" ) alphanum
toplabel    =  ALPHA / ALPHA *( alphanum / "-" ) alphanum


> Contact: sip:917163166;phone-context=+34@10.31.255.134:5070;
> endpoint=192.168.126.12;transport=udp

<snip>

> Can you give me any normative references in support of the above ABNF.

The following RFC 3261 section 20 snippet indicates why the sender should 
enclose within brackets.

"The Contact, From, and To header fields contain a URI.  If the URI  contains a 
comma, question mark or semicolon, the URI MUST be  enclosed in angle brackets 
(< and >).  Any URI parameters are  contained within these brackets.  If the 
URI is not enclosed in angle  brackets, any semicolon-delimited parameters are 
header-parameters,  not URI parameters."

--


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.





===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================

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

Reply via email to