Sie sind auf Seite 1von 40

Version: 10.

A
VOIP
Maipu Technical Support Dept.
Telephone:
Email
Lecturer Introduce
What is the VOIP?
How to configure the H.323 of VOIP?
How to configure the SIP of VOIP?
How to troubleshoot the VOIP?

This course will explain following questions.
FXS/FXO Port

Contents
Dial-peer Configurations
H.323 Client Configurations
SIP Client Configurations
Introduction to Gateway Voice Interface
Digital relay interface, supporting 30-port digital
channel; the interface physical form is G.703.

Single-port analog relay interface
A few are applied on old PBX.
Analog relay interface, used to connect PBX
internal interface or PSTN; does not provide
power for lines, also called VOS
Analog access interface, used to connect common
telephones or PBX external interface; provide power
for phones, also called VOP
FXS
FXO
E&M
RE1
Application Diagram of Voice Interface
PSTN
FXO
FXS
RE1
PBX
Phone
Configuring FXS/FXO (1)
MyPower VG series gateway supports FXS configuration, but theres some
difference in FXS configuration mode. The configuration command of MyPower
VG M6000 entering FXS card:
gateway(config)#card cardNum
Entering to FXS card configuration mode:
Command Description
CardNum cardNum is the slot number, entering card configuration mode.
The configuration command of MyPower VG2000, VG800 and A600
entering FXS card:
gateway(config)#fxs-card cardNum
Command Description
CardNum cardNum is slot number, entering card configuration mode.
Configuring FXS/FXO (2)
NOTE:
You can know the channel number by using the command show voice port
Configuring FXS/FXO parameters
Command Description
channel [0-31] [0-31] enable|
disable
Configure channel status
The first [0-31] is the start channel number
The second [0-31] is the end channel number
enableenable channel, disabledisable channel
channel <0-31> <0-31> callid
enable|disable
Configure call id
The first <0-31> is starting channel number
The second <0-31> is the ending channel number
enableenable called number, disabledisable
called number
FXS/FXO Port

Dial-peer Configurations
H.323 Client Configurations
SIP Client Configurations
Contents
Configuration of Dial-Peer (1)
In VoIP configuration, dial-peer uses for differentiate different types of voice channel.
There are three types of dial-peer:
1. Dial-Peer POTS
(dial-peer <1-1024> POTS)FXS interface of analog of the gateway and FXO interface
connecting PSTN.
(dial-peer <1-1024> pots slot <0-8>): FXS interface of analog of the gateway and FXO
interface connecting PSTN.

2. Dial-Peer VOIP
IP network end (dial-peer <1-1024>
VOIP): Correspond with remote IP
phone or gateway via IP network.

3. Dial-Peer VOE1
Relay line end (dial-peer <1-1024>
VOE1): Correspond with PBX access to E1.
BeiJ
Chen
D


IP
2M 2M
PST
N
PST
N
NOTE:
Use following command to enter Call route configure mode.
gateway(config)#callrouting-conf
Configuration of Dial-Peer (2)
VOIP dial-peer configuration command
For MyPower VG M6000, MyPower VG2000, the dial-peer range is from 1 to 1024:
gateway (config-callroute)#dial-peer <1-1024> voip
For MyPower VG800, MyPower VG600, the dial-peer range is from 1 to 255.
gateway(config-callroute)#dial-peer <1-255> voip
Command Description
codec
g711a/g711u/g723/g729/g729
a/g729wb
Configure H323 voice coding type as g711a, g711u, g723,
g729, g729a and g729wb. When calling from ip, the
configuration is effective.
Default value is g729
destination-pattern <STRING> Configure E.164 telephone number
fax-protocol t38 Configure fax protocol T38
fax-protocol disable Configure disabled fax protocol.
session-target <STRING> Configure IP address or RAS
preference <120> Configure priority (1-20), and it reduces when number is
increasing. Default: Routing 10 and 20 can not be used
Configuration of Dial-Peer (3)
POTS dial-peer commands
For MyPower VG M6000, MyPower VG2000, dial-peer range is from 1 to 1024:
gateway (config-callroute)#dial-peer <1-1024> pots
For MyPower VG800, MyPower VG600, dial-peer range is from 1 to 255.
gateway(config-callroute)#dial-peer <1-255> pots
gateway (config-dial-peer)#?
Command Description
port <STRING> Configure POTS voice port
destination-pattern <STRING> Routing number matching rule, it can be
configured completely number and prefix number.
preference <1-20 > Configure priority (1-20), and it reduces when
number is increasing. Default: Routing 10 and 20
can not be used
codec
g711a/g711u/g723/g729/g729a/g
729wb
Configure H323 voice coding type as g711a, g711u,
g723, g729, g729a and g729wb. When calling from
ip, the configuration is effective.
Configuration of Dial-Peer (4)
POTS dial-peer batch configuration commands
gateway(config-callroute)#dial-peer <1-1024> pots slot <0-8>
gateway(config-dial-peer)#
Command Description
channel <0-31> <0-31>
destination-pattern <STRING>
increase
Configure POTS port routing rule
<0-31> POTS starting port number
<0-31> POTS ending port number
<STRING> routing number matching rule, it can
configure completely number and prefix number
increases
channel <0-31> <0-31> no
destination-pattern
Delete configured POTS designated number
channel <0-31> <0-31> codec
g711a/g711u/g723/g729/g729a/
g729wb
Batch configure POTS port voice coding type g711a,
g711u, g723, g729, g729a and g729wb.
Default is g729
channel <0-31> <0-31>
preference <120>
Batch configure POTS port priority
Configuration of Dial-Peer (5)
VOE1 Dial-peer
VOE1 dial-peer supports two kinds of routing: physical E1 and E1 logical
grouping.
Calling number means some special numbers aggregation. E1 logical
grouping can use many called number groupings. when not using calling number
binding of E1 logical group, any calling number can work via E1 logical multicast if
the number is matching but when using E1 logical group calling binding function,
only permits calls in group when it is matching.
Calling number group configuration command:
enter special calling number group:
gateway(config-callroute) calling-number-group <1-120>
gateway(config-e1-caller-group)#
Command Description
calling-number <STRING> Configure calling number to group
<STRING> calling number string, permit number and
X or x.
Configuration of Dial-Peer (6)
E1 logical group command:
enter special E1 logical group:
gateway(config-callroute)e1-trunk-group <1-120>
gateway(config-e1-trunk-group)#
Command Description
Time-slot <0-1> <0-3> <1-30> <1-30> Version 6000 configure E1 time slot to E1
logical group
<0-1> E1 card number, <0-3> inner E1
number, <1-30> E1 time slot number,
<1-30> stopped E1 time slot
Time-slot <0-3> <1-30> <1-30> Version 2000 configure E1 time slot to E1
logical group
Bind calling-number-group <1-120> Binding special calling number to E1 logical
group
<1-120> calling number group
Restrict calling-number enable
|disable
Use | disable E1 logical group calling number
binding function
Configuration of Dial-Peer (7)
VOE1 Dial Peer Configuration Commands:
gateway(config-callroute)#dial-peer <1-1024> voe1
gateway(config-dial-peer)#?
Command Description
destination-pattern <STRING> Routing number matching rule
E1 <0-3> <0-3> Configure E1 port
Suitable for MyPower VG M6000
E1 <0-3> Configure E1 port
Suitable for MyPower VG2000
E1 trunk-group <1-120> Configure E1logical group number
<1-120> E1 logical group number of
routing E1
preference <120> Configure priority
codec g711a/g723/g729/g729a/g729wb Configure H323 voice coding type
Gateway Configuration Example (1)
PBX
VG1 VG2
111 211
PSTN
RE1
1.1.1.1 1.1.1.2
31X 85148XXX
Situation:
VG1 connects VG2 by Ethernet interface.
VG1 connects PBX by RE1.
VG2 connects PSTN by FXO.
Gateway Configuration Example (2)
Configuration of VG1 (1)
Command Description
gateway(config)#fxs-card 1 entering FXS card 1
channel 0 0 enable enable channel 0
channel 0 0 callid enable enable called number
exit
gateway(config)#re1 1 entering RE1 card 1
gateway(config-e1-port)#bind pri Bind PRI on e1
gateway(config-e1-port)#isdnsideset user Configure PRI direction as USER side
gateway(config-e1-port)#pri-group
timeslots 16
Configure signal timeslot as 16 on e1.
exit
gateway(config)#callrouting-conf entering Call route configure mode
Gateway Configuration Example (3)
Command Description
gateway(config-callroute)# dial-peer 1 voip Configure dial-peer VOIP 1
gateway(config-callroute)# destination-pattern 211 Configure E.164 telephone number
gateway(config-callroute)# session-target 1.1.1.2 Configure peer IP address
gateway(config-callroute)# dial-peer 2 voip Configure dial-peer VOIP 2
gateway(config-callroute)# destination-pattern
85148XXX
Configure E.164 telephone number
gateway(config-callroute)# session-target 1.1.1.2 Configure peer IP address
gateway(config-callroute)# dial-peer 3 pots Configure dial-peer POTS 3
gateway(config-callroute)# port 1/0 Configure POTS voice port
gateway(config-callroute)# destination-pattern 111 Configure E.164 telephone number
gateway(config-callroute)# dial-peer 4 voe1 Configure dial-peer VOE1 4
gateway(config-callroute)# destination-pattern 31X Configure E.164 telephone number
gateway(config-callroute)# e1 1 Configure VOE1 re1 port
Configuration of VG1 (2)
Gateway Configuration Example (4)
Command Description
gateway(config)#fxs-card 1 entering FXS card 1
channel 0 0 enable enable channel 0
channel 0 0 callid enable enable called number
exit
gateway(config)#fxo-card 2 entering FXO card 2
channel 0 0 enable enable channel 0
exit
gateway(config)#callrouting-conf entering Call route configure mode
Configuration of VG2 (1)
Gateway Configuration Example (5)
Command Description
gateway(config-callroute)# dial-peer 1 voip
Configure dial-peer VOIP 1
gateway(config-callroute)# destination-pattern 111 Configure E.164 telephone number
gateway(config-callroute)# session-target 1.1.1.1 Configure peer IP address
gateway(config-callroute)# dial-peer 2 voip
Configure dial-peer VOIP 2
gateway(config-callroute)# destination-pattern 31X Configure E.164 telephone number
gateway(config-callroute)# session-target 1.1.1.1 Configure peer IP address
gateway(config-callroute)# dial-peer 3 pots
Configure dial-peer POTS 3
gateway(config-callroute)# port 1/0 Configure POTS voice port
gateway(config-callroute)# destination-pattern 211 Configure E.164 telephone number
gateway(config-callroute)# dial-peer 4 pots
Configure dial-peer POTS 4
gateway(config-callroute)# port 2/0 Configure POTS voice port
gateway(config-callroute)# destination-pattern 85148XXX Configure E.164 telephone number
Configuration of VG2 (2)

FXS/FXO Port
Dial-peer Configurations
H.323 Client Configurations
SIP Client Configurations
Contents
Configuration of H.323 Client (1)
Configure interface to gatekeeper:
Configure network interface as VOIP gateway RAS protocol interface, and only
configure one network interface as VoIP interface.
gateway(config)#interface fastethernet 1
Command Description
h323-gateway voip interface Designate the interface as VoIP gateway RAS
protocol interface.
h323-gateway voip h323-id
<STRING>
Configure gateway interface identification.
h323-gateway voip id <STRING>
<ipaddr/multicast> <STRING/CR>
<STRING/CR>
Register gatekeeper via IP address. the first
string is gatekeeper identification, the second
string is gatekeeper IP address, and the third
string is gatekeeper port. the default is 1718
without gkid segment.
h323-gateway voip supported-prefix
<STRING>
Configure gateway prefix for dealing with the
coming routing. It can configure at most 2
prefixes.
Configuration of H.323 Client (2)
Configure voip dial-peer gatekeeper
gateway(config-callroute)#dial-peer 1 voip
Enable gateway client-end
gateway(config)#
Command Description
destination-pattern <STRING> Configure destination-pattern phone number
session-target ras Use RAS protocol to get destination gateway IP address
Command Description
Gateway Enable voip gateway registers to gatekeeper
no gateway Cancel voip gateway registering to gatekeeper
H.323 Configuration Example (1)
Situation:
VG1 connects PBX by RE1 interface;
VG2 connects PSTN by FXO interface;
PBX
VG1 VG2
111 211
PSTN
RE1
1.1.1.1 1.1.1.2
31X 85148XXX
1.1.1.254
H.323 Configuration Example (2)
Command Description
gateway(config)#fxs-card 1 entering FXS card 1
channel 0 0 enable enable channel 0
channel 0 0 callid enable enable called number
exit
gateway(config)#re1 1 entering RE1 card 1
gateway(config-e1-port)#bind pri Bind PRI on e1
gateway(config-e1-port)#isdnsideset user Configure PRI direction as USER side
gateway(config-e1-port)#pri-group
timeslots 16
Configure signal timeslot as 16 on e1.
exit
gateway(config)#callrouting-conf
Configuration of VG1 (1)
H.323 Configuration Example (3)
Command Description
gateway(config)#interface fastethernet 1 entering fastethernet interface 1
h323-gateway voip interface
Designate the interface as VoIP
gateway RAS protocol interface.
h323-gateway voip h323-id VG1
Configure gateway interface
identification.
h323-gateway voip id MP ipaddr 1.1.1.254 Register gatekeeper via IP address.
h323-gateway voip supported-prefix 31 Configure gateway prefix as 31
Ip address 1.1.1.1 255.255.255.0 Configure IP address of the interface
exit
gateway(config)#gateway
Enable voip gateway registers to
gatekeeper
Configuration of VG1 (2)
H.323 Configuration Example (4)
Command Description
gateway(config-callroute)# dial-peer 1 voip Configure dial-peer VOIP 1
gateway(config-callroute)# destination-pattern XX. Configure E.164 telephone number
gateway(config-callroute)# session-target ras
Use RAS protocol to get destination
gateway IP address
gateway(config-callroute)# dial-peer 2 pots Configure dial-peer POTS 2
gateway(config-callroute)# port 1/0 Configure POTS voice port
gateway(config-callroute)# destination-pattern 111 Configure E.164 telephone number
gateway(config-callroute)# dial-peer 3 voe1 Configure dial-peer VOE1 3
gateway(config-callroute)# destination-pattern 31X Configure E.164 telephone number
gateway(config-callroute)# e1 1 Configure VOE1 re1 port
Configuration of VG1 (3)
H.323 Configuration Example (5)
Command Description
gateway(config)#fxs-card 1 entering FXS card 1
channel 0 0 enable enable channel 0
channel 0 0 callid enable enable called number
exit
gateway(config)#fxo-card 2 entering FXO card 2
channel 0 0 enable enable channel 0
exit
gateway(config)#callrouting-conf
Configuration of VG2 (1)
H.323 Configuration Example (6)
Command Description
gateway(config)#interface fastethernet 1 entering fastethernet interface 1
h323-gateway voip interface
Designate the interface as VoIP
gateway RAS protocol interface.
h323-gateway voip h323-id VG2
Configure gateway interface
identification.
h323-gateway voip id MP ipaddr 1.1.1.254 Register gatekeeper via IP address.
h323-gateway voip supported-prefix
85148
Configure gateway prefix as 85148
Ip address 1.1.1.2 255.255.255.0 Configure IP address of the interface
exit
gateway(config)#gateway
Enable voip gateway registers to
gatekeeper
Configuration of VG2 (2)
H.323 Configuration Example (7)
Command Description
gateway(config-callroute)# dial-peer 1 voip Configure dial-peer VOIP 1
gateway(config-callroute)# destination-pattern XX. Configure E.164 telephone number
gateway(config-callroute)# session-target ras
Use RAS protocol to get destination
gateway IP address
gateway(config-callroute)# dial-peer 2 pots Configure dial-peer POTS 2
gateway(config-callroute)# port 1/0 Configure POTS voice port
gateway(config-callroute)# destination-pattern 211 Configure E.164 telephone number
gateway(config-callroute)# dial-peer 3 pots Configure dial-peer POTS 2
gateway(config-callroute)# port 2/0 Configure POTS voice port
gateway(config-callroute)# destination-pattern
85148XXX
Configure E.164 telephone number
Configuration of VG2 (3)
H.323 Configuration Example (8)
Command Description
license XX-XX-XX-XX
Enter the license number to enable the
gatekeeper
Interface fastethernet 0 Entering fastethernet interface 0
Ip addr 1.1.1.254 Configure IP address of the interface
gatekeeper Entering gatekeeper configure mode
zone local MP MP 1.1.1.254 Configure
no shutdown Start the gatekeeper.
Configuration of Gatekeeper

Dial-peer Configurations
H.323 Client Configurations
SIP Client Configurations
FXS/FXO Port
Contents
SIP Client Commands
Command Description
sip-gateway voip localPort <5000-
10000>
SIP interface of the gateway. The default value is 5060.
sip-gateway voip interface Specify an interface as the SIP protocol interface of the gateway.
sip-gateway voip proxy A.B.C.D Specify the IP address of the SIP proxy server used by the gateway and A.B.C.D
is IP address of agent server.
sip-gateway voip proxy domain-name
<string>
Specify the domain name of the SIP proxy server used by the gateway, and
string is the domain name.
sip-gateway voip proxyPort <1-65535> Specify the port of remote proxy server. The default value is 5060.
sip-gateway voip registrar A.B.C.D Specify the IP address of the SIP register server used by the gateway. A.B.C.D is
the IP address of the SIP register server.
sip-gateway voip registrar domain-
name <string>
Specify the domain name of the SIP register server used by the gateway. String
is the domain name of the SIP register server.
sip-gateway voip registrarPort <1-
65535>
Specify the port of the register server. The default value is 5060.
sip-gateway voip registrar expires
<200-3600>
SIP terminal registering over time, 3600 seconds by default.
sip-gateway voip username <string> If register server needs id authentication, configure a user name of the number.
sip-gateway voip password <string> If register server needs id authentication, configure password of the number.
sip-gateway voip retry-invite <1-5> Specify the retransmission times of INVITE when the peer end that initiates the
call is unavailable and does not receive the response. The default value is 5.
sip-gateway voip local-area A.B.C.D
A.B.C.D
The local domain of the SIP.
The former IP is the segment number and the later IP is the mask.
When using STUN traversing NAT, the configuration needs to realize the intranet
communication.
Configure interface
gateway (config)#int f1
SIP Client Example (1)
SIP Client Example (2)
interface fastethernet0
ip address 10.0.13.249 255.255.255.0
exit

dial-peer 1 pots
destination-pattern 200
port 0/0
username 200 password 200
exit

dial-peer 100 voip
destination-pattern xxx
session-target sip-server
exit

dial-peer 2 pots
destination-pattern xx.
port 2/0
exit
dial-peer 3 pots
destination-pattern 9x.
num-trans-index 2 called
port 2/0
exit

fxs-card 0
channel 0 3 callid enable
channel 0 3 enable
exit

fxo-card 2
channel 0 3 callid enable
channel 0 3 enable
exit

interface fastethernet0
sip-gateway voip interface
sip-gateway voip proxy 10.0.13.201
sip-gateway voip registrar 10.0.13.201

sip-gateway
key configuration on VG1
SIP Client Example (3)
interface fastethernet0
ip address 10.0.13.248 255.255.255.0
exit

dial-peer 1 pots
destination-pattern 300
port 1/0
username 300 password 300
exit

dial-peer 100 voip
destination-pattern xx.
session-target sip-server
exit
fxs-card 1
channel 0 3 callid enable
channel 0 3 enable
exit

interface fastethernet0
sip-gateway voip interface
sip-gateway voip proxy 10.0.13.201
sip-gateway voip registrar 10.0.13.201
exit

sip-gateway
key configuration on VG2

Dial-peer Configurations
H.323 Client Configurations
SIP Client Configurations
FXS/FXO Port
Exercise
111 can call 211 by H.323 protocol.
111 can call 211 by SIP protocol.

Das könnte Ihnen auch gefallen