AddPac VoIP Gateway Training Guide PDF
AddPac VoIP Gateway Training Guide PDF
Training
VoiceFinder VoIP Gateway Series
Mar. 2002
Jin-Young, KIM
Technical Support Team/manager
Phone (02) 568 3848
FAX (02) 568 3847
jykim@addpac.com
1
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
Contents
2
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
1. AddPac VoIP Gateway(1/3)
3
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
1. AddPac VoIP Gateway(2/3)
Routing Protocol
1. Static
2. RIP v1/2
3. OSPF v2, and IEEE 802.1Q VLAN Routing
WAN Protocol
1. Point-to-Point Protocol (PPP)
2. Frame-Relay PVC (Inverse ARP Support)
3.High-level Data Link Control (HDLC) Protocol
4.HDLC Encapsulation (Interoperability with CISCO HDLC)
Security Functions
1. Access Control and Data Protections
2. Standard & Extended IP Access List
3. PPP User Authentication Supports (CHAP & PAP)
4
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
1. AddPac VoIP Gateway(3/3)
Network Managements
1. Standard SNMP Agent (MIB v2) Support
2. Traffic Queuing and Frame-Relay Flow Control
3. Web based Managements using HTTP server Interface
4. Remote Management using Console, Rlogin, Telnet
5
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2. Basic Management Function
6
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-1. OS & configuration up-grade or backup
Feature
Notice
configuration file name is fixed
(config.cfg), so do not change
file name
7
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-2. Auto Upgrade
Web Server Setting : To install APOS™ and configuration file automatically, Packing.List
file should be existed for APOS.
Command Procedure at VoIP Gateway Side for Automatic S/W Upgrade Function
8
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-3. SNMP
set (write)
Snmp manager Snmp agent
9
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-4. Web based management(1/3)
Web server :
Web based management supports 90% CLI (command line Interface based on RS-
232C console) commands approximately.
And Web based management supports the OS and configuration Upload.
get (read)
AddPac Gateway
set (write)
10
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-4. Web based management(2/3)
11
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-4. Web based management(3/3)
12
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-5. Access Control(security) (1/2)
13
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-5. Access Control(security) (2/2)
E0.0
Ap2520
Serial0
v35 Ap2110
CSU/DSU
Internet E0.0
E0.0
Ap2520
14
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-6. Equipment Configuration Check(1/2)
Using the “show command”, we can see the current configuration and setting
information of the equipment. It can be possible at all depth of command
hierarchy.
Detail information (This commands show the detailed information including default
configuration information)
General command
router# show <access-lists/accounting-list/arp/bridge/call/call-diversion/,,,,,>
Line interface related command
router(config)# show <line/interface/ip/,,,,,,>
Voip setting command
router(config)# show voice port <,,,,> ; FXO/FXS/E&M/E1 port status and setting
information
router(config)# show dial-peer <,,,,,> ; gateway’s dial plan information
router(config)# show gateway ; VoIP related global setting information for
gateway
router(config)# show translation-rule ; Show current translation rule information
15
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-6. Equipment Configuration Check(2/2)
Telnet
AddPac Gateway
ethernet
http Console port
Serial port
16
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-7. Equipment Status Check
Using the “show command”, we can see the current configuration information of the
equipment. It can be possible at all depth of command hierarchy.
major command
router(config)# show rule <,,,> ; show the input digit translation rules
17
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-8.Debugging (1/5)
Support the real-time call tracing and lan packet decoding during equipment in-service operation
(This commands is usable at top level of command hierarchy)
major command
18
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-8. Debugging(2/5)
19
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-8. Debugging(3/5)
Telnet
router# debug voip call AddPac Gateway
router(config)# debug-port ethernet
Console port
20
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-8. Debugging(4/5)
router# debug voip call 21 <Call 59> : Initiate callee with dial-peer(...T)
router# config status(CalleeDeterminedAll)
Enter configuration commands, one per line. End with 22 <H323 59> : InitiateOutCall: calledNum(5683848)
CNTL/Z callingNum(25683845) target(ras)
router(config)# debug-port 23 <H323 59> : DoCall: calledAddr(5683848@)
router(config)# 1 <CEP 000300> : Call Received callingAddr(25683845)
2 <CEP 000300> : Call Initiated : calledNumber() 24 <GK 59> : Send ARQ.
callingNumber() crv(0) 25 <GK 59> : Received ACF.
3 <Call 59> : Created status(InitiatedByFXS) 26 <H225 59> : Try signalling TCP connect
4 <Call 59> : Digit(5) (61.74.195.162:1720)
5 <Call 59> : Digit match 27 <H225 59> : Signalling TCP connect success
checked(MatchedPartially)
28 <H323 59> : local capabilities.
6 <Call 59> : Digit(6)
7 <Call 59> : Digit match number of capabilities = 7
checked(MatchedPartially) 1 : g7231 (6.3k)
8 <Call 59> : Digit(8) 2 : g729 (8k)
9 <Call 59> : Digit match checked(MatchedAll) 3 : g711ulaw (64k)
10 <Call 59> : Digit(3) 4 : g711alaw (64k)
11 <Call 59> : Digit match checked(MatchedAll) 5 : T.38
12 <Call 59> : Digit(8) 6 : UserInput/basicString
13 <Call 59> : Digit match 7 : UserInput/hookflash
checked(MatchedAll)
29 <Q931 59> : Send SETUP
14 <Call 59> : Digit(4)
15 <Call 59> : Digit match checked(MatchedAll) 30 <Call 59> : Alert from(ffffffff) pseudo(1)
16 <Call 59> : Digit(8) 31 <Q931 59> : Received CALL PROCEEDING
17 <Call 59> : Digit match checked(MatchedAll) 32 <Q931 59> : Received ALERTING
18 <Time 59> : Inter digit timer timeout. 33 <Call 59> : Alert from(ffffffff) pseudo(0)
19 <Call 59> : Digit(#) 34 <Q931 59> : Received ALERTING
20 <Call 59> : MatchAllProcess After Sorted
<0> id(1000) dest(...T) prefer(0)
selected(36)
21
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-8. Debugging(5/5)
35 <Chan 59> : Open - number(129) direction(receive) 52 <Chan 59> : Close - number(129) direction(receive)
session(voice) c 53 <Chan 59> : Close - number(101) direction(transmit)
odec(g7231r63) 54 <Q931 59> : Send RELEASE COMPLETE
- Local : Data(23100) Cont(23101) 55 <GK 59> : Send DRQ.
Addr(61.33.161.47) 56 <H245 59> : Control channel closed
- Remote : Data(32720) Cont(32721) 57 <GK 59> : Received DCF.
DataAddr(210.217.13 58 <H323 59> : Call TO <suwon> terminated
.167) ContAddr(210.217.13.167) reason(Local:CallClear)
36 <Q931 59> : startH245(forced with Facility) 59 <Time 0> : Gatekeeper TTL timeout.
37 <Call 59> : Alert from(ffffffff) pseudo(0) 60 <GK 0> : Send RRQ.
38 <H245 59> : Send TCS request. router(config)# end
39 <H245 59> : Send MSD request. router# no debug all
40 <H245 59> : Received TCS request.
41 <H323 59> : remote capabilities matching to local
capabilities.
number of capabilities = 4
42 <H245 59> : Send TCS ack.
43 <H245 59> : Received MSD request.
44 <H245 59> : Send MSD ack.
45 <Q931 59> : Received CONNECT
46 <Call 59> : Connected from(ffffffff)
47 <H323 59> : Call with suwon established
48 <Chan 59> : Open - number(101) direction(transmit)
session(voice)
codec(g7231r63)
- Local : Data(23100) Cont(23101)
Addr(61.33.161.47)
- Remote : Data(32720) Cont(32721)
DataAddr(210.217.13
.167) ContAddr(210.217.13.167)
49 <H245 59> : Received TCS ack.
50 <H245 59> : Received MSD ack.
51 <Call 59> : Terminated from(300) this(Local:CallClear)
before(NUL
L) forced(0)
22
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-9. Boot Loader(1/2)
System Reset
Boot loader
No Yes
APOS
Boot#
Flash memory
Mini-OS
23
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-9. Boot Loader(2/2)
Function
BOOT#config
Password recovery
BOOT(config)# password router router
OS uploading
Command
show root password
BOOT# show password Cntl-c,Cntl-x
root password change
Serial port
BOOT(config)# password <new-passwd> <repeat new-
passwd> console Baud rate 9600
ip address configuration (This IP address is different with No parity
1 stop bit
APOS IP address) No flow control
BOOT(config)# address <ip address> <mask>)
C:\>ftp 61.33.161.94
Connected to 61.33.161.94.
Console port 220 FTP server (Version 1.12) ready.
User (61.33.161.94:(none)): root
ethernet
331 Password required for root.
AddPac Gateway FTP Password:
230 User root logged in ok.
ftp> bin
200 Type set to I.
ftp> put ap2520rom_v5_67.bin
24
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3. Basic Network diagram and Configuration
25
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-1. Cable Modem Environment (DHCP client)(1/3)
26
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-1. Cable Modem Environment (DHCP client)(2/3)
interface ether1.0
!
ip address 10.1.1.1 255.255.255.0
version 5.58
ip nat-group 1 pat ether0.0
!
nat-list 1 pat static-entry tcp 1720 local
!
nat-list 1 pat group-static-entry udp 22000 30000 local
snmp name AP1100
nat-list 1 pat group-static-entry tcp 10000 22000 local
!
nat-list 1 pat static-entry tcp 23 local !
nat-list 1 pat group-static-entry tcp 20 21 local !
! VoIP configuration.
nat-list 1 pat group-static-entry udp 67 68 local !
nat-list 1 pat static-entry icmp ping local !
! Voice service voip configuration.
!
!
interface ether0.0 voice service voip
ip address dhcp fax protocol t38 redundancy 0
fax rate 14400
qos-control 200 100 h323 call start fast
! security permit-FXO
27
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-1. Cable Modem Environment (DHCP client)(3/3)
29
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-2. ADSL Modem (PPPoE) Environment
(dynamic IP)(2/2)
……..
…….
…
!
!
interface ether0.0
no ip address
encapsulation pppoe
ppp authentication pap callin
ppp pap sent-username addpac password addpac
!
……..
……
route 0.0.0.0 0.0.0.0 ether0.0
!
!
…..
…
30
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-3. ADSL Modem(MyIP) Environment
31
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-4. ADSL Modem(multi-IP) Or Leased Line
ADSL Line
or
Leased Line ADSL Modem
Internet or
Mandatory command List
Leased Line Router
Ethernet 0.0
ip address
Dial peer FXS/FXO/VoIP e164
LAN
VoIP Interface Setting (default eth0.0)
Default route
Optional List
Gate-Keeper Parameter Setting
lan switch
Eth0.0
ethernet
AP2110
32
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-5. Leased Line Router environment
(Operating as VoIP router )
33
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-6. QoS, Bridge mode
34
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4. H.323 call setup Procedure Overview
35
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-1. PSTN Inter-networking Call Scenario
Internet
PSTN
AddPac gateway
PBX
36
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-2. H323 end-to-end signaling
V
H.323 V
Gateway
Setup H.225 (TCP)
Connect (Q.931)
Signaling
Plane Capabilities Exchange
Open Logical Channel H.245 (TCP)
Open Logical Channel Acknowledge
RTP Stream
Bearer RTP Stream
Plane Media (UDP)
RTCP Stream
37
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-3. Gatekeeper Registration
RRQ RCF
Hello: I am registering my
RCF RRQ Hello: I am registering my
Name or E.164 address
(Gateway A) Name or E.164 address
(Gateway B)
IP QoS
WAN
Gateway
Gateway A
A Gateway
Gateway B
B
38
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-4. Gatekeeper Call Admission
Gatekeeper A (Zone A)
1.
ARQ (Admission Request):
I have a call for
Gateway B
IP QoS
ARQ WAN
ACF
3
H.323 Call Setup
Gateway
Gateway A
A Gateway
Gateway B
B
2.
ACF (Admission Confirm):
Yes you can, here’s its IP
Address X.X.X.X
39
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-5 Direct Endpoint Call Signaling
40
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-6 Gatekeeper Routed Call Signaling (Q.931)
41
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-7 Gatekeeper Routed Call Signaling
(Q.931/H.245)
42
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-8 Both endpoints registered to the same
Gatekeeper
Endpoint 1 Gatekeeper 1 Endpoint 2
ARQ (1)
ACF/ARJ (2)
Setup (3)
ARQ (5)
ACF/ARJ (6)
Alerting (7)
Connect (8)
T1527160-97
RAS Messages
ARQ (1)
ACF/ARJ (2)
Setup (3)
ARQ (5)
ACF/ARJ (6)
Alerting (7)
Connect (8)
T1527190-97
RAS Messages
Call Signalling Messages
44
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5. VoIP Configuration and Setting
45
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-1 H323 Signaling Parameter Setting (1/1)
Setting OCL(Open Logical Channel) whether opening befor/after connect or after connecting h245 procedure
router(config-vservice-voip)# h323 call channel <early/late/latest> ;default = early
46
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-2 Gatekeeper Parameter Setting
H323 id setting
router(config-gateway)# h323-id <string> ; default=voip.<ether0.0 ip address>
Send RRQ
router(config-gateway)# register
47
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-3 time out and number plan parameter
“show gateway” command can be used to check the correct parameter setting
router#show gateway
48
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-4 Other Commands
49
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6 . Supplementary function
• connection PLAR
• call pickup/forwarding
• number translation
• PSTN backup & inbound pots peer
50
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-1 PLAR(Private Line Auto Ring-down)
100 hook off (100) -> Ringing(200) -> hook off(200) -> connect
200
interface ether0.0
ip address 10.10.10.1 255.255.255.0 interface ether0.0
…. ip address 20.20.20.1 255.255.255.0
voice-port 0/0 ….
connection plar 200 dial-peer voice 0 pots
…. destination-pattern 200
dial-peer voice 0 pots port 0/0
destination-pattern 100 ….
port 0/0 dial-peer voice 1000 voip
…. destination-pattern 100
dial-peer voice 1000 voip session target 10.10.10.1
destination-pattern 200 dtmf-relay h245-alphanumeric
session target 20.20.20.1 ….
dtmf-relay h245-alphanumeric
51
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-2 call Pick-up/transfer(1/2)
Call pick-up
52
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-2 call Pick-up/transfer(2/2)
100 200
Call
Voice-port 0/0 Dial-peer 1000 voip voice ser voip Dial-peer 0 pots
translate-incoming translate-outgoing translate-voip-incoming translate-outgoing
Translation rule
router(config)# translation-rule <tag-id>
router(config-translation-rule#0)# rule <index> <input pattern> <output-pattern>
Translation rule application
router(config-voice-ports-0/0)# translate-incoming <calling-number/called-number>
router(config-dialpeer-voip-1000)# translate-outgoing <calling-number/called-number>
router(config-vservice-voip)# translate-voip-incoming <calling-number/called-number>
router(config-dialpeer-pots-0)# translate-outgoing <calling-number/called-number>
54
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-4 PSTN backup & inbound pots peer(1/2)
Dial-peer 1000 voip Dial-peer 10 pots
Session target ras Port 0/0
Destination-pattern T Destination-pattern T
1
Internet 2
PSTN or PBX internal line
Setting command
router(config-vservice-voip)# busyout monitor <gatekeeper/voip-interface>
;VoIP interface Status Monitoring Condition Setting
router(config-voice-ports-0/0)# connection plar 100
router(config-voice-ports-0/1)# connection plar 101
router(config-dialpeer-pots-10)# inbound-pots-peer 0
router(config-dialpeer-pots-10)# preference 1
router(config-dialpeer-pots-11)# inbound-pots-peer 1
router(config-dialpeer-pots-11)# preference 1
router(config-dialpeer-voip-1000)# preference 0
56
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7. Example
57
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-1 VoIP call connection diagram using
Gatekeeper(1/3)
Gatekeeper
80.80.80.1
Eth0.0 : 10.10.10.10
Trunk gateway
Internet
PSTN
82-2-123-4567 82-2-123-4568
58
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-1 VoIP call connection diagram using
Gatekeeper(2/3)
59
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-1 VoIP call connection diagram using
Gatekeeper(3/3)
voice-port 1/1
! dial-peer voice 1000 voip
voice-port 1/2 destination-pattern ..T
! session target ras
voice-port 1/3 dtmf-relay h245-alphanumeric
! !
! Pots peer configuration. ! Gateway configuration.
! !
dial-peer voice 0 pots gateway
destination-pattern 8221234567 h323-id addpac
port 0/0 gkip 80.80.80.1 1719 128
! register
dial-peer voice 1 pots !
destination-pattern 8221234568 ! Clear down tone
port 0/1 !
! voip-interface ether0.0
! Voip peer configuration. !
!
60
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-2. Gatekeeper and internal direct call
connection diagram (1/6)
82-2-987-6542
2001
82-2-987-6543
2000
Gatekeeper
Eth0.0 : 20.20.20.20 80.80.80.1
Eth0.0 : 10.10.10.10
Trunk gateway
Internet
PSTN
82-2-123-4567 82-2-123-4568
1000 1001
61
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-2. Gatekeeper and internal direct call
connection diagram (2/6)
router-A router-B
! !
version 5.67 version 5.67
! !
hostname router-A hostname router-B
! !
interface ether0.0 interface ether0.0
ip address 10.10.10.10 255.255.255.0 ip address 20.20.20.20 255.255.255.0
! !
interface ether1.0 interface ether1.0
no ip address no ip address
! !
snmp name AP2110 snmp name AP2110
! !
route 0.0.0.0 0.0.0.0 10.10.10.1 route 0.0.0.0 0.0.0.0 20.20.20.1
! !
! VoIP configuration. ! VoIP configuration.
62
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-2. Gatekeeper and internal direct call
connection diagram (3/6)
63
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-2. Gatekeeper and internal direct call
connection diagram (4/6)
64
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-2. Gatekeeper and internal direct call
connection diagram (5/6)
66
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-3. Internal direct call connection (plar)(1/5)
plar
1000 2000
Eth0.0 : 10.10.10.10 Eth0.0 : 20.20.20.10
Internet
plar
1001 2001
67
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-3. Internal direct call connection (plar)(2/5)
router-A rouer-B
! !
version 5.67 version 5.67
! !
hostname router-A hostname router-B
! !
interface ether0.0 interface ether0.0
ip address 10.10.10.10 255.255.255.0 ip address 20.20.20.20 255.255.255.0
! !
interface ether1.0 interface ether1.0
no ip address no ip address
! !
snmp name AP2110 snmp name AP2110
! !
route 0.0.0.0 0.0.0.0 10.10.10.1 route 0.0.0.0 0.0.0.0 20.20.20.1
! !
! VoIP configuration. ! VoIP configuration.
68
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-3. Internal direct call connection (plar)(3/5)
69
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-3. Internal direct call connection (plar)(4/5)
70
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-3. Internal direct call connection (plar)(5/5)
dial-peer voice 1 pots dial-peer voice 1 pots
destination-pattern 1001 destination-pattern 2001
port 1/1 port 1/1
! Voip peer configuration. ! Voip peer configuration.
! !
dial-peer voice 1000 voip dial-peer voice 1000 voip
destination-pattern 200. destination-pattern 100.
session target 20.20.20.1 session target 10.10.10.1
dtmf-relay h245-alphanumeric dtmf-relay h245-alphanumeric
! !
! Gateway configuration. ! Gateway configuration.
! !
gateway gateway
h323-id voip.10.10.10.10 h323-id voip.20.20.20.20
! !
! Clear down tone ! Clear down tone
! !
voip-interface ether0.0 voip-interface ether0.0
71
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-4. direct call connection using FXS or FXO interface
(plar) :Example
Call Scenario
Hook off(200 or 201) -> digit ‘100’ or ‘101’ ->
Ringing(1000 or 1001) -> hook off(1000 or 1001) -> Conversation
1000
100
Eth0.0 : 10.10.10.10 Eth0.0 : 20.20.20.10
2000 PBX
Internet 200
2001 101
Requirement
Although #100, #101 users are locating remote site, using just like directly
to inside Line #100, #101 of PBX
72
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-4. direct call connection using FXS or FXO
interface (plar) :Example
73
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-5. Number Translation Application (1/3)
Number
translation
100
1xxx 02xxx
Internet
101
Requirement
All users are pressing the digit starting with 1, and change digit number “1” with two digit number “02”
Other digits are send without translation.
74
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-5. Number Translation Application (2/3)
75
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-5. Number Translation Application (1) (3/3)
voice-port 1/1
dial-peer voice 1000 voip
!
destination-pattern ..T
voice-port 1/2
session target ras
!
translate-outgoing called-number 0
voice-port 1/3
dtmf-relay h245-alphanumeric
!
!
! Pots peer configuration.
! Gateway configuration.
!
!
dial-peer voice 0 pots
gateway
destination-pattern 100
h323-id addpac
port 0/0
gkip 80.80.80.1 1719 128
!
register
dial-peer voice 1 pots
!
destination-pattern 101
! Translation Rule configuration.
port 0/1
!
!
translation-rule 0
! Voip peer configuration.
rule 0 1 02
!
76
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-6. Number Translation Application (2)(1/4)
700….
100 001….
Internet
101
Requirement
77
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-6. Inhibit specific number outgoing call – number
translation application (2/4)
! !
version 5.67 ! Voice service voip configuration.
! !
! voice service voip
! fax protocol t38 redundancy 0
interface ether0.0 fax rate 14400
ip address 10.10.10.10 255.255.255.0 h323 call start fast
! security permit-FXO
interface ether1.0 !
no ip address !
! ! Voice port configuration.
snmp name AP2110 !
! voice-port 0/0
route 0.0.0.0 0.0.0.0 10.10.10.1 translate-incoming called-number 0
! !
! voice-port 0/1
! translate-incoming called-number 1
! VoIP configuration. !
78
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-6. Inhibit specific number outgoing call – number
translation application (3/4)
voice-port 0/2 !
! dial-peer voice 1 pots
voice-port 0/3 destination-pattern 8221234568
! port 0/1
voice-port 1/0 !
! !
voice-port 1/1 ! Voip peer configuration.
! !
voice-port 1/2 dial-peer voice 1000 voip
! destination-pattern ..T
voice-port 1/3 session target ras
! dtmf-relay h245-alphanumeric
! !
! Pots peer configuration. dial-peer voice 2000 voip
! destination-pattern ###
dial-peer voice 0 pots dtmf-relay h245-alphanumeric
destination-pattern 8221234567 shutdown
port 0/0 !
79
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-6. Inhibit specific number outgoing call – number
translation application (4/4)
! !
! Gateway configuration. !
! ! Clear down tone
gateway !
h323-id addpac-gw !
gkip 90.90.90.1 1719 128 voip-interface ether0.0
register !
!
!
! Translation Rule configuration.
!
translation-rule 0
rule 0 00[1-2] ###
rule 1 700 ###
!
translation-rule 1
rule 0 00[1-2] ###
!
80
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-7. PSTN Backup (normal)(1/4)
Internet
100
PSTN
101
Requirement
If VoIP Interface is available and VoIP call processing with Gatekeeper is normal, VoIP Service is
possible via Internet.
If VoIP Interface is down or call processing with Gatekeeper is abnormal, otherwise VoIP Service is
impossible via Internet, VoIP Gateway provides PSTN connection service using PSTN backup
Interface.
81
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-7. PSTN Backup (normal)(2/4)
! !
version 5.67 ! Voice service voip configuration.
! !
! voice service voip
! fax protocol t38 redundancy 0
interface ether0.0 fax rate 14400
ip address 10.10.10.10 255.255.255.0 h323 call start fast
! security permit-FXO
interface ether1.0 !
no ip address !
! ! Voice port configuration.
snmp name AP2520 !
! voice-port 0/0
route 0.0.0.0 0.0.0.0 10.10.10.1 !
! voice-port 0/1
! !
! voice-port 0/2
! VoIP configuration. !
82
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-7. PSTN Backup (normal)(3/4)
voice-port 0/3 dial-peer voice 5 pots
! destination-pattern 8221234568
voice-port 1/0 port 1/1
! !
voice-port 1/1 dial-peer voice 10 pots
! destination-pattern ..T
voice-port 1/2 port 0/0
! preference 1
voice-port 1/3 !
! dial-peer voice 11 pots
! destination-pattern ..T
! port 0/1
! Pots peer configuration. preference 2
! Huntstop
dial-peer voice 4 pots !
destination-pattern 8221234567 !
port 1/0 ! Voip peer configuration.
! !
83
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-7. PSTN Backup (normal)(4/4)
! !
dial-peer voice 1000 voip ! Clear down tone
destination-pattern ..T !
session target ras !
dtmf-relay h245-alphanumeric voip-interface ether0.0
! !
!
!
!
!
!
! Gateway configuration.
!
gateway
h323-id addpac-gw
gkip 90.90.90.1 1719 128
register
!
84
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-8. PSTN Backup (inbound pots peer)(1/4)
Internet
100
568-3848
568-3849
PSTN
101
Requirement
Out-going call
If VoIP Interface is available and VoIP call processing with Gatekeeper is normal, VoIP Service is
possible via Internet.
If VoIP Interface is down or call processing with Gatekeeper is abnormal, otherwise VoIP Service is
impossible via Internet, VoIP Gateway provides PSTN connection service using PSTN backup
Interface. For example, 100 Phone user can use the PSTN line number 568-3848, 101 Phone user
can use the PSTN line number 568-3849.
In-coming call
From outside, if call to 568-3848, 100 Phone is ringing, if call to 568-3849, 101 Phone is ringing.
85
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-8. PSTN Backup (inbound pots peer)(2/4)
!
voice service voip
version 5.67
fax protocol t38 redundancy 0
!
fax rate 14400
interface ether0.0
h323 call start fast
ip address 10.10.10.10 255.255.255.0
security permit-FXO
!
!
interface ether1.0
! Voice port configuration.
no ip address
!
!
voice-port 0/0
snmp name AP2110
!
!
voice-port 0/1
route 0.0.0.0 0.0.0.0 10.10.10.1
!
!
voice-port 0/2
! VoIP configuration.
!
! Voice service voip configuration.
voice-port 0/3
!
!
86
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-8. PSTN Backup (inbound pots peer)(3/4)
88
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-9. Trunk – Inter-working with Voice broadcasting
equipment (1/5)
AP2110-A AP2110-B
Eth0.0 10.10.10.10 Eth0.0 20.20.20.20
IP
Network
Trunk-answer Trunk-initiate
Voice
Amplifier Broadcasting
Equipment
Speaker
Mic
89
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-9. Trunk – Inter-working with Voice broadcasting
equipment (2/5)
router-A router-B
! !
version 5.67 version 5.67
! !
hostname router-A hostname router-B
! !
! !
interface ether0.0 interface ether0.0
ip address 10.10.10.10 255.255.255.0 ip address 20.20.20.20 255.255.255.0
! !
interface ether1.0 interface ether1.0
no ip address no ip address
! !
snmp name AP2110 snmp name AP2110
! !
route 0.0.0.0 0.0.0.0 10.10.10.1 route 0.0.0.0 0.0.0.0 20.20.20.1
! !
! !
90
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-9. Trunk – Inter-working with Voice broadcasting
equipment (3/5)
! VoIP configuration. ! VoIP configuration.
! !
! Voice service voip configuration. ! Voice service voip configuration.
! !
voice service voip voice service voip
fax protocol t38 redundancy 0 fax protocol t38 redundancy 0
fax rate 14400 fax rate 14400
h323 call start fast h323 call start fast
security permit-FXO security permit-FXO
! !
! !
! Voice port configuration. ! Voice port configuration.
! !
voice-port 0/0 voice-port 0/0
connection trunk-answer 2000 connection trunk-initiate 1000
! !
voice-port 0/1 voice-port 0/1
connection trunk-answer 2001 connection trunk-initiate 1001
91
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-9. Trunk – Inter-working with Voice broadcasting
equipment (4/5)
voice-port 0/2 voice-port 0/2
! !
voice-port 0/3 voice-port 0/3
! !
voice-port 1/0 voice-port 1/0
! !
voice-port 1/1 voice-port 1/1
! !
voice-port 1/2 voice-port 1/2
! !
voice-port 1/3 voice-port 1/3
! !
! !
! Pots peer configuration. ! Pots peer configuration.
! !
dial-peer voice 0 pots dial-peer voice 0 pots
destination-pattern 1000 destination-pattern 2000
port 0/0 port 0/0
92
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-9. Trunk – Inter-working with Voice broadcasting
equipment (5/5)
dial-peer voice 1 pots dial-peer voice 1 pots
destination-pattern 1001 destination-pattern 2001
port 0/1 port 0/1
! !
! !
! Voip peer configuration. ! Voip peer configuration.
! !
dial-peer voice 1000 voip dial-peer voice 1000 voip
destination-pattern 200. destination-pattern 100.
session target 20.20.20.20 session target 10.10.10.10
dtmf-relay h245-alphanumeric dtmf-relay h245-alphanumeric
! !
! !
! Gateway configuration. ! Gateway configuration.
! !
gateway gateway
h323-id voip.10.10.10.10 h323-id voip.20.20.20.20
! ! 100
93
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and internal direct call
application – number translation, plar (1/7)
AP2520-A AP2520-B
Eth0.0 10.10.10.10 Eth0.0 20.20.20.20
IP
Network
VoIP Gateway
Gatekeeper
80.80.80.1
PBX
82-2-123-4567 82-2-123-4568
100 101
94
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and internal direct call
application – number translation, plar (2/7)
router-A router-B
! !
version 5.67 version 5.67
! !
hostname router-A hostname router-B
! !
! !
interface ether0.0 interface ether0.0
ip address 10.10.10.10 255.255.255.0 ip address 20.20.20.20 255.255.255.0
! !
interface ether1.0 interface ether1.0
no ip address no ip address
! !
snmp name AP2520 snmp name AP2520
! !
route 0.0.0.0 0.0.0.0 10.10.10.1 route 0.0.0.0 0.0.0.0 20.20.20.1
! !
! !
95
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and internal direct call
application – number translation, plar (3/7)
! VoIP configuration. ! VoIP configuration.
! !
! !
! Voice service voip configuration. ! Voice service voip configuration.
! !
voice service voip voice service voip
fax protocol t38 redundancy 0 fax protocol t38 redundancy 0
fax rate 14400 fax rate 14400
h323 call start fast h323 call start fast
security permit-FXO security permit-FXO
! !
! !
! Voice port configuration. ! Voice port configuration.
! !
voice-port 0/0 voice-port 0/0
! !
voice-port 0/1 voice-port 0/1
! !
96
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and Internal direct call
application – number translation, plar (4/7)
voice-port 0/3 voice-port 0/3
! !
voice-port 1/0 voice-port 1/0
connection plar 111200 translate-incoming called-number 0
! !
voice-port 1/1 voice-port 1/1
connection plar 111201 translate-incoming called-number 1
! !
voice-port 1/2 voice-port 1/2
! !
voice-port 1/3 voice-port 1/3
! !
! !
! Pots peer configuration. ! Pots peer configuration.
! !
dial-peer voice 0 pots dial-peer voice 0 pots
destination-pattern 8221234567 destination-pattern 8229876543
port 0/0 port 0/0
97
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and Internal direct call
application – number translation, plar (5/7)
dial-peer voice 1 pots dial-peer voice 1 pots
destination-pattern 8221234568 destination-pattern 8229876542
port 0/1 port 0/1
! !
dial-peer voice 4 pots dial-peer voice 4 pots
destination-pattern 000200 destination-pattern 111200
port 1/0 port 1/0
! !
dial-peer voice 5 pots dial-peer voice 5 pots
destination-pattern 000201 destination-pattern 111201
port 1/1 port 1/1
! !
! !
! Voip peer configuration. ! Voip peer configuration.
! !
dial-peer voice 1000 voip dial-peer voice 1000 voip
destination-pattern ..T destination-pattern ..T
session target ras session target ras
98
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and Internal direct call
application – number translation, plar (6/7)
dtmf-relay h245-alphanumeric dtmf-relay h245-alphanumeric
! !
dial-peer voice 1001 voip dial-peer voice 1001 voip
destination-pattern 111... destination-pattern 000...
session target 20.20.20.1 session target 10.10.10.10
dtmf-relay h245-alphanumeric dtmf-relay h245-alphanumeric
! !
! !
! !
! !
! !
! Gateway configuration. ! Gateway configuration.
! !
gateway gateway
h323-id addpac-gw1 h323-id addpac-gw2
gkip 80.80.80.1 1719 128 gkip 80.80.80.1 1719 128
register register
! !
99
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-10. Gatekeeper and Internal direct call
application – number translation, plar (7/7)
! !
! !
! translation-rule 0
! rule 1 9 0002009
!
translation-rule 1
rule 0 ... 000201%01%02%03
rule 1 9 0002019
!
!
!
! Clear down tone
!
voip-interface ether0.0
!
100
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00