Sip Authentication Example - AudioCodes Mediant 1000 User Manual

Sip media gateways
Hide thumbs Also See for Mediant 1000:
Table of Contents

Advertisement

SIP User's Manual
BYE sip:2000@10.8.201.158;user=phone;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.8.201.161;branch=z9hG4bKacLBzZgmA
From: <sip:6000@10.8.201.161>;tag=1c29715
To: <sip:2000@10.8.201.158>;tag=1c3535
Call-ID: 2123353775377NrpL-2000--6000@10.8.201.158
User-Agent: Audiocodes-Sip-Gateway/Mediant 1000/v.4.20.299.410
CSeq: 34541 BYE
Supported: 100rel,em
Content-Length: 0
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.8.201.161;branch=z9hG4bKacLBzZgmA
From: <sip:6000@10.8.201.161>;tag=1c29715
To: <sip:2000@10.8.201.158>;tag=1c3535
Call-ID: 2123353775377NrpL-2000--6000@10.8.201.158
Server: Audiocodes-Sip-Gateway/Mediant 1000/v.4.20.299.410
CSeq: 34541 BYE
Supported: 100rel,em
Content-Length: 0

9.14.3 SIP Authentication Example

Mediant 1000 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: Audiocodes-Sip-Gateway/Mediant 1000/v.4.20.299.410
CSeq: 1 REGISTER
Contact: sip:122@10.1.1.200:
Expires:3600
Version 5.0
F5 10.8.201.161 ==> 10.8.201.158 BYE
F6 10.8.201.158 ==> 10.8.201.161 200 OK
295
9. Telephony Capabilities
December 2006

Advertisement

Table of Contents
loading

Table of Contents