7.12.2 Sip Authentication Example - AudioCodes MediaPack MP-124 User Manual

Hide thumbs Also See for MediaPack MP-124:
Table of Contents

Advertisement

Note:
F6 (10.8.201.108 >> 10.8.201.10 BYE):
BYE sip:1000@10.8.201.10;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.8.201.108;branch=z9hG4bKacRKCVBud
From: <sip:8000@10.8.201.108>;tag=1c5354
To: <sip:1000@10.8.201.10>;tag=1c7345
Call-ID: 534366556655skKw-8000--1000@10.8.201.108
User-Agent: Audiocodes-Sip-Gateway/device/v.5.40.010.006
CSeq: 18154 BYE
Supported: 100rel,em
Content-Length: 0
F7 (10.8.201.10 >> 10.8.201.108 200 OK):
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.8.201.108;branch=z9hG4bKacRKCVBud
From: <sip:8000@10.8.201.108>;tag=1c5354
To: <sip:1000@10.8.201.10>;tag=1c7345
Call-ID: 534366556655skKw-8000--1000@10.8.201.108
Server: Audiocodes-Sip-Gateway/Device/v.5.40.010.006
CSeq: 18154 BYE
Supported: 100rel,em
Content-Length: 0

7.12.2 SIP Authentication Example

The device supports 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:
1.
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/gateway/v.5.40.010.006
CSeq: 1 REGISTER
Contact: sip:122@10.1.1.200:
Expires:3600
SIP User's Manual
Phone '8000' goes on-hook and device 10.8.201.108 sends a BYE to device
10.8.201.10. Voice path is established.
340
MediaPack Series
Document #: LTRT-65410

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mediapack mp-11 series

Table of Contents