MGCP call agent module

From Yate Documentation
Jump to: navigation, search

This module implements the Call Agent part of MGCP allowing Yate to control analog or digital Media Gateways.

The resources of these gateways appear as voice circuits so you need to reference them in the analog or signaling module.

Specific information is available for configuring digital voice trunks for Mediant and Cisco gateways.

Configuration file


; This section sets global variables of the MGCP Call Agent module

; priority: int: Priority of the chan.rtp message handler

; tzoffset: int: Timezone offset from GMT in seconds for sending Caller ID
; Positive to go East, negative to go West
; Examples: CET=3600, EST=-18000
; This parameter is reloadable

; These parameters are used to initialize the MGCP Engine

; enabled: bool: Enable the MGCP engine

; address: ipaddress: Local IP address to bind to, default all interfaces

; port: int: UDP port to bind, set to zero to use default MGCP CA port (2727)

; request_ack: bool: Request an Acknowledge of the transactions

; send_provisional: bool: Send 1xx provisional answers to the requests

; Settings for the local endpoint

; user: string: The user part of the local endpoint

; host: string: The host part of the local endpoint, default engine's address

; port: int: Declared local port, defaults to engine's port

; This section allows to individually enable or disable the codecs

; default: bool: Enable all unlisted codecs by default if a transcoder exists

; mulaw: bool: Companded-only G711 mu-law (PCMU/8000)

; alaw: bool: Companded-only G711 a-law (PCMU/8000)

; gsm: bool: European GSM 06.10 (GSM/8000)

; lpc10: bool: Linear Prediction Codec (LPC/8000)

; ilbc: bool: Internet Low Bandwidth Codec (iLBC/8000)

; amr: bool: Adaptive Multi-Rate 3GPP (AMR/8000)

; slin: bool: Signed Linear 16-bit uncompressed (L16/8000)

; g723: bool: ITU G.723 all variations (G723/8000)

; g726: bool: ITU G.726 32-bit (G726-32/8000)

; g728: bool: ITU G.728 all variations (G728/8000)

; g729: bool: ITU G.729 all variations (G729/8000)

; g729_annexb: bool: G.729 Annex B (VAD) support default (if not in SDP)
; NOTE: RFC 3555 specifies the default should be yes

; amr_octet: bool: Octet aligned AMR RTP payload default (if not in SDP)
; NOTE: RFC 4867 (and older 3267) specifies the default is bandwidth efficient

; This section holds the dirty stuff required to work with some broken
;  implementations
; ilbc_forced: string: Format to force as iLBC, can be: ilbc20 or ilbc30
; ilbc_default: string: Format to use for iLBC when packetization is unknown

; g729_annexb: bool: Force G.729 Annex B support when parsing the SDP

; ignore_sdp_port: bool: Ignore SDP changes if only the port is different
; This allows preserving the local RTP session and port

; One gw ... section is required for each gateway we control
; The gateway name is a string that can be referenced from other modules

; user: string: Remote MGCP resource name

; host: ipaddress: IP address or hostname of the gateway, mandatory

; port: int: Remote port to send packets to

; address: ipaddress: IP address of the gateway, if present will override
;  resolving the host name and will immediately make the span operational
;  without waiting for a remote RSIP

; version: string: Protocol name and version to use initially, if left blank
;  will autodetect from first received RSIP, until then uses MGCP 1.0
; Depending on remote capabilities and settings it is possible to use the SGCP
;  or TGCP protocols too.

; range: string: Range of gateways to create using this section as a template
; If range is not empty the "user" setting must contain an asterisk
; Example for creating aaln1/[1-10], aaln2/[1-10], aaln3/[1-10] and aaln6/[1-10]:
;  user=aaln*/1
;  chans=10
;  range=1-3,6

; cluster: bool: This is the gateway to send remote RTP commands to
; Do not activate this functionality unless you know very well what it does
;  as it disrupts other based RTP protocols

; voicechans: string: The range of channels used for voice (data) transfer
; Channel intervals may be specified by separating the margins using the '-' character
; Individual channels or channel intervals may be separated by '.'
; Duplicate or not strict positive channel numbers are not allowed
; If specified the highest circuit number is used as number of PSTN channels
; E.g. 1-15.17-31 or 1-23 or 1.2.3-15.17.18-30.31

; chans: int: Number of PSTN circuits to create in span
; Defaults to 1 or highest voicechan declared

; offset: int: Offset of circuit code relative to start in span

; increment: integer: How much will increment this span the circuit number in
;  the group it belongs to
; Defaults to 32 if chans is 30 or 31 (E1), 24 if chans is 23 (T1), number of
;  circuits in all other cases

; clearconn: bool: Clear all connections of remote endpoints when initialized

; bearer: keyword: Default bearer encoding
; Allowed values: mulaw, alaw
; If bearer is set a default encoding is assumed on the circuit side and a
;  B: e:mu or B: e:A line is added only if the circuit data format changes
; Normally the default bearer is not set so a B: line is added when needed

; req_dtmf: keyword: When to request DTMF notification from gateway
; Allowed values:
;  none - do not request to be notified about DTMF events
;  once - emit RQNT once when connecting the circuit (default)
;  more - emit RQNT on connection and after each notification received

; forward_rtp: bool: Support to forward RTP directly to protocols that support it
; The actual direct RTP forwarding is still negotiated in routing
;forward_rtp=yes for digital gateways, no for analogic

; forward_sdp: bool: Also include the raw SDP in the RTP forward offer


Configuration for a Mediant MP-114 FXS analog gateway.


; Central European Time, +0100



[gw mp114]





; set caller number depending on line on Mediant

; enable RTP forwarding if supported by caller channel
; perform overlapped dial
; route 18x to the corresponding port
; ...
; If we reached this point and not using overlapped dialing return without route
; If number is too long to be possibly valid error out
; Let the dialer know there may be other routes

See also

Personal tools