terça-feira, 1 de novembro de 2011

Trunking Gateway Customization

network-clock-participate wic 0
network-clock-select 1 e1 0/1/0
ccm-manager mgcp
mgcp
mgcp call-agent 10.1.1.1
mgcp bind control source-interface
fastethernet 0/0
mgcp bind media source-interface fastethernet 0/0
!
controller t1 0/1/0
ds0-group 1 timeslot 1-24 service mgcp

MGCP - Residential Gateway Customization

ccm-manager mgcp
mgcp
mgcp call-agent 10.1.1.1
mgcp bind control source-interface fastethernet0/0
mgcp bind media source-interface fastethernet0/0
!
dial-peer voice 1 pots
service mgcp app
port 1/0/0
!
mgcp package-capability dtmf-package
mgcp package-capability gm-package
mgcp package-capability line-package
mgcp default-capability line-package

Blocking and Substitute Caller ID Configuration

voice servive voip
clid substitute name
!
dial-peer voice 1 voip
destination-pattern 1...
session protocol sipv2
session target ipv4:10.1.1.1
clid strip pi-restrict

quinta-feira, 13 de outubro de 2011

Cisco Unified Communications Manager Express SIP Example

voice service voip
allow-connection sitp to sip
sip
bind control source-interface loopback0
register server
!
voice register global
mode cme
source-address 192.168.0.1 port 5060
user-local 1 es
network-locale 1 es
time-format 24
date-format d/m/y
timezone 13
ntp-server 9.9.9.9 mode directed broadcast
load 7965 sip45.9-0.2sr1s
tftp-path flash:
file text
create profile

Incoming PSTN Call Blocking

voice translation-rule 1
rule 1 reject /^399555/
!
voice translation-profile block
translate calling 1
!
dial-peer voice 1 pots
call-block translation-profile incoming block
call-block disconnect-cause incoming invalid-number
incoming called-number .

Enable Router to PSTN Calls - Outbound

dial-peer voice 1 pots
destination-pattern 999
forward-digits all
port0/2/0:15
!
dial-peer voice 2 pots
destination-pattern 9[2-9].......
forward-digits 8
port 0/2/0:15
!
dial-peer voice 3 pots
destination-pattern 9001[2-9]..[2-9]......
forward-digits 13
port 0/2/0:15
// you can use the csim 999 or csim 9444444040 command to simulate the call

Basic Digit Manipulation

num-exp 4... 4005554...
dial-peer voice 4000 pots
destination-pattern 4005554...
forward-digits all
prfix 1
port 0/1:23
!
dial-peer voice 3000 voip
destination-pattern 3...
session-target ipv4:10.1.1.1
!
dial-peer voice 3001 pots
destination-pattern 3...
prefix 13005553
preference 1
port 0/1:23