[go: up one dir, main page]

0% found this document useful (0 votes)
283 views100 pages

AddPac VoIP Gateway Training Guide PDF

Uploaded by

aldo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
283 views100 pages

AddPac VoIP Gateway Training Guide PDF

Uploaded by

aldo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 100

Network Product Technical

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

AddPac Technology Network Product AddPac Technology Co.,Ltd.

1
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
Contents

• 1. AddPac VoIP Gateway


• 2. Basic Management Function
• 3. Basic Setting Configuration and Network Diagram
• 4. H.323 call setup procedure Overview
• 5. VoIP Configuration and Setting
• 6. Other Scalability Features
• 7. Example

2
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
1. AddPac VoIP Gateway(1/3)

Hardware Specification(example : AP2520R)

Microprocessor - Motorola 32bit RISC Microprocessor

Memory 1. Flash Memory - 4/8 Mbyte


2. SDRAM Memory - 32/64 Mbyte
3. Boot Memory - 512 Kbyte

WAN Port - One(1) Serial Port (V.35 Interface)

LAN Port - One(1) 10/100Mbps Ethernet (RJ-45 Interface)

Console Port - One(1) RS-232C Interface

Network Module Slot - Two(2) Interface Module Slot

Power Requirement - 110~220 VAC , 50/60Hz, 15Watt

H x W x D (mm) - 43mm x 435mm x 205mm

3
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
1. AddPac VoIP Gateway(2/3)

Support Protocol and Service

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)

Voice over IP Service


1. ITU-T H.323 v2 VoIP Protocol with ITU-T H.235 Security Feature
2. G.723.1, G.729.A, G.711 Voice Compressions
3. Voice Processing Features Supports - VAD, DTMF, CNG, G.168,
and T.38 G3 FAX Relay
4. ITU-T H.323 Gateway, Gatekeeper Support

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)

4. Enable/Disable for Specific Protocols


5. Auto-disconnect for Telnet/Console Sessions
6. Multi-Level User Account Management

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

Other Scalability Features


1. Traffic Management Function
2. Traffic Queuing and Frame-Relay Flow Control
3. Transparent Bridging Function
: Spanning Tree Bridging Protocol Support
4. DHCP Server & Relay Functions
5. IP Accounting Function
6. PAT(Port Address Translation) Function
7. NAT(Network Address Translation) Function

5
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2. Basic Management Function

• OS & configuration up-grade or backup using Ftp, Tftp, Web


• Auto upgrade
• SNMP
• Web based management
• Security (User account management,telnet access control,access list)
• Equipment Configuration Check (dial plan & other equipment
configuration information)
• Equipment Status Check (check the equipment status such as port, line
status during operation)
• Debugging (call trace and other real-time debugging information
analysis)
• Boot Loader (Password recovery mode)

6
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-1. OS & configuration up-grade or backup
Feature

Server : tftp/ftp/http Supports


Client: ftp Support Put (upload)
AddPac Gateway
Command about Server Connect via FTP/TFTP/HTTP
router(config)# service ftpd
router(config)# service tftpd Server
router(config)# service httpd Get (download)

Command for Client


router# ftp [host [port]]

OS image/config file name


for example: Ap2110_v5_67.bin
Put (upload)
mean: Version 5.67 ap2110 or
image
Connect via FTP
for example : config.cfg
mean: addpac gateway
configuration information file Client Server
Get (download)

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.

Packing.List File Example


For example, if home directory of web server is c:/web, APOS image(ex: AP2110 VoIP
Gateway, APOS version v5_64) and Packing.list file should be located at
c:/web/download/apos directory. Following file shows the contents of
Packing.List file.

./ap2110_v5_64.bin 5.64B1 05 May 2002 10:11:12


./config.cfg 20020531 10 May 2002 10:11:12

Command Procedure at VoIP Gateway Side for Automatic S/W Upgrade Function

router(config)# auto-upgrade action (Enter after URL configuration )


router(config)# auto-upgrade authentication <login> <password>
(Only text authentication type support)
router(config)# auto-upgrade auto-reboot
router(config)# auto-upgrade configuration-serial
router(config)# auto-upgrade interval
router(config)# auto-upgrade url
Example
http://123.45.67.8/download/apos/packing_ap2110.list
http://down.addpac.com/apos/packing.list
router(config)# auto-upgrade verbose

8
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-3. SNMP

SNMP agent : snmp version 2


MIB : version 2 , VoIP enterprise MIB Support

Configuration command for Agent


router(config)# snmp community <host ip> <community name>
router(config)# snmp <location/contact/name> string
router(config)# snmp host <trap host ip>
router(config)# service snmpd

get (read) AddPac Gateway

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.

Configuration command for Web Server


router(config)# service httpd

get (read)
AddPac Gateway
set (write)

client Web Server

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)

Function : account management, telnet access control, access list(packet filtering)


Configuration command
User account management
router(config)# user add <username> <password> <level>
router(config)# user change <username> <old-password> <new-password>
router(config)# user level <username> <password> <level>
router(config)# user timeout <username> <timeout-value(sec)>

telnet access control


router(config)# telnet <host/network> [mask]

Standard/extend access list


router(config)# access-list <0-29/30-59> <permit/deny> <icmp/ip/tcp/UDP> …….
router(config-ether0.0)# ip access 30 <in/out>
Example
pool setting
router(config)# access-list 30 permit ip host 1.1.1.1 2.2.2.2 255.255.255.0
router(config)# access-list 30 permit tcp 1.1.1.1 255.255.255.0 host 2.2.2.2 eq www
Binding
router(config-ether0.0)# ip access 30 in

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

telnet/user account /access list security check

packet filtering(as gateway router) using Access list

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.

Major Command List

router# show running-config ; This command can show all configuration


information of equipment. It does not show
the default configuration information.

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

Baud rate 9600


No parity
1 stop bit
console No flow control

Serial port

Real time monitoring of current AddPac Gateway status : Root Login

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

Line interface status command


router(config)# show interface ; network interface Status

VoIP status check command


router(config)# show voice port <,,,,> ; FXO/FXS/E&M/E1 port status and setting
information
router(config)# show call history <,,,,> ; call history information(CID)
router(config)# show call active <,,,,> ; show call information about current active
calls
router(config)# show gateway ; VoIP related global setting information of
gateway and gatekeeper registration status
information
router(config)# show dialplan ; show the dial-plan about port/voip peer

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

debug access-list ;Set IP access list for debugging


debug dhcpc ;DHCP Client protocol information
debug dhcpd ;DHCP Server protocol information
debug frame-relay ;Frame Relay information
debug ospf ;OSPF protocol information
debug ppp ;PPP (Point to point protocol) information
debug serial ;Serial interface information
debug rip ;RIP protocol information
debug tcpip ;TCP/IP protocol information
debug voip ;[VoIP] VoIP protocol information
debug rta ;[VoIP] Rta protocol information

router(config)# debug-port ; Debug message is displayed in current commanding terminal(tty)


(default : console). This command is very usable at remote debugging
via telnet.

18
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
2-8. Debugging(2/5)

VoIP call trace related debugging command


debug voip < call/h225-asn1/h245-asn1/ras-asn1>
;Decoding the Q.931 and RAS message.
debug voip port <port-no>
; Trace only specific port

debug rta ipc ;IPC message


debug rta rtp ;RTP (Real-time Transfer Protocol) Packet
debug rta rtperr ;RTP (Real-time Transfer Protocol) Packet Error
debug rta rtcp ;RTCP (Real-time Transfer Control Protocol) Packet
debug rta t38 ;T38 Fax Protocol
debug rta http ; HTTP Protocol
debug rta e1 ;E1 Link
debug rta r2 ;R2 Signaling
debug rta q921 ;ISDN Q921 Packet
debug rta q931 ;ISDN Q931 Packet
debug rta all ;above all

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

Baud rate 9600


No parity
console 1 stop bit
No flow control
Serial port

router# debug voip call


router(config)# debug-port

Real-Time Monitoring of current AddPac Gateway Status : Root Login

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

PROM Check the “CTRL-c” key is pressed


continuously within three second
after booting

No Yes
APOS
Boot#

Flash memory
Mini-OS

Waiting three(3) second for key input detection


at RS-232C console port after booting

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

• Cable Modem Environment (DHCP client)


• ADSL Modem (PPPoE) Environment (Dynamic IP)
• ADSL Modem (MyIP) Environment
• ADSL Modem (multi-IP) or Released line Environment
• Leased Line Router Environment (Operating as VoIP Router)
• QoS, Bridge Mode

25
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-1. Cable Modem Environment (DHCP client)(1/3)

Mandatory command List


Ethernet 0.0 Internet Cable Cable
DHCP Client
Modem
QoS – recommendation
e164 for Dial peer FXS/FXO/VoIP
VoIP Interface Configuration LAN
(default eth0.0) DHCP Client Eth0.0
Optional command List AP2110
Configuration for Gate-Keeper PAT Eth1.0
Ethernet 1.0
private IP Address & PAT

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)

dial-peer voice 1000 voip


! Pots peer configuration. destination-pattern ...T
! session target ras
dial-peer voice 0 pots dtmf-relay h245-alphanumeric
destination-pattern 25553051 !
port 1/0 dial-peer voice 1001 voip
! destination-pattern 20..
dial-peer voice 1 pots session target 168.126.4.4
destination-pattern 25553052 dtmf-relay h245-alphanumeric
port 1/1
! ! Gateway configuration.
dial-peer voice 2 pots !
destination-pattern 25553053
gateway
port 1/2
! h323-id addpactest
dial-peer voice 3 pots gkip 211.192.1.1
destination-pattern 25553054 register
port 1/3 !
! !
! ! Clear down tone
! !
! Voip peer configuration. !
!
voip-interface ether0.0
!
28
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-2. ADSL Modem (PPPoE) Environment
(dynamic IP)(1/2)

Mandatory command List


Ethernet 0.0 Internet ADSL Line ADSL
PPPoE Modem
QoS – recommendation
e164 for Dial peer FXS/FXO/VoIP
LAN
VoIP Interface Configuration
PPPoE
(default eth0.0) Eth0.0
Default route AP2110
Optional command List PAT Eth1.0
Configuration for Gate-Keeper
Ethernet 1.0
private IP Address & PAT

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

Mandatory command List Internet ADSL Line ADSL


Ethernet 0.0 Modem
ip address
QoS – recommendation
LAN
Dial peer FXS/FXO/VoIP e164
ethernet
VoIP Interface Setting (default eth0.0) Eth0.0
Default route AP2110
Optional command List PAT Eth1.0
Configuration for Gate-Keeper
Ethernet 1.0
private IP Address & PAT

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 )

Mandatory command List


Internet Leased Line CSU/DSU
Serial 0
ip address
encapsulation PPP(HDLC)
QoS – Recommend V35
Ethernet 0.0 HDLC or PPP
ip address AP2520R
Dial peer FXS/FXO/VoIP e164 Eth0.0
VoIP Interface Setting (default eth0.0)
Default(or static) route
Optional command List
Gate-Keeper Parameter Setting

33
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
3-6. QoS, Bridge mode

Mandatory command List


Ethernet 0.0
Internet Leased Line Leased Line
Ip address Router
bridge
QoS – Recommand LAN
Ethernet 1.0 Bridge/QoS Eth0.0
no ip address
AP1100
bridge
Bridge Eth1.0
Dial peer FXS/FXO/VoIP e164 Internal
VoIP Interface Setting (default eth0.0) Network
default route
no ip routing
No Bridge Spanning Tree
Optional command List
Gate-Keeper Parameter Setting

34
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4. H.323 call setup Procedure Overview

• PSTN Inter-networking call Scenario


• H323 end-to-end signaling
• Gatekeeper Registration
• Gatekeeper Call Admission
• Direct Endpoint Call Signaling
• Gatekeeper Routed Call Signaling (Q.931)
• Gatekeeper Routed Call Signaling (Q.931/H.245)
• Both endpoints registered to the same Gatekeeper
• Both gatekeepers direct call signaling

35
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-1. PSTN Inter-networking Call Scenario

Internet

Gate Keeper VoIP Gateway

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

H.323 Gateway Learns of Gatekeeper


Gatekeeper via Static
Configuration

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

RAS—Registration Admission and Status


UDP Transport Port 1719
RRQ—Registration Request
RRJ—Registration Reject
RCF—Registration Confirm

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)

Call proceeding (4)

ARQ (5)

ACF/ARJ (6)

Alerting (7)

Connect (8)

T1527160-97

RAS Messages

Call Signalling Messages


43
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
4-9 Both gatekeepers direct call signalling

Endpoint 1 Gatekeeper 1 Gatekeeper 2 Endpoint 2

ARQ (1)

ACF/ARJ (2)

Setup (3)

Call proceeding (4)

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

• H323 signaling Parameter Setting ( h232 call setup procedure, option)


• Gatekeeper Parameter Setting (GK IP/h323 id/e164/ras port,timeout)
• time out parameter
• number plan
• Etc

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

Determine how to send H323 call response message


%default is sending alert only if receiving port is FXS, otherwise, sending progress message.
router(config-vservice-voip)# h323 call response <alert/progress/none/default> ;default = default

Determine H323 call setup mode


In case setting Preferred-slow, if addpac gateway is sending side, process setup as slow-start ,
if receiving side, other side is fast, then fast-start or slow, then slow-start
router(config-vservice-voip)# h323 call start <fast/slow/preferred-slow> ; default = fast

H245 tunneling enable/diable Setting


router(config-vservice-voip)# h323 call tunnel <enable/disable> ; default = enable

When H245 tunneling is disabled, h245setup Mandatory command List


router(config-vservice-voip)# force-h245address-at-setup ; default=enable
router(config-vservice-voip)# force-starth245 ; default=enable
%CF: When H245 tunneling is enabled (default)
router(config-vservice-voip)# force-h245address-at-setup ; default=disable
router(config-vservice-voip)# force-starth245 ; default=disable

46
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-2 Gatekeeper Parameter Setting

Gatekeeper ip address setting


router(config-gateway)# gkip <ip address> ; default= none

Deciding whether GRQ message is sending or not


router(config-gateway)# discovery ; default=disable

H323 id setting
router(config-gateway)# h323-id <string> ; default=voip.<ether0.0 ip address>

Send RRQ
router(config-gateway)# register

RAS signaling port setting


router(config-gateway)# signalling-port <port-num> ; default= 1720

RAS source port number fixed


router(config-gateway)# fixed-ras-port ; default=fixed(port num=22000)

47
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-3 time out and number plan parameter

timeout parameter setting


router(config-vservice-voip)# timeout tinit ; set initial digit timeout value
router(config-vservice-voip)# timeout tring ; set ringing timeout value
router(config-vservice-voip)# timeout t301 ; set Q.931 alert -> connect timeout value
router(config-vservice-voip)# timeout t303 ; set Q.931 setup -> alert timeout value
router(config-vservice-voip)# timeout tras ; set RAS msg ack timeout value
router(config-vservice-voip)# timeout tttl ; set RAS Time To Live timeout value
router(config-vservice-voip)# timeout tidt ; set inter digit timeout value
router(config-vservice-voip)# timeout treg ; set GK Registration retry timeout value

“show gateway” command can be used to check the correct parameter setting
router#show gateway

number plan parameter setting


router(config)# dial-p voice <tag-id> <pots/voip>
router(config-dialpeer-pots-100)# destination-pattern <number>
router(config-dialpeer-pots-100)# port <0-1>/<0-3>
router(config-dialpeer-voip-2000)# sess target <ras/ip address>

48
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
5-4 Other Commands

Local Ring-back-tone parameter setting


router(config-vservice-voip)# local-ringback-tone <alert/early/<cr>> ; default=<cr>
Alert: Playing Local ring back-tone after receiving alerting message.
Early: Playing Local ring back-tone after sending setup message.
<cr> ; Playing Local ring back-tone in coming first whatever RTP(in-band) or alert.

Setting whether sending In-band Ring-back-tone to caller


router(config-vservice-voip)# in-band-ringback-tone ; default= enabled

VoIP port(TCP/UDP) minimize option


router(config-vservice-voip)# minimize-voip-ports <<cr>/<multiply <number> >
; default=no minimize

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)

Eth0.0 : 10.10.10.1 Eth0.0 : 20.20.20.1


Internet

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)

Eth0.0 : 10.10.10.1 Eth0.0 : 20.20.20.1


Internet
201

Call Scenario 200


hook off (100) -> digit ‘200’ -> Ringing(200)
100 -> hook off(201) -> digit ‘**’-> connect

Call pick-up

interface ether0.0 interface ether0.0


ip address 10.10.10.1 255.255.255.0 ip address 20.20.20.1 255.255.255.0
…. ….
dial-peer voice 0 pots dial-peer voice 0 pots
destination-pattern 100 destination-pattern 200
port 0/0 port 0/0
…. ….
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
….
dial-peer call-pickup **

52
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-2 call Pick-up/transfer(2/2)

Eth0.0 : 10.10.10.1 Eth0.0 : 20.20.20.1


Internet
201
200
Call Scenario
hook off (100) -> digit ‘200’ -> Ringing(200)
100 ->hook off(200)->connect->digit ‘hook-flash’+’201’
-> Ringing(201) ->hook off(201) -> connect
-> hook on(200) ->translate-voip-incoming
Call transfer

interface ether0.0 interface ether0.0


ip address 10.10.10.1 255.255.255.0 ip address 20.20.20.1 255.255.255.0
…. ….
dial-peer voice 0 pots dial-peer voice 0 pots
destination-pattern 100 destination-pattern 200
port 0/0 port 0/0
…. ….
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
….
router(config)# dial-peer call-transfer h
53
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-3 number translation

Eth0.0 : 10.10.10.1 Eth0.0 : 20.20.20.1


Internet

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

Incoming call Dial-peer 0 pots Dial-peer 1 pots Dial-peer 11 pots


Outgoing call Port 1/0 Port 1/1 Port 0/1
Destination-pattern 100 Destination-pattern 101 Destination-pattern T
Call scenario
Out going call
Hook off(port 1/0) -> digit any number -> VoIP call is possible ?(AddPac gateway)
-> possible -> call transfer to VoIP Service Provider (Gatekeeper) -> call connected (conversation)
->impossible (Gatekeeper down or internet link down ) -> call transfer to port 0/0(PSTN) -> call connected
Hook off(port 1/1) -> digit any number -> VoIP call is possible?(AccPac gateway)
-> possible-> call transfer to VoIP Service Provider (Gatekeeper) -> call connected
->impossible (gatekeeper down or internet link down) -> call transfer to port 0/0(PSTN) -> call connected
Incoming call
call (port0/0) -> Ringing(port 1/0) -> hook off (port 1/0) -> call connected (conversation)
call (port0/1) -> Ringing(port 1/1) -> hook off (port 1/1) ->call connected (conversation)
55
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
6-4 PSTN backup & inbound pots peer(2/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

Incoming call Dial-peer 0 pots Dial-peer 1 pots Dial-peer 11 pots


Port 1/0 Port 1/1 Port 0/1
Outgoing call
Destination-pattern 100 Destination-pattern 101 Destination-pattern T

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

• VoIP call connection diagram using Gatekeeper


• Gatekeeper and internal direct call connection diagram
• Internal direct call connection (plar)
• direct call connection using FXS or FXO interface (plar) : Example
• number translation
• Inhibit specific number outgoing call (number translation application 2 )
• PSTN Backup (normal )
• PSTN Backup (inbound pots peer)
• Trunk – Inter-working with Voice broadcasting equipment
• Gatekeeper and internal direct call application – number translation, plar

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)

! 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
! !
voice-port 1/0

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)

! 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
! !
voice-port 0/2 voice-port 0/2
! !
voice-port 0/3 voice-port 0/3

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)

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 8221234567 destination-pattern 8229876543
port 0/0 port 0/0
! !
dial-peer voice 1 pots dial-peer voice 1 pots
destination-pattern 8221234568 destination-pattern 8229876542
port 0/1 port 0/1

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)

dial-peer voice 10 pots


dial-peer voice 10 pots
destination-pattern 2000
destination-pattern 1000
port 0/1
port 0/1
no register e164
no register e164
!
!
dial-peer voice 11 pots
dial-peer voice 11 pots
destination-pattern 2001
destination-pattern 1001
port 0/1
port 0/1
no register e164
no register e164
!
!
! 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
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
!
65
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-2. Gatekeeper and internal direct call
connection diagram (6/6)

dial-peer voice 1001 voip dial-peer voice 1001 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 addpac-gw1 h323-id addpac-gw2
gkip 80.80.80.1 1719 128 gkip 90.90.90.1 1719 128
register register
! !
! Clear down tone ! Clear down tone
! !
voip-interface ether0.0 voip-interface ether0.0
!

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)

! 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
! !
voice-port 0/2 voice-port 0/2
! !
voice-port 0/3 voice-port 0/3

69
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-3. Internal direct call connection (plar)(4/5)

voice-port 1/0 voice-port 1/0


connection plar 2000 connection plar 1000
! !
voice-port 1/1 voice-port 1/1
connection plar 2001 connection plar 1001
! !
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 1/0 port 1/0
! !

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

Call Scenario 201


Hook off(1000 or 1001) -> digit ‘200’ or ‘201’ ->
1001 Ringing(200 or 201) -> hook off(200 or 201) -> Conversation

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

Same as 7-3 blank

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)

! 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
! !
voice-port 1/0

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

#100 phone users are restricted to using 700 service


#101 phone users are allowed to using 700 service
All user are restricted to dialing number starting with 001

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)

dial-peer voice 1 pots


voice-port 1/0
destination-pattern 101
connection plar 100
huntstop
!
port 0/1
voice-port 1/1
!
connection plar 101
dial-peer voice 10 pots
!
destination-pattern T
voice-port 1/2
inbound-pots-peer 0
!
preference 1
voice-port 1/3
huntstop
!
port 1/0
! Pots peer configuration.
!
!
dial-peer voice 11 pots
dial-peer voice 0 pots
destination-pattern T
destination-pattern 100
inbound-pots-peer 1
huntstop
preference 1
port 0/0
huntstop
!
port 1/1
87
AddPac Technology www.addpac.com May. 2002, VoIP Network Product Training R1.00
7-8. PSTN Backup (inbound pots peer)(4/4)

! Voip peer configuration.


!
dial-peer voice 1000 voip
destination-pattern T
session target ras
dtmf-relay h245-alphanumeric
!
! Gateway configuration.
! blank
gateway
h323-id addpac
gkip 80.80.80.1 1719 128
register
!
! Clear down tone
!
voip-interface ether0.0

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

PSTN 82-2-987-6543 82-2-987-6542


Network 200 201

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)
! !

! Clear down tone ! Translation Rule configuration.

! !

! translation-rule 0

voip-interface ether0.0 rule 0 ... 000200%01%02%03

! 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

You might also like