3.1.3 SIP to SIP with Multi Proxy Authentication
In this example UserA (sip:[EMAIL PROTECTED]) calls UserB (sip:[EMAIL PROTECTED]).
Take a look to the following messages (F2 and F4):
F2)
SIP/2.0 407 Proxy Authorization Required
Via: SIP/2.0/UDP here.com:5060
From: BigGuy <sip:[EMAIL PROTECTED]>
To: LittleGuy <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 1 INVITE
Proxy-Authenticate: Digest realm="WorldCom SIP",
domain="sip:ss1.wcom.com", nonce="wf84f1cczx41ae6cbeaea9ce88d359",
opaque="", stale=FALSE, algorithm=MD5
Content-Length: 0
--------------------------------------------------------------------
F4)
INVITE sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP here.com:5060
From: BigGuy <sip:[EMAIL PROTECTED]>
To: LittleGuy <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 2 INVITE
Contact: <sip:[EMAIL PROTECTED]>
Proxy-Authorization:Digest username="UserA", realm="WorldCom SIP",
nonce="wf84f1ceczx41ae6cbe5aea9c8e88d359", opaque="",
uri="sip:ss1.wcom.com", response="42ce3cef44b22f50c6a6071bc8"
Content-Type: application/sdp
Content-Length: 147
v=0
o=UserA 2890844526 2890844526 IN IP4 here.com
s=Session SDP
c=IN IP4 100.101.102.103
t=0 0
m=audio 49172 RTP/AVP 0
a=rtpmap:0 PCMU/8000
In the "Proxy-Authenticate" header there is the "domain" parameter.
domain="sip:ss1.wcom.com"
In the "Proxy-Authorization" header the "uri" parameter is setted to the domain
parameter value.
uri="sip:ss1.wcom.com"
Why?
I'm expected uri was equals to:
uri="sip:[EMAIL PROTECTED]"
In RFC 2617:
digest-uri
The URI from Request-URI of the Request-Line; duplicated here
because proxies are allowed to change the Request-Line in transit.
Thanks!
Lorenzo
___________________________________________
Lorenzo Boffelli
STRE Engineer
Allied Telesis K.K.
Head Office / 4F TOC Bldg, 7-22-17 Nishi-Gotanda,
Shinagawa-ku, Tokyo Japan, 141-8635
European R&D Center
Piazza Tirana, 24/4 b Phone: +39 02 41411201
20147 Milano Fax: +39 02 41411260
ITALY
Email: [EMAIL PROTECTED]
___________________________________________
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors