User`s manual
SIP User's Manual 8. Telephony Capabilities
Version 5.0 241 December 2006
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="audiocodes.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: audiocodes.com
The password from the ini file: AudioCodes.
The equation to be evaluated: (according to RFC this part is called A1).
‘122:audiocodes.com:AudioCodes’.
The MD5 algorithm is run on this equation and stored for future usage.
The result is: ‘a8f17d4b41ab8dab6c95d3c14e34a9e1’
Next we need to evaluate the par called A2. We take:
The method type ‘REGISTER’
Using SIP protocol ‘sip’
Proxy IP from ini file ‘10.2.2.222’
The equation to be evaluated:
‘REGISTER:sip:10.2.2.222’.
The MD5 algorithm is run on this equation and stored for future usage.
The result is:’a9a031cfddcb10d91c8e7b4926086f7e’
The final stage:
The A1 result
The nonce from the proxy response: ‘11432d6bce58ddf02e3b5e1c77c010d2’
The A2 result
The equation to be evaluated:
‘A1:11432d6bce58ddf02e3b5e1c77c010d2:A2’.
The MD5 algorithm is run on this equation. The outcome of the calculation is the response
needed by the gateway to be able to register with the Proxy.
The response is: ‘b9c45d0234a5abf5ddf5c704029b38cf’