[SIPForum-discussion] Help: is this a valid request?

Moshe Ostrovsky mosheo at radvision.com
Sat Dec 27 20:13:52 UTC 2008


Hi Andro.

 

Sure, according to the chapter 25 of RFC3261 - BNF, the address spec of
SIP URI (which is the integrated part of To header) can use a form of
sip:user:password at hostport, the relevant part of rfc:

 

SIP-URI          =  "sip:" [ userinfo ] hostport

                    uri-parameters [ headers ]

userinfo         =  ( user / telephone-subscriber ) [ ":" password ] "@"

user             =  1*( unreserved / escaped / user-unreserved )

user-unreserved  =  "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"

password         =  *( unreserved / escaped /

                    "&" / "=" / "+" / "$" / "," )

hostport         =  host [ ":" port ]

host             =  hostname / IPv4address / IPv6reference

hostname         =  *( domainlabel "." ) toplabel [ "." ]

domainlabel      =  alphanum

                    / alphanum *( alphanum / "-" ) alphanum

 

Best regards,

 

From: Andro [mailto:androjoker at gmail.com] 
Sent: Friday, December 26, 2008 1:45 PM
To: Moshe Ostrovsky
Cc: Stephen Guo; discussion at sipforum.org
Subject: Re: [SIPForum-discussion] Help: is this a valid request?

 

Hello,  

are you sure that it is correct?
I have some doubt about the use of ":" like in "tester:password". Is it
legal to use a ":" in the To or From URI?

2008/12/24 Moshe Ostrovsky <mosheo at radvision.com>

Hi Stephen.

 

Such a message is valid acc. to RFC 3261 BNF. 

Just to be sure I've tried it using our testing tools which are fully
RFC 3261 compatible and the call has been established with any parsing
errors.

 

Best regards.

 

Moshe Ostrovsky

SIP-IMS leader

 

RADVISION(r)

Delivering the Visual ExperienceTM

 

Tel:                         +972.3.767.9627

Fax:                        +972.3.767.9606

Mobile:                   +972.52.622.9608

Website:                 www.radvision.com <http://www.radvision.com/> 

 

From: discussion-bounces at sipforum.org
[mailto:discussion-bounces at sipforum.org] On Behalf Of Stephen Guo
Sent: Tuesday, December 23, 2008 7:26 AM
To: discussion at sipforum.org
Subject: [SIPForum-discussion] Help: is this a valid request?

 

Hi all,
    Please have a look, is following request valid?
There is a horizontal tab preceding each extra line in To header.

INVITE sip:tester at 192.168.3.104 <mailto:sip%3Atester at 192.168.3.104>
SIP/2.0
CSeq: 1 INVITE
Via: SIP/2.0/UDP
192.168.3.101:5068;branch=z9hG4bK68aj5t30nezhwfkv921lsbuiq7coxrdy
From: "Negativa"
<sip:tester:password at 192.168.3.104:5060>;tag=somefromtagval
Call-ID: 6tasnymb8du9e2xp045ohz3lwkcr1vfq at TheKlatchianHead
To:     
    
    
    
    "Negativa" <sip:tester:password at 192.168.3.104:5060>
Contact: <sip:tester:password at 192.168.3.104:5060>
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 389

(SDP not shown)

According RFC 3261 section 7.3.1 Header Field Format description,
"Header fields can be extended over multiple lines by preceding each
extra line with at least one SP or horizontal tab (HT)", above request
is valid, right? 

-- 
Best Regards,
Stephen Guo




-- 
Best Regards,
Stephen


_______________________________________________
This is the SIP Forum discussion mailing list
TO UNSUBSCRIBE, or edit your delivery options, please visit
http://sipforum.org/mailman/listinfo/discussion
Post to the list at discussion at sipforum.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20081227/d1d840b8/attachment-0002.html>


More information about the discussion mailing list