Vous êtes sur la page 1sur 18

MGCP Overview

(a VoIP protocol)

William.L
wiliwe@gmail.com

2005-01-11
1

Agenda




Whats MGCP?
MGCP Internal
Basic Call Flows

Whats MGCP?

MGCP (1/2)



Media Gateway Control Protocol


Media Gateway (MG)


provides conversion between the audio signals


(telephone circuits) and data packets (Internet)

For controlling media gateway from call


control elements



Media Gateway Controller (MGC)


Call Agent (CA)

MGCP (2/2)


Master-Slave architecture
Call Agent

IP network
MGCP

MGCP

(Endpoint)
Analog
Phone A

(Endpoint)

RTP

Media Gateway

Media Gateway
(RG, residential gateway)

Analog
Phone B

Streaming Multimedia Protocols SIP, H.323, MGCP, RTSP, RTP, RTCP


Signaling Protocols

Media Data
Transport
Audio/
Video

H.323
H.225
H.245

Q.931

RAS

SIP

MGCP

TCP

RTSP

RTP

RTCP

UDP
IP

MGCP messages
are transmitted
over UDP.

MGCP Internal

MGCP Components


Endpoints


Connection


off-hook, on-hook, flash-hook, dialed digits

Signal


point-to-point, multi-point ex: ATM, IP, PSTN

Event


sources and sinks of data

dial tone, ringing, busy tone

Package


group of signals and events ex: R:hu , S:dl

Connections


Connections may be either point-to-point or


multipoint


Point-to-Point(p2p) connection



Associates two endpoints.


Once this association is established for both endpoints,
data transfer between these endpoints can begin

Multipoint connection


Established by connecting the endpoint to a multipoint


session

Events & Signals




The controlling primitives for MGCP operations


are



Signals sent from MGC to MG


Events sent from MG to MGC

The concepts of Signals and Events are used


for establishing and tearing down calls

Operations are performed by applying Signals


TO, and detecting Events FROM endpoints

10

MGCP Commands(Methods)










RQNT - Notification Request


NTFY - Notify
CRCX - Create Connection
MDCX - Modify Connection
DLCX - Delete Connection
AUEP - Audit Endpoint
RSIP - Restart In Progress
AUCX - Audit Connection
EPCF - Endpoint Configuration

11

MGCP Return(Status) Codes


100~199

Provisional responses; a final response will follow later


(ex: 100)

200~299

Command Successful (ex: 200)


(250 -- only for DLCX)

400~499

Failure due to a transient error (ex:401 already offhook)

500~599

Failure due to a permanent error (ex:522 no such


event or signal)
(521 - redirect to another call agent)

12

MGCP Digit Map




Digit maps are provided to the gateway by the Call


Agent
0
00
xxxx
8xxxxxxx
#xxxxxxx
*xx
91xxxxxxxxxx
9011 + up to 15 digits

Local operator
Long distance operator
Local extension number
Local number
Shortcut to local number at other
corporate sites
Star services
Long distance number
International number

(0T | 00T | [1-7]xxx | 8xxxxxxx | #xxxxxxx | *xx | 91xxxxxxxxxx | 9011x.T)

13

Basic Call Flows

14

MG Boot Up - Register to Call Agent

Endpoint 1

Call Agent

MG-1

MG-2

Endpoint 2

1. RSIP
2. OK
3. AUEP
4. OK
5. RQNT
6. OK

7. RSIP
8. OK
9. AUEP
10. OK
11. RQNT
12. OK

15

Create a Call (1/2)

Endpoint 1

Call Agent

MG-1

MG-2

1. Off hook

Endpoint 2

2. NTFY
3. OK
4. RQNT
4. Dial tone
6. Press Digits

5. OK
7. NTFY
8. OK
9. CRCX
10. OK

11. CRCX
12. OK

13. MDCX
14. OK

15. MDCX
16. OK
18. RQNT

17. Ring

19. OK

16

Create a Call (2/2)

Endpoint 1

MG-1

Call Agent

MG-2

Endpoint 2

20. RQNT
21. Ring tone
22. OK

23. Off hook


24. NTFY
25. OK

29. Remove ring tone

Start media session


(transport Audio/Video data
using RTP/RTCP)

17

Terminate a Call

Endpoint 1

MG-1

Call Agent

MG-2

Endpoint 2

1. On hook
2. NTFY
3. OK
5. DLCX

4. DLCX
6. OK
8. On hook

7. OK
9. NTFY
10. OK
11. RQNT
12. OK
13. RQNT
14. OK

Media session is terminated


when MGs receive

RTCP BYE

18

Vous aimerez peut-être aussi