|
Written by Hemanshu Patel
|
|
Thursday, 08 November 2007 |
|
Page 2 of 17 2.1. Successful New Registration
Bob SIP Server | | | REGISTER F1 | |------------------------------>| | 401 Unauthorized F2 | |<------------------------------| | REGISTER F3 | |------------------------------>| | 200 OK F4 | |<------------------------------| | |
Bob sends a SIP REGISTER request to the SIP server. The request includes the user's contact list. This flow shows the use of HTTP Digest for authentication using TLS transport. TLS transport is used due to the lack of integrity protection in HTTP Digest and the danger of registration hijacking without it, as described in RFC 3261 [1]. The SIP server provides a challenge to Bob. Bob enters her/his valid user ID and password. Bob's SIP client encrypts the user information according to the challenge issued by the SIP server and sends the response to the SIP server. The SIP server validates the user's credentials. It registers the user in its contact database and returns a response (200 OK) to Bob's SIP client. The response includes the user's current contact list in Contact headers. The format of the authentication shown is HTTP digest. It is assumed that Bob has not previously registered with this Server.
Message Details
F1 REGISTER Bob -> SIP Server
REGISTER sips:ss2.biloxi.example.com SIP/2.0 Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashds7 Max-Forwards: 70 From: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=a73kszlfl To: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
> Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 REGISTER Contact: <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
> Content-Length: 0
F2 401 Unauthorized SIP Server -> Bob
SIP/2.0 401 Unauthorized Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashds7 ;received=192.0.2.201 From: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=a73kszlfl To: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=1410948204 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 REGISTER WWW-Authenticate: Digest realm="atlanta.example.com", qop="auth", nonce="ea9c8e88df84f1cec4341ae6cbe5a359", opaque="", stale=FALSE, algorithm=MD5 Content-Length: 0
F3 REGISTER Bob -> SIP Server
REGISTER sips:ss2.biloxi.example.com SIP/2.0 Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashd92 Max-Forwards: 70 From: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=ja743ks76zlflH To: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
> Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 REGISTER Contact: <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
> Authorization: Digest username="bob", realm="atlanta.example.com" nonce="ea9c8e88df84f1cec4341ae6cbe5a359", opaque="", uri="sips:ss2.biloxi.example.com", response="dfe56131d1958046689d83306477ecc" Content-Length: 0
F4 200 OK SIP Server -> Bob
SIP/2.0 200 OK Via: SIP/2.0/TLS client.biloxi.example.com:5061;branch=z9hG4bKnashd92 ;received=192.0.2.201 From: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=ja743ks76zlflH To: Bob <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;tag=37GkEhwl6 Call-ID:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 REGISTER Contact: <sips:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
>;expires=3600 Content-Length: 0
|