3Com
®
VCX V7111 VoIP Gateway User Guide
275
SIP Authentication Example
V7111 gateways support basic and digest (MD5) authentication types, according to SIP RFC
3261 standard. A proxy server might require authentication before forwarding an INVITE
message. A Registrar/Proxy server may also require authentication for client registration. A
proxy replies to an unauthenticated INVITE with a 407 Proxy Authorization Required
response, containing a Proxy-Authenticate header with the form of the challenge. After
sending an ACK for the 407, the user agent can then resend the INVITE with a Proxy-
Authorization header containing the credentials.
User agent, redirect or registrar servers typically use 401 Unauthorized response to
challenge authentication containing a WWW-Authenticate header, and expect the re-INVITE
to contain an Authorization header.
The following example describes the Digest Authentication procedure including computation
of user agent credentials.
The REGISTER request is sent to Registrar/Proxy server for registration, as follows:
REGISTER sip:10.2.2.222 SIP/2.0
Via: SIP/2.0/UDP 10.1.1.200
From: <sip: 122@10.1.1.200>;tag=1c17940
To: <sip: 122@10.1.1.200>
Call-ID: 634293194@10.1.1.200
User-Agent: 3Com-Sip-Gateway/V7111 18 PORT FXS/v.4.20.299.410
CSeq: 1 REGISTER
Contact: sip:122@10.1.1.200:
Expires:3600
On receiving this request the Registrar/Proxy returns 401 Unauthorized response.
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.2.1.200
From: <sip:122@10.2.2.222 >;tag=1c17940
To: <sip:122@10.2.2.222 >
Call-ID: 634293194@10.1.1.200
Cseq: 1 REGISTER
Date: Mon, 30 Jul 2001 15:33:54 GMT
Server: Columbia-SIP-Server/1.17
Content-Length: 0
WWW-Authenticate: Digest realm="3Com.com",
nonce="11432d6bce58ddf02e3b5e1c77c010d2",
stale=FALSE,
algorithm=MD5
According to the sub-header present in the WWW-Authenticate header the correct
REGISTER request is formed.
Since the algorithm used is MD5, take:
The username is equal to the endpoint phone number: 122
The realm return by the proxy: 3Com.com
The password from the ini file: 3Com.
The equation to be evaluated: (according to RFC this part is called A1).
Summary of Contents for VCX V7111
Page 30: ...30 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 44: ...44 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 53: ...3Com VCX V7111 VoIP Gateway User Guide 53 Readers Notes ...
Page 54: ...54 3Com VCX V7111 VoIP Gateway User Guide ...
Page 211: ...3Com VCX V7111 VoIP Gateway User Guide 211 Figure 76 IP Connectivity Screen ...
Page 235: ...3Com VCX V7111 VoIP Gateway User Guide 235 Readers Notes ...
Page 236: ...236 3Com VCX V7111 VoIP Gateway User Guide ...
Page 240: ...240 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 245: ...3Com VCX V7111 VoIP Gateway User Guide 245 Readers Notes ...
Page 246: ...246 3Com VCX V7111 VoIP Gateway User Guide ...
Page 281: ...3Com VCX V7111 VoIP Gateway User Guide 281 Readers Notes ...
Page 282: ...282 3Com VCX V7111 VoIP Gateway User Guide ...
Page 298: ...298 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 315: ...3Com VCX V7111 VoIP Gateway User Guide 315 Readers Notes ...
Page 316: ...316 3Com VCX V7111 VoIP Gateway User Guide ...
Page 319: ...3Com VCX V7111 VoIP Gateway User Guide 319 Readers Notes ...
Page 320: ...320 3Com VCX V7111 VoIP Gateway User Guide ...
Page 346: ...346 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 351: ...3Com VCX V7111 VoIP Gateway User Guide 351 Readers Notes ...
Page 352: ...352 3Com VCX V7111 VoIP Gateway User Guide ...
Page 376: ...376 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 386: ...386 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 394: ...394 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 396: ...396 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 405: ...3Com VCX V7111 VoIP Gateway User Guide 405 Reader s Notes ...
Page 406: ...406 3Com VCX V7111 VoIP Gateway User Guide ...
Page 410: ...410 3Com VCX V7111 VoIP Gateway User Guide ...
Page 426: ...426 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 432: ...432 3Com VCX V7111 VoIP Gateway User Guide Figure 153 Prerecorded Tones Screen ...
Page 452: ...452 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...
Page 456: ...456 3Com VCX V7111 VoIP Gateway User Guide Readers Notes ...