среда, 22 мая 2013 г.

Аnalog ports configuration

Some days ago, i've configured  2621XM IOS Routers as a traditional TDM PBX.

In our equipment we have

1xRouter 2621XM

1xNM-2V
1xVIC2-2FXO
1xVIC-2FXS

Here is our diagram of analog phones, Voice Gateway and PSTN


First, lets configure analog ports and dial-peers, which are connected directly to analog phones

dial-peer voice 401 pots

destination-pattern 401
port 0/0/1

dial-peer voice 301 pots
description internal 301 number

destination-pattern 301
port 0/0/1
Then let's configure outbound call legs with a trunk group. In our example we want to use less dial-peer that's why we use trunkgroups

trunk group ANALOG

caller-id 3772381

voice-port 0/1/0\
trunk-group ANALOG
voice-port 0/1/1
trunk-group ANALOG

dial-peer voice 1000 pots
trunk group ANALOG
trunkgroup ANALOG 1

That's all.

Direct inward dial with analog ports

Goooood day to everyone.

Today we'll configure DID on analog ports. As everyone know, there isnt strange configuration with DID of analog ports, except with the help of special ports, known as FXS-DID. But now, we will focus on connection plar configuration, which alos can play role as a DID


First lets configure our FXO voice-por

voice-port 0/1/0
connection-plar 35001 ------ if an inbound call comes into 0/1/0 it will automatically be redirecty to analog station with number 35001


And a simple configuration of outbound dial-peer to analog phone

dial-peer voice 1002 pots
destination-pattern 35001 --------- an outbound call leg from FXO to FXS
port 0/2/0

Very easy to config, if we have multiple analog ports - best way is to use trunk groups.

понедельник, 6 мая 2013 г.

MGCP Configuration for Residential and Trunk Gateways

Some theory about Residential and Trunk Gateways and it relationship to MGCP

Residential Gateway - is a gateway, which is connected to PSTN throw analog ports, also which is directly connects simple analog ports via fxs and provides connection to Voip

Trunk Gateway - is a gateway, which is connected to PSTN throw digital connection, e.g T1 CAS, E1 R2, ISDN E1 PRI, ISDN T1 PRI and provides connection to Voip

Lets begin with configuraion of Trunk Gateways. In our topology we have - CUCM 8.5 (172.16.4.250) and CCME 2801 (172.16.4.5). CCME 2801 is connected to PSTN via ISDN E1 PRI and also via fxo ports

ccm-manager mgcp  ---->>> apply this command to work with CUCM
mgcp 2427 ---->>> enables MGCP on default port (can be entered only mgcp without port, cause 2427 is default udp port for MGCP)
mgcp call-agent 172.16.4.250 2427 service-type mgcp - ---->>> confige MGCP on CCME to work with CUCM

controller E1 0/1/0
 framing NO-CRC4 ---->>> configure framing type for E1
 clock source internal ---->>> configure clocking
 pri-group timeslots 1-31 type none service mgsp ---->>> and finally associate pri channels to be   controlled by mgcp
 description PSTN

On CUCM side is very simple to add MGCP gateway, just pass through Gateway - select gateway type - configure necessary information for MGCP

Finally - configuration of Residential Gateway

ccm-manager mgcp  ---->>> apply this command to work with CUCM
mgcp ---->>> enables MGCP on default port
mgcp call-agent 172.16.4.250 2427 service-type mgcp - ---->>> confige MGCP on CCME to work with CUCM
dial-peer voice 1002 pots
application mgcpapp  ---->>> enables specify dial-peer to be controlled by mgcp
port 0/0/0
dial-peer voice 1003 pots
application mgcpapp  ---->>> enables specify dial-peer to be controlled by mgcp
port 0/0/1
Also we can enable different capabilities to work in mgcp
mgcp package-capability dtmf-package

суббота, 4 мая 2013 г.

Configuring Transcoding and Conferencing support

Today, we will configure a Transcoding and Conferencing support for our CUCM and Voice Gateway (e.g Cisco IOS Router)

First of all, if we want to add conference bridge or transcoder to Cisco Unified Call Manager, SCCP should be configured on CCME. Most common example for Transcoding and Conferencing is a Multi-site deployment over WAN. In such deployment there is certain kind of processes: 1) Transcoding between central office and remote site - converting G.711 to G.729 (which greatly decrease bandwith consumption), 2) Conferencing between central office and remote site - allowing 3 or more participants in one call.

Lets begin our configuration. In our deployment we have CUCM - 8.5 ( IP - 192.168.50.100) and two CCME: first CCME (IP - 192.168.50.1) is located in central office, second is located in remote office (IP - 10.10.20.1)

First step is to install DSP resources in Voice Gateways (You can find lots of information about models and PVDMs on cisco.com)

After installation we can check our dsp, using


show voice dsp

DSP  DSP                DSPWARE CURR  BOOT                         PAK     TX/RX
TYPE NUM CH CODEC       VERSION STATE STATE   RST AI VOICEPORT TS ABORT  PACK COUNT
==== === == ======== ========== ===== ======= === == ========= == ===== ============

Than we should configure a dsp farm (Resourses for transcoding and conferencing)

Both Voice Gateways:

voice card 0
dsp services dspfarm

After we've enabled service, a dsp farm profile should be configured (Each profile should be associated with one process - e.g  transcoding or conferencing)

Central office Voice Gateway (Transcoding)

dspfarm profile 1 transcode
codec g711alaw
codec g711ulaw
codec g729abr8
codec g729ar8
maximum sessions 8  ---- maximum number of sessions of certain dspfarm profile
associate application SCCP
no shutdown

Remote office Voice Gateway (Conferencing)


dspfarm profile 1 conference
codec g711alaw
codec g711ulaw
codec g729abr8
codec g729ar8
maximum sessions 2  ---- maximum number of sessions of certain dspfarm profile
associate application SCCP
no shutdown

Next step is to configure sccp support on our routers, associate dspfarm profile and add CUCM to sccp configuration.

Central office Voice Gateway (Transcoding)

sccp local GigabitEthernet 0/0
sccp ccm 192.168.50.100 identifier 1 priority 1
sccp
sccp ccm group 10
bind interface GigabitEthernet 0/0
associate ccm 1 priority 1
associate profile 1


Remote office Voice Gateway (Conferencing)


sccp local GigabitEthernet 0/0
sccp ccm 192.168.50.100 identifier 1 priority 1
sccp
sccp ccm group 10
bind interface GigabitEthernet 0/0
associate ccm 1 priority 1
associate profile 1

That's all on IOS Voice Gateway side. Let's switch to CUCM 8.5. First to configure Conferencing:

Go to Media Resources - Conferencing bridge. Select bridge type  - Enchanced Conference Bridge (For PVDM2 and PVDM3 Gateways's), then choose device name, device pool, location and security profile.

To configure Transcoding:

Go to Media Resources - Transcoder. Select transcoder type  - Enchanced  Media Termination Point, then choose device name, device pool.

That's all.

To verify dsp farm profile use following command:

show dspfarm profile
show dspfarm dsp all