Download as pdf or txt
Download as pdf or txt
You are on page 1of 130

AddPac VoIP Products

VoIP gateway Training Guide

Nov. 2005
Technical Support Team
Phone (02) 568 3848 (2000 ~ 2006)
FAX (02) 568 3847
tech@addpac.com

AddPac Technology

www.addpac.com VoIP Training Guide 1


Index
Chapter
Chapter 11 Introduce
Introduce AddPac
AddPac VoIP
VoIP gateway
gateway
•• 1.
1. AddPac
AddPac VoIP
VoIP Gateway
Gateway Hardware
Hardware
•• 2.
2. AddPac
AddPac VoIP
VoIP Gateway
Gateway Feature
Feature
•• 3.
3. IP
IP Network
Network Configuration
Configuration
•• 4.
4. VoIP
VoIP Network
Network Configuration
Configuration
•• 5.
5. Voice Interface Configuration
Voice Interface Configuration
Chapter
Chapter 22 Basic
Basic and
and Advanced
Advanced Configuration
Configuration
•• 1.
1. Redundant
Redundant Trunk
Trunk Gateway.
Gateway.
•• 2.
2. Policy
Policy for
for poor
poor VoIP
VoIP network
network
•• 3. Number Plan
3. Number Plan
•• 4.
4. PSTN
PSTN Backup
Backup by by busyout
busyout
•• 5.
5. Number
Number Translation
Translation
•• 6.
6. The solution for
The solution for FXO
FXO port
port block
block
Chapter
Chapter 33 Trouble
Trouble shooting
shooting
•• 1.
1. Trace
Trace Flow
Flow
•• 2.
2. Debugging
Debugging command.
command.
•• 3. Call trace
3. Call trace
Chapter
Chapter 44 Configuration
Configuration Example
Example
•• 1.
1. IP
IP Telephony
Telephony Network
Network with
with ITSP
ITSP
•• 2.
2. GK
GK routed
routed Call
Call and
and direct
direct call
call with
with ITSP
ITSP between
between Head
Head Quarter
Quarter and
and branch
branch office
office

www.addpac.com VoIP Training Guide 2


Chapter 1 Introduce AddPac VoIP Gateway

VoIP
VoIP gateway
gateway Function
Function
•• AddPac
AddPac VoIP
VoIP Gateway
Gateway Hardware
Hardware
•• AddPac
AddPac VoIP
VoIP Gateway
Gateway feature
feature
•• IP
IP Network
Network configuration
configuration
•• VoIP
VoIP Network
Network configuration
configuration
•• Voice
Voice Interface
Interface configuration
configuration

www.addpac.com VoIP Training Guide 3


AddPac VoIP Gateway hardware
- (1/2) -

Common
Common Feature
Feature
22 of
of 10
10 or
or 100
100 Base
Base TT Ethernet
Ethernet Interface
Interface
RJ45
RJ45 Asynchronous
Asynchronous Console
Console Interface
Interface

Native
Native Analog
Analog Port model –– FXS/FXO
Port model FXS/FXO only
only
1/2
1/2 port
port gateway
gateway
AP200
AP200 Series
Series (Basic)
(Basic)
AP300
AP300 Series (2 of
Series (2 of 100M
100M fast
fast Ethernet)
Ethernet)
4/8 port gateway
4/8 port gateway
AP1000
AP1000 (FXS4)
(FXS4)
AP1002
AP1002 (FXS2O2)
(FXS2O2)
AP1005 (FXO8)
AP1005 (FXO8)
AP1100(F)
AP1100(F)
AP1200
AP1200

www.addpac.com VoIP Training Guide 4


AddPac VoIP Gateway hardware
- (2/2) -

Slot
Slot type
type model
model (FXO/FXS/E&M/E1/T1)
(FXO/FXS/E&M/E1/T1)
Analog
Analog (FXS/FXO//E&M)
(FXS/FXO//E&M)
11 slot
slot == 44 port
port (( 2120
2120 is
is 11 slot
slot == 88 port)
port)
Digital
Digital
11 slot
slot == 11 port
port (( MG3000
MG3000 is is 11 slot
slot == 22 E1)
E1)

11 slot
slot
AP2110
AP2110 (1
(1 slot
slot ++ FXS
FXS 44 static)
static)
22 slot
slot
AP2120
AP2120 (8
(8 channel
channel *2 slot) –– analog
*2 slot) analog only
only
AP2520
AP2520 (Basic)
(Basic)
AP2620
AP2620 (2
(2 of
of 100M
100M fast
fast Ethernet)
Ethernet)
AP2830
AP2830 (VoIP gateway + ATM
(VoIP gateway + ATM router)
router)
44 slot
slot
AP2850
AP2850 (VoIP
(VoIP gateway
gateway ++ ATM
ATM router)
router)
15
15 slot
slot
AP3100
AP3100 (4channel 15slot) –– analog
(4channel ** 15slot) analog only
only

www.addpac.com VoIP Training Guide 5


AddPac VoIP Gateway Feature
- WAN/LAN/Routing Service Protocol (1/3) -

WAN/LAN
WAN/LAN Protocol
Protocol
•• PPPoE
PPPoE Server
Server &
& Client
Client
•• DHCP
DHCP Server
Server &
& Client
Client
•• 802.1Q
802.1Q VLAN
VLAN Tagging
Tagging
•• Transparent
Transparent Bridge
Bridge for
for Ethernet
Ethernet
•• Transparent
Transparent Bridge
Bridge for
for PPPoE
PPPoE
•• PPTP
PPTP

www.addpac.com VoIP Training Guide 6


AddPac VoIP Gateway Feature
- WAN/LAN/Routing Service Protocol (2/3) -

Routing
Routing Protocol
Protocol
•• Static
Static Routing
Routing
•• RIP
RIP Version
Version 1,
1, Version
Version 22
•• OSPF
OSPF Version
Version 22
•• Source
Source Based
Based Routing
Routing Supported
Supported

www.addpac.com VoIP Training Guide 7


AddPac VoIP Gateway Feature
- WAN/LAN/Routing Service Protocol (3/3) -

Other
Other Scalability
Scalability
•• OoS
OoS Based
Based Priority
Priority &
& Bandwidth
Bandwidth control
control
•• NTP
NTP
•• ProxyDNS
ProxyDNS Server
Server
•• DNS
DNS Client
Client
•• NAT/PAT/IP
NAT/PAT/IP Share
Share Function
Function
•• Stacking
Stacking
•• Auto
Auto Upgrade/Configure
Upgrade/Configure via
via VPMS
VPMS
•• IP
IP TOS
TOS

www.addpac.com VoIP Training Guide 8


AddPac VoIP Gateway Feature
- Management & Security Functions -

Management
Management &
& Security
Security
•• Standard/Extended
Standard/Extended Access
Access List
List for
for Packet
Packet filtering
filtering
•• Telnet/FTP
Telnet/FTP Access
Access Control
Control
•• Account
Account List
List
•• Command/Event/Call
Command/Event/Call Logging
Logging and
and support
support Syslog
Syslog
•• SNMP
SNMP Agent
Agent (MIB
(MIB V2)
V2) and
and enterprise
enterprise MIB
MIB
•• Telnet
Telnet Server
Server &
& Client
Client
•• FTP
FTP Server
Server &
& Client
Client
•• WEB
WEB Based
Based Management
Management
•• Multi-Level
Multi-Level User
User account
account management
management
•• Web
Web Base
Base Management
Management

www.addpac.com VoIP Training Guide 9


AddPac VoIP Gateway Feature
- Analog Voice Interface –

FXS
FXS
•• Ring/Tone
Ring/Tone Generation
Generation cadence
cadence Configuration
Configuration Function
Function
Dial-tone/Reorder-tone/Ring-back-tone/Busy-tone/line-lock
Dial-tone/Reorder-tone/Ring-back-tone/Busy-tone/line-lock
•• Polarity
Polarity inverse
inverse Generation
Generation
•• Caller-ID
Caller-ID Generation
Generation
Bell-core/ETSI/ETSI-DTMF
Bell-core/ETSI/ETSI-DTMF

www.addpac.com VoIP Training Guide 10


AddPac VoIP Gateway Feature
- Analog Voice Interface –

FXO
FXO
•• Ring
Ring Detect
Detect cadence
cadence Configuration
Configuration Function
Function
•• Tone
Tone Generation
Generation cadence
cadence Function
Function
Dial-tone/Ring-back-tone(virtual-ring-back-tone)
Dial-tone/Ring-back-tone(virtual-ring-back-tone)
•• Clear-down-tone(re-order-tone)
Clear-down-tone(re-order-tone) Function
Function
Clear-down-tone
Clear-down-tone analyzing
analyzing Function
Function
•• voice
voice confirmed
confirmed connection
connection Function
Function
•• Polarity
Polarity detect
detect Function
Function
•• Caller-ID
Caller-ID Generation
Generation
Bell-core/ETSI/ETSI-DTMF
Bell-core/ETSI/ETSI-DTMF

www.addpac.com VoIP Training Guide 11


AddPac VoIP Gateway Feature
- Analog Voice Interface–

E&M
E&M
•• E&M
E&M Type
Type 11 ~~ 55 supported
supported
By
By Jumper
Jumper Setting
Setting (default
(default == 5)
5)
•• 2/4
2/4 wire
wire method
method supported
supported
By
By Jumper
Jumper Setting
Setting (default
(default == 22 wire)
wire)

www.addpac.com VoIP Training Guide 12


AddPac VoIP Gateway Feature
- Digital (E1/T1) Voice Interface –

Common
Common
•• E1/T1
E1/T1 Supported
Supported (different
(different Card)
Card)
•• LOS
LOS (Loss
(Loss Of
Of Signal
Signal )) LED
LED
•• clock
clock mode
mode Configuration
Configuration
internal/external
internal/external
•• PCM-A,PCM-U
PCM-A,PCM-U Configuration
Configuration
default
default :: PCMA
PCMA
•• Channel
Channel blocking
blocking
Specific
Specific channel
channel out-bound
out-bound block
block Function
Function
•• channel
channel grouping
grouping

www.addpac.com VoIP Training Guide 13


AddPac VoIP Gateway Feature
- Digital (E1/T1) Voice Interface –

ISDN
ISDN PRI
PRI
•• Type
Type ETSI
ETSI
•• Over-lap/En-bloc
Over-lap/En-bloc
•• Dial-tone
Dial-tone

R2
R2
•• MFC/DTMF
MFC/DTMF
•• get
get Call
Call ID
ID (( MFC)
MFC)

www.addpac.com VoIP Training Guide 14


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

General
General Feature
Feature 1/2
1/2
•• G711/G7231/G729/G726
G711/G7231/G729/G726 Codec
Codec Negotiation
Negotiation
•• T38
T38 G3
G3 FAX
FAX Relay
Relay Protocol
Protocol
•• VAD,
VAD, CNG(Comfort
CNG(Comfort Noise
Noise Generation)
Generation)
•• G.168
G.168 echo
echo cancellation
cancellation
•• DTMF
DTMF Relay
Relay
H245,
H245, RTP2833,In-band
RTP2833,In-band
•• Tone
Tone Generation
Generation
Dial-tone/Reorder-tone/Ring-back-tone/Busy-tone
Dial-tone/Reorder-tone/Ring-back-tone/Busy-tone
Clear-down-tone
Clear-down-tone analyzing
analyzing
debug
debug rta
rta voice
voice
•• Specific
Specific call/channel
call/channel out-bound
out-bound block
block function
function
•• Embedded
Embedded Gate-Keeper
Gate-Keeper

www.addpac.com VoIP Training Guide 15


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

General
General Feature
Feature 2/2
2/2
•• Number
Number Translation
Translation
•• PLAR(Private
PLAR(Private Line
Line Auto
Auto Ring-down)
Ring-down) for
for hot
hot line
line
•• Call
Call Waiting
Waiting with
with FXO
FXO
•• announcement
announcement
•• Support
Support Radius
Radius Accounting
Accounting
•• programmable
programmable H323/SIP
H323/SIP signaling
signaling port
port
•• Backup
Backup and
and hunting
hunting when
when VoIP
VoIP Network
Network failed
failed
•• make
make limit
limit conversation
conversation time
time
•• VoIP
VoIP session
session timer에 의한 call
timer에 의한 call block
block 방지
방지
•• dynamic/static
dynamic/static jitter
jitter buffer
buffer

www.addpac.com VoIP Training Guide 16


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

H.323
H.323 Feature
Feature 1/2
1/2
•• H.323
H.323 V2,
V2, 33
•• Codec
Codec Negotiation
Negotiation
•• Direct
Direct or
or GK
GK routed
routed Call
Call Support
Support at
at same
same time
time
•• Fast/Slow
Fast/Slow Start
Start Negotiation
Negotiation
•• H245
H245 (No)
(No) Tunneling
Tunneling Negotiation
Negotiation
•• RAI
RAI (Resource
(Resource Available
Available Indicate)
Indicate)
•• announcement
announcement
•• Support
Support Radius
Radius Accounting
Accounting
•• programmable
programmable H323/SIP
H323/SIP signaling
signaling port
port
•• minimize
minimize TCP/UDP
TCP/UDP port
port for
for VoIP
VoIP

www.addpac.com VoIP Training Guide 17


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

H.323
H.323 Feature
Feature 2/2
2/2
•• controllable
controllable OLC
OLC channel
channel open
open timing
timing
before
before connect,
connect, after
after h245
h245 opened,
opened, after
after connect
connect
•• Selectable
Selectable H323
H323 alerting
alerting message
message
Alerting/progress/None
Alerting/progress/None

www.addpac.com VoIP Training Guide 18


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

SIP
SIP Feature
Feature 1/2
1/2
•• SIP
SIP Version
Version 22
RFC3261,
RFC3261, RFC2653
RFC2653
•• Codec
Codec Negotiation
Negotiation
•• Direct
Direct or
or Proxy
Proxy routed
routed Call
Call Support
Support at
at same
same time
time
•• Inband/Our
Inband/Our of
of band
band DTMF
DTMF Relay
Relay
RTP2833,
RTP2833, in-band
in-band
•• register
register username
username or
or alias(e.164)
alias(e.164)
register
register each
each dial-peer
dial-peer separately
separately
•• register
register with
with authentication
authentication MD5
MD5 hash
hash algorism
algorism
•• register
register as
as Trunk
Trunk or
or end-point
end-point gateway
gateway

www.addpac.com VoIP Training Guide 19


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

SIP
SIP Feature
Feature 2/2
2/2
•• Call
Call waiting
waiting (Call
(Call hold)
hold)
•• Call
Call forwarding
forwarding
unconditional/Conditional
unconditional/Conditional
•• Call
Call transfer
transfer
Attended/blind
Attended/blind
•• Conference
Conference call
call
•• SIP
SIP ping
ping for
for operating
operating behind
behind private
private Network.
Network.

www.addpac.com VoIP Training Guide 20


AddPac VoIP Gateway Feature
- Voice Over IP Service Protocol –

MGCP
MGCP feature
feature
•• MGCP
MGCP Version
Version 1.0
1.0
RFC2705,
RFC2705, RFC3435
RFC3435
•• Codec
Codec Negotiation
Negotiation
•• Call-Agent
Call-Agent (MGC)
(MGC) Redirection
Redirection
•• Call
Call waiting
waiting (Call
(Call hold)
hold)
•• Local
Local Digit-map
Digit-map 저장
저장
•• Inband
Inband // Message
Message (NTFY)
(NTFY) // RTP2833
RTP2833 DTMF-Relay
DTMF-Relay
•• Codec,
Codec, VAD
VAD
•• MGCP
MGCP Service
Service port
port number
number
Local
Local UDP
UDP port
port // Call-Agent
Call-Agent (MGC)
(MGC) UDP
UDP port
port

www.addpac.com VoIP Training Guide 21


IP Network Configuration

IP
IP Network
Network Configuration
Configuration
•• Dynamic
Dynamic IP
IP via
via ADSL
ADSL modem
modem
•• Dynamic
Dynamic IP
IP via
via Cable
Cable modem
modem
•• Static
Static IP
IP behind
behind Router
Router
•• IP
IP Share
Share
•• NAT/PAT
NAT/PAT
•• Bridge
Bridge
•• STUN
STUN Client
Client

www.addpac.com VoIP Training Guide 22


IP Network Configuration
- Dynamic IP via ADSL modem (1/2) –

mandatory
mandatory setting
setting
LAN0
LAN0
encapsulation
encapsulation PPPoE
PPPoE
user
user ID
ID &
& password
password
Pots(VoIP) Peer
Pots(VoIP) Peer
e.164
e.164 related
related configurations
configurations

Optional
Optional setting
setting
LAN
LAN 00
QoS
QoS
LAN
LAN 11
NAT/PAT
NAT/PAT
VoIP
VoIP Network
Network
GK/SIP/MGCP
GK/SIP/MGCP related
related
configurations
configurations

www.addpac.com VoIP Training Guide 23


IP Network Configuration
- Dynamic IP via ADSL modem (2/2) –

Configuration
Configuration Example
Example
!!
interface
interface ether0.0
ether0.0
no
no ip
ip address
address
encapsulation
encapsulation pppoe
pppoe
ppp
ppp authentication pap
authentication pap callin
callin
ppp
ppp pap sent-username addpac
pap sent-username addpac password
password addpac
addpac
!!
dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 3000
3000
port 0/0
port 0/0
!!
!! Voip
Voip peer
peer configuration.
configuration.
!!
dial-peer
dial-peer voice
voice 900
900 voip
voip
destination-pattern
destination-pattern TT
session
session target
target 61.222.180.155
61.222.180.155
……

www.addpac.com VoIP Training Guide 24


IP Network Configuration
- Dynamic IP via Cable modem (1/2) –

mandatory
mandatory setting
setting
LAN0
LAN0
DHCP
DHCP Client
Client
Pots(VoIP)
Pots(VoIP) Peer
Peer
e.164
e.164 related configurations
related configurations

Optional
Optional setting
setting
LAN
LAN 00
QoS
QoS
LAN
LAN 11
NAT/PAT
NAT/PAT
VoIP
VoIP Network
Network
GK/SIP/MGCP
GK/SIP/MGCP related
related
configurations
configurations

www.addpac.com VoIP Training Guide 25


IP Network Configuration
- Dynamic IP via Cable modem (2/2) –

Configuration
Configuration Example
Example
!!
interface
interface ether0.0
ether0.0
ip
ip address
address dhcp
dhcp
!!
dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 3000
3000
port
port 0/0
0/0
!!
!! Voip
Voip peer
peer configuration.
configuration.
!!
dial-peer
dial-peer voice
voice 900
900 voip
voip
destination-pattern
destination-pattern TT
session
session target
target 61.222.180.155
61.222.180.155
……

www.addpac.com VoIP Training Guide 26


IP Network Configuration
- Static IP behind Router (1/2) –

mandatory
mandatory setting
setting
LAN0
LAN0
encapsulation
encapsulation ethernet
ethernet
ip
ip address
address
Default
Default routing
routing
Pots(VoIP)
Pots(VoIP) Peer
Peer
e.164
e.164 related
related configurations
configurations

Optional
Optional setting
setting
LAN
LAN 00
QoS
QoS
LAN
LAN 11
NAT/PAT
NAT/PAT
VoIP
VoIP Network
Network
GK/SIP/MGCP
GK/SIP/MGCP related
related
configurations
configurations

www.addpac.com VoIP Training Guide 27


IP Network Configuration
- Static IP behind Router (2/2) –

Configuration
Configuration Example
Example
!!
interface
interface ether0.0
ether0.0
ip
ip address
address 192.168.126.2
192.168.126.2 255.255.255.0
255.255.255.0
!!
Route
Route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 192.169.126.1
192.169.126.1
!!
dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 3000
3000
port 0/0
port 0/0
!!
!! Voip
Voip peer
peer configuration.
configuration.
!!
dial-peer
dial-peer voice
voice 900
900 voip
voip
destination-pattern
destination-pattern TT
session
session target
target 61.222.180.155
61.222.180.155
……

www.addpac.com VoIP Training Guide 28


IP Network Configuration
- IP Share (1/7) –

mandatory
mandatory setting
setting
LAN0
LAN0
Dynamic
Dynamic Or Or Static
Static IP
IP
LAN
LAN 11
PPPoE/DHCP
PPPoE/DHCP Server
Server
or No IP (Static)
or No IP (Static)
Default
Default routing
routing (Static)
(Static)
IP
IP Share
Share
Default
Default routing
routing
Pots(VoIP)
Pots(VoIP) Peer
Peer
e.164
e.164 related configurations
related configurations

Optional
Optional setting
setting
LAN
LAN 00
QoS
QoS
LAN
LAN 11
NAT/PAT
NAT/PAT can
can not
not be
be
configured
configured
VoIP
VoIP Network
Network
GK/SIP/MGCP
GK/SIP/MGCP related
related
configurations
configurations

www.addpac.com VoIP Training Guide 29


IP Network Configuration
- IP Share (2/7) –

IP Share Configuration Table MAP

Up-Link Interface (LAN 0) Local Interface (LAN 1) Configuration Map


DHCP DHCP (Server) O (1)
DHCP Client
PPPoE (Server) O (2)
Static (No IP) X
PPP DHCP O (3)
PPPoE Client
PPPoE O (4)
Static X
Static DHCP X
PPP X
Static O (5)

www.addpac.com VoIP Training Guide 30


IP Network Configuration
- IP Share (3/7) –

Configuration
Configuration Example
Example 11 (DHCP
(DHCP to
to DHCP)
DHCP)
!!
dhcp-list
dhcp-list 00 address
address server
server interface
interface ether0.0
ether0.0
dhcp-list
dhcp-list 00 option
option dhcp-lease-time
dhcp-lease-time 600
600
!!
ip-share
ip-share enable
enable
ip-share
ip-share interface
interface net-side
net-side ether0.0
ether0.0
ip-share
ip-share interface
interface local-side
local-side ether1.0
ether1.0
!!
interface
interface ether0.0
ether0.0
ip
ip address
address dhcp
dhcp
qos
qos 200
200 150
150
!!
interface
interface ether1.0
ether1.0
no ip address
no ip address
ip
ip dhcp-group
dhcp-group 00
!!

www.addpac.com VoIP Training Guide 31


IP Network Configuration
- IP Share (4/7) –

Configuration
Configuration Example
Example 22 (DHCP
(DHCP to
to PPPoE
PPPoE))
!!
ip-share
ip-share enable
enable
ip-share
ip-share interface
interface net-side
net-side ether0.0
ether0.0
ip-share
ip-share interface local-side ether1.0
interface local-side ether1.0
!!
interface
interface ether0.0
ether0.0
ip
ip address
address dhcp
dhcp
qos 200 150
qos 200 150
!!
interface
interface ether1.0
ether1.0
no
no ip
ip address
address
encapsulation
encapsulation pppoe
pppoe
ppp
ppp authentication pap
authentication pap callin
callin
ppp
ppp pap sent-username addpac password
pap sent-username addpac password test
test
ppp
ppp echo
echo interval
interval 20
20
ppp
ppp ipcp
ipcp ms-dns
ms-dns
ppp ipcp default-route
ppp ipcp default-route
ppp
ppp role
role server
server
!!

www.addpac.com VoIP Training Guide 32


IP Network Configuration
- IP Share (5/7) –

Configuration
Configuration Example
Example 33 ((PPPoE
PPPoE to
to DHCP
DHCP))
!!
dhcp-list
dhcp-list 00 address
address server
server interface
interface ether0.0
ether0.0
dhcp-list
dhcp-list 00 option
option dhcp-lease-time
dhcp-lease-time 600
600
!!
ip-share
ip-share enable
enable
ip-share
ip-share interface
interface net-side
net-side ether0.0
ether0.0
ip-share
ip-share interface
interface local-side
local-side ether1.0
ether1.0
!!
interface
interface ether0.0
ether0.0
no
no ip
ip address
address
encapsulation
encapsulation pppoe
pppoe
ppp
ppp authentication
authentication pap
pap callin
callin
ppp
ppp pap sent-username addpac password
pap sent-username addpac password test
test
ppp echo interval
ppp echo interval 20 20
ppp
ppp ipcp
ipcp ms-dns
ms-dns
ppp
ppp ipcp
ipcp default-route
default-route
qos 200 150
qos 200 150
!!
interface
interface ether1.0
ether1.0
no
no ip
ip address
address
ip
ip dhcp-group
dhcp-group 00
!!
www.addpac.com VoIP Training Guide 33
IP Network Configuration
- IP Share (6/7) –

Configuration
Configuration Example
Example 44 ((PPPoE
PPPoE to
to PPPoE
PPPoE))
ip-share
ip-share enable
enable
ip-share
ip-share interface
interface net-side
net-side ether0.0
ether0.0
ip-share
ip-share interface
interface local-side
local-side ether1.0
ether1.0
!!
interface
interface ether0.0
ether0.0
no
no ip
ip address
address
encapsulation
encapsulation pppoe
pppoe
ppp
ppp authentication pap
authentication pap callin
callin
ppp
ppp pap sent-username addpac password
pap sent-username addpac password test
test
ppp
ppp echo
echo interval
interval 20
20
ppp
ppp ipcp
ipcp ms-dns
ms-dns
ppp
ppp ipcp
ipcp default-route
default-route
qos 200 150
qos 200 150
!!
interface
interface ether1.0
ether1.0
no
no ip
ip address
address
encapsulation
encapsulation pppoe
pppoe
ppp
ppp authentication pap
authentication pap callin
callin
ppp
ppp pap sent-username addpac password
pap sent-username addpac password test
test
ppp
ppp echo
echo interval
interval 20
20
ppp
ppp ipcp
ipcp ms-dns
ms-dns
ppp ipcp default-route
ppp ipcp default-route
ppp
ppp role
role server
server
www.addpac.com VoIP Training Guide 34
IP Network Configuration
- IP Share (7/7) –

Configuration
Configuration Example
Example 55 (Static
(Static to
to Static
Static))
!!
ip-share
ip-share enable
enable
ip-share
ip-share interface
interface net-side
net-side ether0.0
ether0.0
ip-share
ip-share interface local-side ether1.0
interface local-side ether1.0
!!
interface
interface ether0.0
ether0.0
ip
ip address
address 192.168.126.2
192.168.126.2 255.255.255.0
255.255.255.0
!!
interface
interface ether1.0
ether1.0
no
no ip
ip address
address
!!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 192.168.126.1
192.168.126.1
!!

www.addpac.com VoIP Training Guide 35


IP Network Configuration
- NAT/PAT (1/2) –

mandatory
mandatory setting
setting
LAN0
LAN0
Dynamic
Dynamic Or Or Static
Static IP
IP
LAN
LAN 11
Private
Private IP IP
Binding
Binding PAT PAT pool
pool
PAT pool
PAT pool
Default
Default routing
routing (Static)
(Static)
or
or No
No IP
IP (Static)
(Static)
Default
Default routing (Static)
routing (Static)
Default routing
Default routing
Pots(VoIP)
Pots(VoIP) Peer Peer
e.164
e.164 related
related configurations
configurations

Optional
Optional setting
setting
LAN
LAN 00
QoS
QoS
VoIP
VoIP Network
Network
GK/SIP/MGCP
GK/SIP/MGCP related
related
configurations
configurations

www.addpac.com VoIP Training Guide 36


IP Network Configuration
- NAT/PAT (2/2) –

Configuration
Configuration Example
Example
!!
nat-list
nat-list 11 pat
pat static-entry
static-entry tcp
tcp 1720
1720 local
local
nat-list
nat-list 11 pat
pat group-static-entry
group-static-entry udp
udp 22000
22000 30000
30000 local
local
nat-list
nat-list 11 pat
pat group-static-entry
group-static-entry tcp
tcp 10000
10000 22000
22000 local
local
nat-list
nat-list 11 pat
pat static-entry
static-entry tcp
tcp 23
23 local
local
nat-list
nat-list 11 pat
pat group-static-entry
group-static-entry tcp
tcp 20
20 21
21 local
local
nat-list
nat-list 11 pat
pat group-static-entry
group-static-entry udp
udp 67
67 68
68 local
local
nat-list
nat-list 11 pat
pat static-entry
static-entry icmp
icmp ping
ping local
local
!!
interface
interface ether0.0
ether0.0
ip
ip address
address dhcp
dhcp
qos-control
qos-control 200
200 100
100
!!
interface
interface ether1.0
ether1.0
ip
ip address
address 10.1.1.1
10.1.1.1 255.255.255.0
255.255.255.0
ip
ip nat-group
nat-group 11 pat
pat ether0.0
ether0.0
www.addpac.com VoIP Training Guide 37
IP Network Configuration
- Bridge (1/2) –

mandatory
mandatory setting
setting
LAN0
LAN0
IP
IP address
address (Static
(Static IP
IP only)
only)
bridge
bridge
LAN
LAN 11
no
no IP
IP address
address
bridge
bridge
Default
Default routing
routing
no
no ipip routing
routing
No
No Bridge Spanning
Bridge Spanning Tree
Tree
Pots(VoIP) Peer
Pots(VoIP) Peer
e.164
e.164 related
related configurations
configurations

Optional
Optional setting
setting
LAN
LAN 00
QoS
QoS
LAN
LAN 11
NAT/PAT
NAT/PAT can
can not
not be
be
configured
configured
VoIP
VoIP Network
Network
GK/SIP/MGCP
GK/SIP/MGCP related
related
configurations
configurations

www.addpac.com VoIP Training Guide 38


IP Network Configuration
- Bridge (2/2) –

Configuration
Configuration Example
Example
!!
No
No ip
ip routing
routing
interface
interface ether0.0
ether0.0
ip
ip address
address 192.168.126.2
192.168.126.2 255.255.255.0
255.255.255.0
bridge
bridge
!!
interface
interface ether1.0
ether1.0
no ip address
no ip address
bridge
bridge
!!
No
No bridge
bridge spanning
spanning tree
tree
route
route 0.0.0.0 0.0.0.0 192.168.126.1
0.0.0.0 0.0.0.0 192.168.126.1
!!

www.addpac.com VoIP Training Guide 39


IP Network Configuration
- STUN client –

Command
Command
config
config
interface
interface ether
ether 0.0
0.0
ip
ip stun-server 61.33.161.111
stun-server 61.33.161.111
ip
ip stun-server
stun-server retry-time
retry-time 10
10
ip
ip stun-server
stun-server (default
(default == disabled)
disabled)

www.addpac.com VoIP Training Guide 40


VoIP Network Configuration

VoIP
VoIP Network
Network 설정
설정
•• Direct
Direct Call
Call with
with H323/SIP
H323/SIP
•• H323
H323 GK
GK routed
routed Call
Call
•• SIP
SIP Proxy
Proxy routed
routed Call
Call
•• SIP
SIP Related
Related configuration
configuration

www.addpac.com VoIP Training Guide 41


VoIP Network Configuration
- direct Call A(1/3)–

www.addpac.com VoIP Training Guide 42


VoIP Network Configuration
- direct Call A (2/3)–

H323
Head
Head Office
Office Branch
Branch Office
Office A
A
!! !!
hostname
hostname HOHO hostname
hostname AA
interface
interface ether0.0
ether0.0 ether0.0
ether0.0 interface
interface ether0.0
ether0.0
ip
ip address
address 194.168.1.2
194.168.1.2 255.255.255.0
255.255.255.0 ip
ip address
address 193.168.1.2
193.168.1.2 255.255.255.0
255.255.255.0
!! !!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1 route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 193.168.1.1
193.168.1.1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 8425683848
8425683848 destination-pattern
destination-pattern 8325683848
8325683848
port
port 0/0
0/0 port
port 1/0
1/0
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern 8325683848
destination-pattern 8325683848 destination-pattern 82……..
destination-pattern 82……..
session
session target
target 193.168.1.2
193.168.1.2 session
session target
target 192.168.1.2
192.168.1.2
!! !!
dial-peer
dial-peer voice
voice 1001
1001 voip
voip dial-peer
dial-peer voice
voice 1001
1001 voip
voip
destination-pattern
destination-pattern 82T82T destination-pattern
destination-pattern 8425683848
8425683848
session
session target
target 192.168.1.2
192.168.1.2 session
session target
target 194.168.1.2
194.168.1.2

www.addpac.com VoIP Training Guide 43


VoIP Network Configuration
- direct Call A (3/3)–

SIP
Head
Head Office
Office Branch
Branch Office
Office A
A
!! !!
hostname
hostname HOHO hostname
hostname AA
interface
interface ether0.0
ether0.0 interface
interface ether0.0
ether0.0
ip
ip address
address 194.168.1.2
194.168.1.2 255.255.255.0
255.255.255.0 ip
ip address
address 193.168.1.2
193.168.1.2 255.255.255.0
255.255.255.0
!! !!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1 route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 193.168.1.1
193.168.1.1
!! !!
!! Pots
Pots peer
peer configuration.
configuration. !! Pots
Pots peer
peer configuration.
configuration.
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 8425683848
8425683848 destination-pattern
destination-pattern 8325683848
8325683848
port
port 0/0
0/0 port
port 1/0
1/0
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern
destination-pattern 8325683848
8325683848 destination-pattern
destination-pattern 82……..
82……..
session
session target
target 193.168.1.2
193.168.1.2 session
session target
target 192.168.1.2
192.168.1.2
session
session protocol sip
protocol sip session
session protocol sip
protocol sip
dtmf-relay
dtmf-relay rtp-2833
rtp-2833 dtmf-relay
dtmf-relay rtp-2833
rtp-2833

www.addpac.com VoIP Training Guide 44


VoIP Network Configuration
- direct Call B (1/3)–

www.addpac.com VoIP Training Guide 45


VoIP Network Configuration
- direct Call B (2/3)–
H323
Head
Head Office
Office Branch
Branch Office
Office
!! !!
hostname
hostname HOHO hostname
hostname HOHO
interface
interface ether0.0
ether0.0 ether0.0
ether0.0 interface
interface ether0.0
ether0.0 ether0.0
ether0.0
ip
ip address
address 194.168.1.2
194.168.1.2 255.255.255.0
255.255.255.0 ip
ip address
address 192.168.1.2
192.168.1.2 255.255.255.0
255.255.255.0
!! !!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1 route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 100100 destination-pattern
destination-pattern 200200
port
port 0/0
0/0 port
port 0/0
0/0
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 101101 destination-pattern
destination-pattern 201201
port
port 0/1
0/1 port
port 0/1
0/1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 102102 destination-pattern
destination-pattern 202202
port 0/2
port 0/2 port 0/2
port 0/2
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 99 destination-pattern
destination-pattern 88
port
port 1/0
1/0 port
port 1/0
1/0
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 99 destination-pattern
destination-pattern 88
port
port 1/1
1/1 port
port 1/1
1/1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 99 destination-pattern
destination-pattern 88
port
port 1/2
1/2 port
port 1/2
1/2
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern
destination-pattern 2..2.. destination-pattern
destination-pattern 1..1..
session
session target
target 192.168.1.2
192.168.1.2 session
session target
target 194.168.1.2
194.168.1.2
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern
destination-pattern 88 destination-pattern
destination-pattern 99
session
session target
target 192.168.1.2
192.168.1.2 session
session target
target 194.168.1.2
194.168.1.2

www.addpac.com VoIP Training Guide 46


VoIP Network Configuration
- direct Call B (3/3)–
SIP
Head
Head Office
Office Branch
Branch Office
Office
!! !!
hostname
hostname HOHO hostname
hostname HOHO
interface
interface ether0.0
ether0.0 ether0.0
ether0.0 interface
interface ether0.0
ether0.0 ether0.0
ether0.0
ip
ip address
address 194.168.1.2
194.168.1.2 255.255.255.0
255.255.255.0 ip
ip address
address 192.168.1.2
192.168.1.2 255.255.255.0
255.255.255.0
!! !!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1 route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1
!! !!
dial-peer voice 0
dial-peer voice 0 potspots dial-peer voice 0
dial-peer voice 0 potspots
destination-pattern
destination-pattern 100 100 destination-pattern
destination-pattern 200 200
port
port 0/0
0/0 port
port 0/0
0/0
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 101 101 destination-pattern
destination-pattern 201 201
port
port 0/1
0/1 port
port 0/1
0/1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 102 102 destination-pattern
destination-pattern 202 202
port
port 0/2
0/2 port
port 0/2
0/2
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 99 destination-pattern
destination-pattern 88
port
port 1/0
1/0 port
port 1/0
1/0
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 99 destination-pattern
destination-pattern 88
port
port 1/1
1/1 port
port 1/1
1/1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 99 destination-pattern
destination-pattern 88
port
port 1/2
1/2 port
port 1/2
1/2
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern
destination-pattern 2.. 2.. destination-pattern
destination-pattern 1.. 1..
session protocol
session protocol sipsip session protocol
session protocol sipsip
session
session target
target 192.168.1.2
192.168.1.2 session
session target
target 194.168.1.2
194.168.1.2
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern
destination-pattern 88 destination-pattern
destination-pattern 99
session
session protocol
protocol sip
sip session
session protocol
protocol sip
sip
session
session target
target 192.168.1.2
192.168.1.2 session
session target
target 194.168.1.2
194.168.1.2

www.addpac.com VoIP Training Guide 47


VoIP Network Configuration
- H323 GK routed Call (1/2) –

www.addpac.com VoIP Training Guide 48


VoIP Network Configuration
- H323 GK routed Call (2/2) –

Head
Head Office
Office Branch
Branch Office
Office A
A
!! !!
hostname
hostname HOHO hostname
hostname AA
interface
interface ether0.0
ether0.0 interface
interface ether0.0
ether0.0
ip
ip address
address 194.168.1.2
194.168.1.2 255.255.255.0
255.255.255.0 ip
ip address
address 193.168.1.2
193.168.1.2 255.255.255.0
255.255.255.0
!! !!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1 route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 8425683848
8425683848 destination-pattern
destination-pattern 8325683848
8325683848
port
port 0/0
0/0 port
port 1/0
1/0
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern 8325683848
destination-pattern 8325683848 destination-pattern
destination-pattern T T
session
session target
target ras
ras session
session target
target ras
ras
!! !!
gateway
gateway gateway
gateway
h323-id
h323-id addpac-HQ
addpac-HQ h323-id
h323-id addpac-A
addpac-A
gkip
gkip 199.168.1.1
199.168.1.1 1719
1719 128
128 gkip
gkip 199.168.1.1
199.168.1.1 1719
1719 128
128
register
register register
register

www.addpac.com VoIP Training Guide 49


VoIP Network Configuration
- SIP Proxy routed Call (1/2) –

www.addpac.com VoIP Training Guide 50


VoIP Network Configuration
- SIP Proxy routed Call (2/2) –

Head
Head Office
Office Branch
Branch Office
Office A
A
hostname
hostname HOHO hostname
hostname AA
interface
interface ether0.0
ether0.0 interface
interface ether0.0
ether0.0
ip
ip address
address 194.168.1.2
194.168.1.2 255.255.255.0
255.255.255.0 ip
ip address
address 193.168.1.2
193.168.1.2 255.255.255.0
255.255.255.0
!! !!
route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 194.168.1.1
194.168.1.1 route
route 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 193.168.1.1
193.168.1.1
!! !!
dial-peer
dial-peer voice
voice 00 pots
pots dial-peer
dial-peer voice
voice 00 pots
pots
destination-pattern
destination-pattern 8425683848
8425683848 destination-pattern
destination-pattern 8225683848
8225683848
port 0/0
port 0/0 port 0/0
port 0/0
!! !!
dial-peer
dial-peer voice
voice 1000
1000 voip
voip dial-peer
dial-peer voice
voice 1000
1000 voip
voip
destination-pattern
destination-pattern TT destination-pattern
destination-pattern TT
session
session target
target sip-server
sip-server session
session target
target sip-server
sip-server
session
session protocol sip
protocol sip session
session protocol sip
protocol sip
dtmf-relay
dtmf-relay rtp-2833
rtp-2833 dtmf-relay
dtmf-relay rtp-2833
rtp-2833
!! !!
sip-ua
sip-ua sip-ua
sip-ua
sip-username
sip-username 8225683848
8225683848 sip-username
sip-username 8425683848
8425683848
sip-password
sip-password AddPac-HO
AddPac-HO sip-password
sip-password AddPac-A
AddPac-A
sip-server
sip-server 199.168.1.1
199.168.1.1 sip-server
sip-server 199.168.1.1
199.168.1.1
register e164
register e164 register e164
register e164

www.addpac.com VoIP Training Guide 51


VoIP Network Configuration
- SIP Proxy Related Configuration –

www.addpac.com VoIP Training Guide 52


VoIP Network Configuration
- SIP Proxy Related Configuration –
Dial-peer Register(1/2)
Sending
Sending SIP
SIP PDU
PDU toto (( 100.1.1.40:5060
100.1.1.40:5060 )) from
from 5060
5060 Received
Received SIP
SIP PDU
PDU from
from (( 100.100.100.40:5060
100.100.100.40:5060 ))
REGISTER
REGISTER sip:100.1.1.40
sip:100.1.1.40 SIP/2.0
SIP/2.0 SIP/2.0
SIP/2.0 200
200 OK
OK
Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434
Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434 P-Associated-Uri:
P-Associated-Uri: <sip:8225683848@100.1.1.40>
<sip:8225683848@100.1.1.40>
From:
From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
<sip:8225683848@100.1.1.40>;tag=5543002ea4 To:
To: sip:8225683848@100.1.1.40;tag=2ae655e
sip:8225683848@100.1.1.40;tag=2ae655e
To:
To: sip:8225683848@100.1.1.40
sip:8225683848@100.1.1.40 From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
CSeq:
CSeq: 3434 REGISTER
REGISTER CSeq:
CSeq: 3535 REGISTER
REGISTER
Date:
Date: Tue,
Tue, 01
01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT
User-Agent:
User-Agent: AddPac
AddPac SIP
SIP Gateway
Gateway REGISTER
REGISTER sip:100.1.1.40
sip:100.1.1.40 SIP/2.0
SIP/2.0
Contact:
Contact: <sip:8225683848@100.1.1.2>;expires=3600
<sip:8225683848@100.1.1.2>;expires=3600 Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434
Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434
Expires:
Expires: 3600
3600 From:
From: <sip:8225683849@100.1.1.40>;tag=5543002ea4
<sip:8225683849@100.1.1.40>;tag=5543002ea4
Content-Length:
Content-Length: 00 To:
To: sip:8225683848@100.1.1.40
sip:8225683848@100.1.1.40
Max-Forwards:
Max-Forwards: 70 70 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
CSeq:
CSeq: 3434 REGISTER
REGISTER
Received
Received SIP
SIP PDU
PDU from
from (( 100.100.100.40:5060
100.100.100.40:5060 )) Date:
Date: Tue,
Tue, 01
01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT
SIP/2.0
SIP/2.0 401
401 UNAUTHORIZED
UNAUTHORIZED User-Agent:
User-Agent: AddPac
AddPac SIP
SIP Gateway
Gateway
To:
To: sip:8225683848@100.1.1.40;tag=10efb2232
sip:8225683848@100.1.1.40;tag=10efb2232 Contact:
Contact: <sip:8225683848@61.33.161.71>;expires=3600
<sip:8225683848@61.33.161.71>;expires=3600
From:
From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
<sip:8225683848@100.1.1.40>;tag=5543002ea4 Expires:
Expires: 3600
3600
Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71 Content-Length:
Content-Length: 00
CSeq:
CSeq: 3434 REGISTER
REGISTER Max-Forwards:
Max-Forwards: 70 70
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea434
61.33.161.71:5060;branch=z9hG4bK5543002ea434
WWW-Authenticate:
WWW-Authenticate: Digest
Digest realm="100.1.1.40",
realm="100.1.1.40", SIP/2.0
SIP/2.0 401
401 UNAUTHORIZED
UNAUTHORIZED
nonce="33f16bf255ec473dd45911db0d0a9dc1",
nonce="33f16bf255ec473dd45911db0d0a9dc1", algorithm=MD5
algorithm=MD5 To:
To: sip:8225683848@100.1.1.40;tag=10efb2232
sip:8225683848@100.1.1.40;tag=10efb2232
From:
From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
<sip:8225683848@100.1.1.40>;tag=5543002ea4
Sending
Sending SIP
SIP PDU
PDU toto (( 100.1.1.40:5060
100.1.1.40:5060 )) from
from 5060
5060 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
REGISTER
REGISTER sip:registrar.100.1.1.40
sip:registrar.100.1.1.40 SIP/2.0
SIP/2.0 CSeq:
CSeq: 3434 REGISTER
REGISTER
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea435
61.33.161.71:5060;branch=z9hG4bK5543002ea435 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea434
61.33.161.71:5060;branch=z9hG4bK5543002ea434
From:
From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
<sip:8225683848@100.1.1.40>;tag=5543002ea4 WWW-Authenticate:
WWW-Authenticate: Digest
Digest realm="100.1.1.40",
realm="100.1.1.40",
To:
To: sip:8225683848@100.1.1.40
sip:8225683848@100.1.1.40 nonce="33f16bf255ec473dd45911db0d0a9dc1",
nonce="33f16bf255ec473dd45911db0d0a9dc1", algorithm=MD5
algorithm=MD5
Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
CSeq:
CSeq: 3535 REGISTER
REGISTER Sending
Sending SIP
SIP PDU
PDU toto (( 100.1.1.40:5060
100.1.1.40:5060 )) from
from 5060
5060
Date:
Date: Tue,
Tue, 01
01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT REGISTER
REGISTER sip:registrar.100.1.1.40
sip:registrar.100.1.1.40 SIP/2.0
SIP/2.0
User-Agent:
User-Agent: AddPac
AddPac SIP SIP Gateway
Gateway Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea435
61.33.161.71:5060;branch=z9hG4bK5543002ea435
Authorization:
Authorization: Digest
Digest username=“addpac1",
username=“addpac1", realm="100.1.1.40",
realm="100.1.1.40", From:
From: <sip:8225683848@100.1.1.40>;tag=5543002ea4
<sip:8225683848@100.1.1.40>;tag=5543002ea4
nonce="33f16bf255ec473dd45911db0d0a9dc1",
nonce="33f16bf255ec473dd45911db0d0a9dc1", uri=".100.1.1.40",
uri=".100.1.1.40", respon
respon To:
To: sip:8225683848@100.1.1.40
sip:8225683848@100.1.1.40
se="8b72ee2edd93765a8b6ae8896fcb4136",
se="8b72ee2edd93765a8b6ae8896fcb4136", algorithm=MD5
algorithm=MD5 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
Contact: <sip:8225683848@100.1.1.2>;expires=3600
Contact: <sip:8225683848@100.1.1.2>;expires=3600 CSeq:
CSeq: 3535 REGISTER
REGISTER
Expires:
Expires: 3600
3600 Date:
Date: Tue, 01
Tue, 01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT
Content-Length:
Content-Length: 00 User-Agent:
User-Agent: AddPac
AddPac SIP SIP Gateway
Gateway
Max-Forwards:
Max-Forwards: 70 70 Authorization:
Authorization: Digest
Digest username=“addpac2",
username=“addpac2", realm="100.1.1.40",
realm="100.1.1.40",

www.addpac.com VoIP Training Guide 53


VoIP Network Configuration
- SIP Proxy Related Configuration –
user Register(1/2)

www.addpac.com VoIP Training Guide 54


VoIP Network Configuration
- SIP Proxy Related Configuration –
user Register(2/2)
Sending
Sending SIP
SIP PDU
PDU to
to (( 100.1.1.40:5060
100.1.1.40:5060 )) from
from 5060
5060 Received
Received SIP
SIP PDU
PDU from
from (( 100.100.100.40:5060
100.100.100.40:5060 ))
REGISTER
REGISTER sip:100.1.1.40
sip:100.1.1.40 SIP/2.0
SIP/2.0 SIP/2.0
SIP/2.0 200
200 OK
OK
Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434
Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434 P-Associated-Uri:
P-Associated-Uri: <sip:8225683848@100.1.1.40>
<sip:8225683848@100.1.1.40>
From:
From: <sip:addpac1@100.1.1.40>;tag=5543002ea4
<sip:addpac1@100.1.1.40>;tag=5543002ea4 To:
To: sip:
sip: addpac1
addpac1 @100.1.1.40;tag=2ae655e
@100.1.1.40;tag=2ae655e
To:
To: sip:addpac1@100.1.1.40
sip:addpac1@100.1.1.40 From:
From: <sip: addpac1 @100.1.1.40>;tag=5543002ea4
<sip: addpac1 @100.1.1.40>;tag=5543002ea4
Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
CSeq:
CSeq: 3434 REGISTER
REGISTER CSeq:
CSeq: 3535 REGISTER
REGISTER
Date:
Date: Tue,
Tue, 01
01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT
User-Agent:
User-Agent: AddPac
AddPac SIP
SIP Gateway
Gateway REGISTER
REGISTER sip:100.1.1.40
sip:100.1.1.40 SIP/2.0
SIP/2.0
Contact:
Contact: <sip:
<sip: addpac1
addpac1 @100.1.1.2>;expires=3600
@100.1.1.2>;expires=3600 Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434
Via:SIP/2.0/100.100.100.1:5060;branch=z9hG4bK5543002ea434
Expires:
Expires: 3600
3600 From:
From: <sip:
<sip: addpac1
addpac1 @100.1.1.40>;tag=5543002ea4
@100.1.1.40>;tag=5543002ea4
Content-Length:
Content-Length: 0 0 To:
To: sip:
sip: addpac1
addpac1 @100.1.1.40
@100.1.1.40
Max-Forwards:
Max-Forwards: 70 70 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
CSeq:
CSeq: 3434 REGISTER
REGISTER
Received
Received SIP
SIP PDU
PDU from
from (( 100.100.100.40:5060
100.100.100.40:5060 )) Date:
Date: Tue,
Tue, 01
01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT
SIP/2.0
SIP/2.0 401
401 UNAUTHORIZED
UNAUTHORIZED User-Agent:
User-Agent: AddPac
AddPac SIP
SIP Gateway
Gateway
To:
To: sip:
sip: addpac1
addpac1 @100.1.1.40;tag=10efb2232
@100.1.1.40;tag=10efb2232 Contact:
Contact: <sip:
<sip: addpac2
addpac2 @61.33.161.71>;expires=3600
@61.33.161.71>;expires=3600
From:
From: <sip:
<sip: addpac1
addpac1 @100.1.1.40>;tag=5543002ea4
@100.1.1.40>;tag=5543002ea4 Expires:
Expires: 3600
3600
Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71 Content-Length:
Content-Length: 00
CSeq:
CSeq: 3434 REGISTER
REGISTER Max-Forwards:
Max-Forwards: 70 70
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea434
61.33.161.71:5060;branch=z9hG4bK5543002ea434
WWW-Authenticate:
WWW-Authenticate: Digest
Digest realm="100.1.1.40",
realm="100.1.1.40", SIP/2.0
SIP/2.0 401
401 UNAUTHORIZED
UNAUTHORIZED
nonce="33f16bf255ec473dd45911db0d0a9dc1",
nonce="33f16bf255ec473dd45911db0d0a9dc1", algorithm=MD5
algorithm=MD5 To:
To: sip:
sip: addpac2
addpac2 @100.1.1.40;tag=10efb2232
@100.1.1.40;tag=10efb2232
From:
From: <sip:
<sip: addpac2
addpac2 @100.1.1.40>;tag=5543002ea4
@100.1.1.40>;tag=5543002ea4
Sending
Sending SIPSIP PDU
PDU toto (( 100.1.1.40:5060
100.1.1.40:5060 )) from
from 5060
5060 Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
REGISTER
REGISTER sip:registrar.100.1.1.40
sip:registrar.100.1.1.40 SIP/2.0
SIP/2.0 CSeq:
CSeq: 3434 REGISTER
REGISTER
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea435
61.33.161.71:5060;branch=z9hG4bK5543002ea435 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea434
61.33.161.71:5060;branch=z9hG4bK5543002ea434
From:
From: <sip:
<sip: addpac1
addpac1 @100.1.1.40>;tag=5543002ea4
@100.1.1.40>;tag=5543002ea4 WWW-Authenticate:
WWW-Authenticate: Digest
Digest realm="100.1.1.40",
realm="100.1.1.40",
To:
To: sip:
sip: addpac1
addpac1 @100.1.1.40
@100.1.1.40 nonce="33f16bf255ec473dd45911db0d0a9dc1",
nonce="33f16bf255ec473dd45911db0d0a9dc1", algorithm=MD5
algorithm=MD5
Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
CSeq:
CSeq: 3535 REGISTER
REGISTER Sending
Sending SIP
SIP PDU
PDU to
to (( 100.1.1.40:5060
100.1.1.40:5060 )) from
from 5060
5060
Date:
Date: Tue,
Tue, 0101 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT REGISTER
REGISTER sip:registrar.100.1.1.40
sip:registrar.100.1.1.40 SIP/2.0
SIP/2.0
User-Agent:
User-Agent: AddPac
AddPac SIPSIP Gateway
Gateway Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 61.33.161.71:5060;branch=z9hG4bK5543002ea435
61.33.161.71:5060;branch=z9hG4bK5543002ea435
Authorization:
Authorization: Digest
Digest username=“addpac1",
username=“addpac1", realm="100.1.1.40",
realm="100.1.1.40", From:
From: <sip:
<sip: addpac2
addpac2 @100.1.1.40>;tag=5543002ea4
@100.1.1.40>;tag=5543002ea4
nonce="33f16bf255ec473dd45911db0d0a9dc1",
nonce="33f16bf255ec473dd45911db0d0a9dc1", uri=".100.1.1.40",
uri=".100.1.1.40", respon
respon To:
To: sip:
sip: addpac2
addpac2 @100.1.1.40
@100.1.1.40
se="8b72ee2edd93765a8b6ae8896fcb4136",
se="8b72ee2edd93765a8b6ae8896fcb4136", algorithm=MD5algorithm=MD5 Call-ID:
Call-ID: 55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
55416743-90fe-0077-802e-0002a4ffffea@61.33.161.71
Contact: <sip: addpac1 @100.1.1.2>;expires=3600
Contact: <sip: addpac1 @100.1.1.2>;expires=3600 CSeq:
CSeq: 3535 REGISTER
REGISTER
Expires:
Expires: 3600
3600 Date:
Date: Tue, 01
Tue, 01 Nov
Nov 2005
2005 16:20:37
16:20:37 GMT
GMT
Content-Length:
Content-Length: 00 User-Agent:
User-Agent: AddPac
AddPac SIPSIP Gateway
Gateway
Max-Forwards:
Max-Forwards: 70 70 Authorization:
Authorization: Digest
Digest username=“addpac2",
username=“addpac2", realm="100.1.1.40",
realm="100.1.1.40",

www.addpac.com VoIP Training Guide 55


VoIP Network Configuration
- SIP Proxy Related Configuration –
Media-channel early

www.addpac.com VoIP Training Guide 56


VoIP Network Configuration
- SIP Proxy Related Configuration –
Timer Related command
Set
Set
(config-sip-ua)#
(config-sip-ua)# timeout
timeout ??
texpires
texpires set
set SIP
SIP INVITE
INVITE request
request timeout
timeout value
value (sec)
(sec)
treg
treg set
set SIP
SIP REGISTER
REGISTER timeout
timeout value
value (sec)
(sec)
tregtry
tregtry set
set SIP
SIP REGISTER
REGISTER retry
retry timeout
timeout value
value (sec)
(sec)
tretry
tretry set
set SIP
SIP retry
retry timeout
timeout value
value (msec)
(msec)
tsipping
tsipping set
set SIP
SIP PING
PING timer
timer

confirm
confirm
(config-sip-ua)#
(config-sip-ua)# show
show sip
sip
Proxyserver
Proxyserver Registration
Registration Information
Information
proxyserver
proxyserver registration
registration option
option == e164
e164
Proxyserver
Proxyserver list
list ::
---------------------------------------------------------------
---------------------------------------------------------------
Server
Server address
address Port
Port Priority
Priority Status
Status
---------------------------------------------------------------
---------------------------------------------------------------
100.1.1.40
100.1.1.40 5060
5060 128
128 Trying
Trying
Proxyserver
Proxyserver registration
registration status
status ::
------------------------------------------------
------------------------------------------------ Registration
Registration Status
Status
UserName
UserName Regist
Regist Status
Status
------------------------------------------------
------------------------------------------------
addpac1
addpac1 yes
yes Trying
Trying
addpac2
addpac2 yes
yes Not
Not Registered
Registered
SIP UA Timer counters
SIP UA Timer counters
retry
retry counter
counter == 10
10
SIP
SIP UA
UA Timer
Timer values
values
tretry
tretry (sip
(sip retry
retry timer)
timer) == 500
500 msec.
msec.
treg
treg (sip
(sip register
register timer)
timer) == 60
60 sec.
sec. Activated
Activated Timer
Timer parameter
parameter
tregtry
tregtry (sip
(sip register
register retry
retry timer)
timer) == 20
20 sec.
sec.
texpires
texpires (sip invite expire timer) == 180
(sip invite expire timer) 180 sec.
sec.
tsipping
tsipping (sip
(sip ping
ping timer)
timer) == 30
30 sec.
sec.
SIP
SIP UA
UA MIN-SE
MIN-SE value
value
Min-SE
Min-SE == 1800
1800 sec.
sec.

www.addpac.com VoIP Training Guide 57


VoIP Network Configuration
- SIP Proxy Related Configuration –
Signaling-port/session target <sip-port>

REGISTER
Sending
Sending SIP
SIP PDU
REGISTER sip:100.1.1.40
PDU toto (( 100.1.1.40:3000
sip:100.1.1.40 SIP/2.0
100.1.1.40:3000 )) from
SIP/2.0
from 2000
2000 Caution
Caution
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 100.1.1.2:2000;branch=z9hG4bK3e43f100a415
From:
100.1.1.2:2000;branch=z9hG4bK3e43f100a415 This
This command
command isis needed system reboot”
needed ““system reboot”
reboot”
From: <sip:addpac1@100.1.1.40>;tag=3e43f100a4
<sip:addpac1@100.1.1.40>;tag=3e43f100a4
To:
To: sip:addpac1@100.1.1.40
sip:addpac1@100.1.1.40
Call-ID: So
So configure
configure then
then write
write and
and reboot.
reboot.
Call-ID: 3efd6843-e91e-f167-8000-0002a4ffd0c0@61.33.161.72
3efd6843-e91e-f167-8000-0002a4ffd0c0@61.33.161.72
CSeq:
CSeq: 1515 REGISTER
REGISTER
Date:
Date: Wed,
Wed, 0202 Nov
Nov 2005
2005 18:06:14
18:06:14 GMT
GMT
User-Agent:
User-Agent: AddPac
AddPac SIP
SIP Gateway
Gateway
Contact:
Contact: <sip:addpac1@100.1.1.2:2000>;expires=60
<sip:addpac1@100.1.1.2:2000>;expires=60
Expires:
Expires: 6060
Content-Length:
Content-Length: 00
Max-Forwards:
Max-Forwards: 70 70

www.addpac.com VoIP Training Guide 58


VoIP Network Configuration
- SIP Proxy Related Configuration –
Response < alert | default | progress >

www.addpac.com VoIP Training Guide 59


VoIP Network Configuration
- SIP Proxy Related Configuration –
Blind Call Transfer by re-invite

www.addpac.com VoIP Training Guide 60


VoIP Network Configuration
- SIP Proxy Related Configuration –
Attended Call Transfer by re-invite

www.addpac.com VoIP Training Guide 61


VoIP Network Configuration
- SIP Proxy Related Configuration –
Call hold by re-invite

www.addpac.com VoIP Training Guide 62


Voice Interface Configuration

Voice
Voice Interface
Interface Configuration
Configuration
•• Common
Common
gain
gain
CNG
CNG (Comfort
(Comfort Noise
Noise Generation)
Generation)
DTMF gain
DTMF gain
PLAR
PLAR (Private
(Private Line
Line Auto
Auto Ring-down)
Ring-down)
•• FXS/FXO
FXS/FXO
Pin
Pin Assignment
Assignment
Ring
Ring Cadence/Frequency
Cadence/Frequency
Polarity
Polarity Inverse
Inverse Detect/Generation
Detect/Generation
Caller ID Detect/Generation
Caller ID Detect/Generation
•• E&M
E&M
Pin
Pin Assignment
Assignment E1/T1
E1/T1

•• E1/T1
E1/T1
Pin
Pin Assignment
Assignment

www.addpac.com VoIP Training Guide 63


Voice Interface Configuration
- Common (1/4) –

Gain

www.addpac.com VoIP Training Guide 64


Voice Interface Configuration
- Common (2/4) –

Comfort Nose Generation

www.addpac.com VoIP Training Guide 65


Voice Interface Configuration
- Common (3/4) –

DTMF-gain

www.addpac.com VoIP Training Guide 66


Voice Interface Configuration
- Common (4/4) –

PLAR(Private Line Auto Ring-down)

www.addpac.com VoIP Training Guide 67


Voice Interface Configuration
- FXS/FXO (1/3) –

Ring cadence/frequency (FXS only)

www.addpac.com VoIP Training Guide 68


Voice Interface Configuration
- FXS/FXO (2/3) –

Polarity Inverse detect (FXO) / Generation (FXS)

www.addpac.com VoIP Training Guide 69


Voice Interface Configuration
- FXS/FXO (3/3) –

Caller ID detect (FXO) / Generation (FXS)

www.addpac.com VoIP Training Guide 70


Voice Interface Configuration
- E1/T1 –
E1/T1 Related Command

ISDN -PRI
ISDN-PRI R2/DTMF
R2/DTMF
!! !!
controller
controller e1(t1)
e1(t1) 0/0
0/0 controller
controller e1(t1)
e1(t1) 0/0
0/0
signalling-type
signalling-type isdn
isdn signalling-type
signalling-type <r2
<r2 || dtmf>
dtmf>
channel-group
channel-group timeslots
timeslots <1-31>
<1-31> <0-?>
<0-?> channel-group
channel-group timeslots
timeslots <1-31>
<1-31> <0-?>
<0-?>
isdn protocol-emulate <network|user>
isdn protocol-emulate <network|user> R2 get callid <R2 MFC only>
R2 get callid <R2 MFC only>
Out-boddle
Out-boddle Out-boddle
Out-boddle

!! !!
voice-port
voice-port 0/0
0/0 voice-port
voice-port 0/0
0/0
!! E1(t1)
E1(t1) !! E1(t1)
E1(t1)
compand-type
compand-type u-law
u-law compand-type
compand-type u-law
u-law
!! !!
….
…. ….
….
….
…. ….
….
HO#
HO# show
show controller
controller 0/0
0/0 HO#
HO# show
show controller
controller 0/0
0/0
Controller
Controller E1
E1 slot(0)/port(0)
slot(0)/port(0) Controller
Controller T1
T1 slot(0)/port(0)
slot(0)/port(0)
T1
T1 Link
Link is
is UP
UP T1
T1 Link
Link is
is UP
UP
No
No Alarm detected.
Alarm detected. No
No Alarm detected.
Alarm detected.
Applique
Applique type
type is
is Channelized
Channelized Applique
Applique type
type is
is Channelized
Channelized
…………..
………….. …………..
…………..
……….
………. ……….
……….

www.addpac.com VoIP Training Guide 71


Chapter 2 Basic and Advanced Configuration

VoIP
VoIP gateway
gateway Tuning
Tuning
•• Trunk
Trunk Gateway
Gateway Redundancy
Redundancy (RAI)
(RAI)
•• Policy
Policy for
for poor
poor VoIP
VoIP network
network
•• Number
Number Plan
Plan
•• PSTN
PSTN Backup
Backup by
by busyout
busyout
•• number
number Translation
Translation
•• The
The solution
solution for
for FXO
FXO Port
Port block
block

www.addpac.com VoIP Training Guide 72


Basic and Advanced Configuration
- Trunk Gateway Redundancy Policy(1/2) –
Through GK
GK
GK Operation
Operation Policy
Policy
1.
1. divide
divide call
call traffic
traffic to
to
Gateway
Gateway A and B with 50:50
A and B with 50:50
2.
2. Operate
Operate Gateway
Gateway A A as
as
primary,
primary,
B
B as
as backup
backup

www.addpac.com VoIP Training Guide 73


Basic and Advanced Configuration
- Trunk Gateway Redundancy Policy(2/2) –
Traffic dispersion

www.addpac.com VoIP Training Guide 74


Basic and Advanced Configuration
- Policy for poor VoIP Network (1/2) –
Gateway 내부 QoS Packet
Packet Loss
Loss
Redundant
Redundant RTP
RTP

Transmit delay
Transmit delay
Max-frams
Max-frams

Priority
Priority Control
Control
qos-control
qos-control

www.addpac.com VoIP Training Guide 75


Basic and Advanced Configuration
- Policy for poor VoIP Network (2/2) –
VLAN/IP-TOS Field Tagging

www.addpac.com VoIP Training Guide 76


Basic and Advanced Configuration
- Number Plan (1/2) –
Private VoIP telepony Network

www.addpac.com VoIP Training Guide 77


Basic and Advanced Configuration
- Number Plan (2/2) –
Call Re-routing by Dial-peer Hunting

www.addpac.com VoIP Training Guide 78


Basic and Advanced Configuration
- PSTN backup by busyout –

www.addpac.com VoIP Training Guide 79


Basic and Advanced Configuration
- number Translation –

www.addpac.com VoIP Training Guide 80


Basic and Advanced Configuration
- The Solution for FXO port block (1/4) –
Clear Call by Clear down-tone frequency detect

www.addpac.com VoIP Training Guide 81


Basic and Advanced Configuration
- The Solution for FXO port block (2/4) –
Clear Call by clear down-tone energy level detect(1/2)

www.addpac.com VoIP Training Guide 82


Basic and Advanced Configuration
- The Solution for FXO port block (3/4) –
Clear Call by clear down-tone energy level detect(2/2)

www.addpac.com VoIP Training Guide 83


Basic and Advanced Configuration
- The Solution for FXO port block (4/4) –
Clear Call by silence Tone detect

www.addpac.com VoIP Training Guide 84


Chapter 3 Trouble Shooting

Trouble
Trouble Shooting
Shooting
•• Trace
Trace Flow
Flow
•• Debugging
Debugging Command
Command
•• Call
Call Trace
Trace

www.addpac.com VoIP Training Guide 85


Trouble Shooting
- VoIP Network or GK (1/3) –
FXO or PSTN backup after playing announcement about Internet fail or signal

www.addpac.com VoIP Training Guide 86


Trouble Shooting
- VoIP Network or GK (2/3) –
Specific number call fail

www.addpac.com VoIP Training Guide 87


Trouble Shooting
- VoIP Network or GK (3/3) –
Call Setup miss-operation or abnormal call clear

www.addpac.com VoIP Training Guide 88


Trouble Shooting
- DTMF Relay or detect –

www.addpac.com VoIP Training Guide 89


Trouble Shooting
- Voice Quality –

www.addpac.com VoIP Training Guide 90


Debugging Command
Message
Message display
display control
control
config)#
config)# debug-port
debug-port

Usage
Usage
AP200#
AP200# debug
debug voip
voip call
call
AP200#
AP200# config
config
Enter
Enter configuration
configuration commands,
commands,
one
one per line.
per line. End
End with
with CNTL/Z
CNTL/Z
AP200(config)#
AP200(config)# debug-port
debug-port
AP200(config)#
AP200(config)# 44 <CEP
<CEP
000000> : Call Received
000000> : Call Received
55 <CEP
<CEP 000000>
000000> :: Call
Call
Initiated
Initiated :: calledNumber()
calledNumber()
callerInfo()
callerInfo() crv(0)
crv(0) total(0)
total(0)
66 <Call
<Call 286> ::
286>
******************
****************** Call
Call Created
Created
status(InitiatedByFXS)
status(InitiatedByFXS)
******************
******************
**
77 <CEP
<CEP 000000>
000000> :: Call
Call
id(cc47e640-6a2b-67ca-8183-
id(cc47e640-6a2b-67ca-8183-
0002a400380d)
0002a400380d) callNum(286)
callNum(286)
88 <Call 286>
<Call 286>

www.addpac.com VoIP Training Guide 91


call Trace
- RAS brief/detail (1/2)–

AP200#
AP200# AP200#
AP200# debugdebug voip
voip ras
ras
AP200#
AP200# debug
debug voip
voip call
call AP200(config-gateway)#
AP200(config-gateway)# regis regis
AP200(config-gateway)#
AP200(config-gateway)# registerregister <>
<> PDU
PDU Encoding
Encoding ...
...
66 <GK
<GK 0> 0> :: Try
Try registration
registration to
to All
All candidated
candidated GKs
GKs exclude()
exclude() exclusi
exclusi value
value RasMessage
RasMessage ::= ::= registrationRequest
registrationRequest ::
ve()
ve() {{
77 <Gk
<Gk 0> 0> :: Try
Try registration
registration to
to gk
gk host(172.19.1.248)
host(172.19.1.248) port(1719)
port(1719) requestSeqNum
requestSeqNum 1, 1,
88 <GK
<GK 0> 0> :: Send
Send RRQ.
RRQ. protocolIdentifier
protocolIdentifier {{ 00 00 88 2250
2250 00 22 },
},
AP200(config-gateway)#
AP200(config-gateway)# 99 <GK
<GK 0> 0> :: Received
Received RCF
RCF from
from 'addpa
'addpa discoveryComplete FALSE,
discoveryComplete FALSE,
c-private-gk1'.
c-private-gk1'. callSignalAddress
callSignalAddress
10
10 <GK
<GK 0> 0> :: Success
Success registration
registration to
to GKGK host(172.19.1.248)
host(172.19.1.248) port
port {{
(1719)
(1719) ipAddress
ipAddress ::
{{
ip
ip 'AC1301C8'H,
'AC1301C8'H,
port
port 1720
1720
}}
},
},
rasAddress
rasAddress
{{
ipAddress
ipAddress ::
{{
ip
ip 'AC1301C8'H,
'AC1301C8'H,
port
port 22000
22000
}}
},
},
terminalType
terminalType
{{
gateway
gateway
{{
},
},
mc
mc FALSE,
FALSE,

www.addpac.com VoIP Training Guide 92


call Trace
- RAS brief/detail (2/2)–

undefinedNode
undefinedNode FALSE FALSE AP200(config-gateway)#
AP200(config-gateway)# <> <> RasMessage
RasMessage Decoding
Decoding ...
... -- Buffer(size:119)
Buffer(size:119)
},
}, value
value RasMessage
RasMessage ::= ::= registrationConfirm
registrationConfirm ::
terminalAlias
terminalAlias {{
{{ requestSeqNum
requestSeqNum 1, 1,
h323-ID
h323-ID :: "jykim-2000",
"jykim-2000", protocolIdentifier
protocolIdentifier {{ 00 00 88 2250
2250 00 22 },
},
e164
e164 :: "2000"
"2000" callSignalAddress
callSignalAddress
},
}, {{
endpointVendor
endpointVendor ipAddress
ipAddress ::
{{ {{
vendor
vendor ip
ip 'AC1301C8'H,
'AC1301C8'H,
{{ port
port 1720
1720
t35CountryCode
t35CountryCode 97, 97, }}
t35Extension
t35Extension 0, 0, },
},
manufacturerCode
manufacturerCode 22 22 terminalAlias
terminalAlias
},
}, {{
productId
productId '41646450616320566F4950'H,
'41646450616320566F4950'H, h323-ID
h323-ID :: "jykim-2000",
"jykim-2000",
versionId
versionId '382E3130'H
'382E3130'H e164
e164 :: "2000"
"2000"
},
}, },
},
timeToLive
timeToLive 60,60, gatekeeperIdentifier
gatekeeperIdentifier "addpac-private-gk1",
"addpac-private-gk1",
keepAlive
keepAlive FALSE,
FALSE, endpointIdentifier
endpointIdentifier "40ae783c000081",
"40ae783c000081",
willSupplyUUIEs
willSupplyUUIEs FALSE FALSE timeToLive
timeToLive 60,60,
}} willRespondToIRR
willRespondToIRR FALSE FALSE
1088942155
1088942155 :: Sending
Sending RAS
RAS PDU
PDU to to (172.19.1.248:1719)
(172.19.1.248:1719) fromfrom 22000
22000 }}
0e 80 00 00 06 00 08 91 4a 00 02 00 01 00 ac 13 ........J.......
0e 80 00 00 06 00 08 91 4a 00 02 00 01 00 ac 13 ........J....... 1088942155
1088942155 :: Received
Received RAS
RAS PDU
PDU from
from (172.19.1.248:1719)
(172.19.1.248:1719)
01
01 c8c8 06
06 b8
b8 0101 00
00 ac
ac 13
13 01
01 c8
c8 55
55 f0f0 08
08 00
00 02
02 40
40 ..........U....@
..........U....@ 12
12 c0c0 00
00 00
00 06
06 00
00 08
08 91
91 4a
4a 00
00 02
02 0101 00
00 ac
ac 13
13 01
01 ........J.......
........J.......
09
09 0000 6a
6a 00
00 79
79 00
00 6b
6b 00
00 69
69 00
00 6d
6d 0000 2d
2d 00
00 32
32 00
00 ..j.y.k.i.m.-.2.
..j.y.k.i.m.-.2. c8
c8 0606 b8
b8 02
02 40
40 09
09 00
00 6a
6a 00
00 79
79 00
00 6b6b 00
00 69
69 00
00 6d
6d ....@..j.y.k.i.m
....@..j.y.k.i.m
30
30 0000 30
30 00
00 30
30 01
01 80
80 53
53 33
33 60
60 61
61 0000 00
00 16
16 0a
0a 41
41 0.0.0..S3`a....A
0.0.0..S3`a....A 00
00 2d2d 00
00 32
32 00
00 30
30 00
00 30
30 00
00 30
30 01
01 80
80 53
53 33
33 22
22 00
00 .-.2.0.0.0..S3".
.-.2.0.0.0..S3".
64
64 6464 50
50 61
61 63
63 20
20 56
56 6f
6f 49
49 50
50 03
03 38
38 2e
2e 31
31 30
30 0e
0e ddPac
ddPac VoIP.8.10.
VoIP.8.10. 61
61 0000 64
64 00
00 64
64 00
00 70
70 00
00 61
61 00
00 63
63 0000 2d
2d 00
00 70
70 00
00 a.d.d.p.a.c.-.p.
a.d.d.p.a.c.-.p.
8a
8a 02
02 00
00 3b
3b 01
01 00
00 01
01 00
00 72
72 0000 69
69 00
00 76
76 00
00 61
61 00
00 74
74 00
00 65
65 0000 2d
2d 00
00 67
67 00
00 r.i.v.a.t.e.-.g.
r.i.v.a.t.e.-.g.
...;....
...;.... ....;..
....;..

www.addpac.com VoIP Training Guide 93


call Trace
- H323 Call Setup brief (1/2)–

AP200#
AP200# debug
debug voip
voip call
call 16
16 <Chan
<Chan 346>
346> :: Open
Open -- number(101)
number(101) direction(receive)
direction(receive)
AP200#
AP200# 11 <CEP
<CEP 000000>
000000> :: Call Call Received
Received session(voice)
session(voice) codec(g7231A-6.3k)
codec(g7231A-6.3k)
22 <CEP
<CEP 000000>
000000> :: Call
Call Initiated
Initiated :: calledNumber()
calledNumber() callerInfo()
callerInfo() crv(0)
crv(0) -- Local
Local :: Data(23002)
Data(23002) Cont(23003)
Cont(23003) Addr(172.19.1.200)
Addr(172.19.1.200)
total(0)
total(0) -- Remote
Remote : Data(23900) Cont(23901)
: Data(23900) Cont(23901)
33 <Call
<Call 346>
346> :: ******************
****************** Call Call Created
Created DataAddr(172.19.1.250)
DataAddr(172.19.1.250) ContAddr(172.19.1
ContAddr(172.19.1
status(InitiatedByFXS)
status(InitiatedByFXS) ******************
****************** .250)
.250)
** 17
17 <Q931
<Q931 346>346> :: Received
Received PROGRESS
PROGRESS
44 <CEP
<CEP 000000>
000000> :: Call
Call id(50f3e740-9c8f-bbcc-81cb-0002a400380d)
id(50f3e740-9c8f-bbcc-81cb-0002a400380d) 18
18 <Q931
<Q931 346> : Received Progress
346> : Received Progress Indicator
Indicator :: desc(8),
desc(8), coding(0),
coding(0),
callNum(346)
callNum(346) location(0)
location(0)
55 <Call
<Call 346>
346> :: MatchAllProcess
MatchAllProcess After After Sorted
Sorted 19
19 <H245
<H245 346>
346> :: Send
Send TCSTCS request.
request.
<0>
<0> id(4000) dest(....) prefer(0)
id(4000) dest(....) prefer(0) selected(120)
selected(120) 20
20 <Q931 346> : Send
<Q931 346> : Send FACILITYFACILITY
<1>
<1> id(1000)
id(1000) dest(T)
dest(T) prefer(0)
prefer(0) selected(109)
selected(109) 21
21 <H245
<H245 346>
346> :: Send
Send MSDMSD request.
request.
66 <Call
<Call 346>
346> :: Initiate
Initiate callee
callee with
with dial-peer(....)
dial-peer(....) 22
22 <Q931 346> : Send
<Q931 346> : Send FACILITYFACILITY
status(CalleeDeterminedAll)
status(CalleeDeterminedAll) id(50f3e74
id(50f3e74 23
23 <Call
<Call 346>
346> :: Progress
Progress from(ffffffff)
from(ffffffff)
0-9c8f-bbcc-81cb-0002a400380d)
0-9c8f-bbcc-81cb-0002a400380d) 24
24 <Q931
<Q931 346>346> :: Received
Received CONNECT
CONNECT
77 <NetEP
<NetEP 346>
346> :: InitiateOutCall:
InitiateOutCall: calledNum(#2000)
calledNum(#2000) callingNum(2000)
callingNum(2000) 25
25 <H225
<H225 346>
346> :: Remote
Remote Endpoint
Endpoint (AddPac
(AddPac VoIP,8.00,97,0,22)
VoIP,8.00,97,0,22)
target(ras)
target(ras) 26 <Call
26 <Call 346>
346> :: Connected
Connected from(ffffffff)
from(ffffffff)
88 <NetEP
<NetEP 346>
346> :: DoCall:
DoCall: calledAddr(#2000@)
calledAddr(#2000@) callingAddr(2000)
callingAddr(2000) 27 <NetEP
27 <NetEP 346>
346> :: Call
Call with
with voip.172.19.1.250
voip.172.19.1.250 established
established
99 <GK
<GK 346> : Send
346> : Send ARQ. ARQ. 28 <Chan
28 <Chan 346> : Open - number(101) direction(transmit)
346> : Open - number(101) direction(transmit)
10
10 <GK
<GK 346> 346> :: Received
Received ACF. ACF. session(voice)
session(voice) codec(g7231A-6.3k)
codec(g7231A-6.3k)
11
11 <H225
<H225 346> : Try
346> : Try signalling
signalling TCP
TCP connect
connect (172.19.1.250:1720)
(172.19.1.250:1720) -- Local
Local :: Data(23002)
Data(23002) Cont(23003)
Cont(23003) Addr(172.19.1.200)
Addr(172.19.1.200)
12
12 <H225
<H225 346>346> :: Signalling
Signalling TCP TCP connect
connect success
success (346)
(346) -- Remote
Remote :: Data(23900)
Data(23900) Cont(23901)
Cont(23901)
13
13 <H323
<H323 346>346> :: local
local capabilities.
capabilities. DataAddr(172.19.1.250)
DataAddr(172.19.1.250) ContAddr(172.19.1
ContAddr(172.19.1
number
number of of capabilities
capabilities == 55 .250)
.250)
11 :: g7231A-6.3k
g7231A-6.3k 29
29 <Q931
<Q931 346>
346> :: Received
Received FACILITY
FACILITY
22 :: g729-8k
g729-8k 30
30 <H245
<H245 346>
346> :: Received
Received TCS
TCS request.
request.
33 :: T.38
T.38
44 :: UserInput/basicString
UserInput/basicString
55 :: UserInput/hookflash
UserInput/hookflash
14
14 <Q931
<Q931 346>346> :: SendSend SETUP
SETUP
15
15 <Q931
<Q931 346>346> :: Received
Received CALL CALL PROCEEDING
PROCEEDING

www.addpac.com VoIP Training Guide 94


call Trace
- H323 Call Setup brief (2/2) –

31
31 <H245
<H245 346>
346> :: remote
remote capabilities
capabilities matching
matching to
to local
local capabilities.
capabilities.
number
number of of capabilities
capabilities == 55
11 :: g7231A-6.3k
g7231A-6.3k
22 :: g729-8k
g729-8k
33 :: T.38
T.38
44 :: UserInput/basicString
UserInput/basicString
55 :: UserInput/hookflash
UserInput/hookflash
32
32 <H245
<H245 346>
346> :: Send
Send TCSTCS ack.
ack.
33
33 <Q931
<Q931 346>
346> :: Send
Send FACILITY
FACILITY
34
34 <Q931
<Q931 346>
346> :: Received
Received FACILITY
FACILITY
35
35 <H245
<H245 346>
346> :: Received
Received MSD MSD request.
request.
36
36 <H245
<H245 346>
346> :: Send
Send MSDMSD ack.
ack.
37
37 <Q931
<Q931 346>
346> :: Send
Send FACILITY
FACILITY
38
38 <Q931
<Q931 346> : Received FACILITY
346> : Received FACILITY BLANK
BLANK
39
39 <H245
<H245 346>
346> :: Received
Received TCS TCS ack..
ack..
40
40 <Q931
<Q931 346>
346> :: Received
Received FACILITY
FACILITY
41
41 <H245
<H245 346>
346> :: Received
Received MSD MSD ack.
ack.
42
42 <CEP
<CEP 000000>
000000> :: Disconnected(16)
Disconnected(16)
43
43 <Call
<Call 346>
346> :: Terminated
Terminated from(0)
from(0) this(Local:CallClear)
this(Local:CallClear)
before(NULL)
before(NULL) forced(0)
forced(0)
44
44 <Chan
<Chan 346>
346> :: Close
Close -- number(101)
number(101) direction(receive)
direction(receive)
45
45 <Chan
<Chan 346>
346> :: Close
Close -- number(101)
number(101) direction(transmit)
direction(transmit)
46
46 <Q931
<Q931 346>
346> :: Send
Send RELEASE
RELEASE COMPLETE
COMPLETE
47
47 <GK
<GK 346>346> :: Send
Send DRQ.
DRQ.
48
48 <GK
<GK 346>346> :: Received
Received DCF.DCF.
49
49 <NetEP
<NetEP 346>
346> :: CallCall TO
TO <voip.172.19.1.250>
<voip.172.19.1.250> terminated
terminated
reason(Local:CallClear)
reason(Local:CallClear)

www.addpac.com VoIP Training Guide 95


call Trace
- h245 DTMF Relay brief/detail–

AP200#
AP200# debug
debug voip
voip call
call AP200#
AP200# debug
debug voip
voip h245
h245
55
55 <H245
<H245 347>
347> :: Send
Send UserInputIndication(1)
UserInputIndication(1) AP200#
AP200# <><> MultimediaSystemControlMessage(choice:4)]
MultimediaSystemControlMessage(choice:4)] Encoding Encoding ...
...
56
56 <Q931
<Q931 347>
347> :: Send
Send FACILITY
FACILITY value
value MultimediaSystemControlMessage
MultimediaSystemControlMessage ::= ::= indication
indication :: userInput
userInput ::
57
57 <Call
<Call 347>
347> :: Digit(2)
Digit(2) s(Established)
s(Established) alphanumeric
alphanumeric :: "1"
"1"
58
58 <H245
<H245 347>
347> :: Send
Send UserInputIndication(2)
UserInputIndication(2) 1088944039
1088944039 :: Sent
Sent H245
H245 PDU
PDU to
to (172.19.1.250:10091)
(172.19.1.250:10091) from from 18001
18001
59
59 <Q931
<Q931 347>
347> :: Send
Send FACILITY
FACILITY
60
60 <Call
<Call 347> : Digit(3) s(Established)
347> : Digit(3) s(Established) <>
<> MultimediaSystemControlMessage(choice:4)]
MultimediaSystemControlMessage(choice:4)] Encoding
Encoding ... ...
61
61 <H245
<H245 347>
347> :: Send
Send UserInputIndication(3)
UserInputIndication(3) value
value MultimediaSystemControlMessage
MultimediaSystemControlMessage ::= ::= indication
indication :: userInput
userInput ::
62 <Q931 alphanumeric
alphanumeric :: "2"
"2"
62 <Q931 347>
347> :: Send
Send FACILITY
FACILITY
63 <Call 1088944040
1088944040 :: Sent
Sent H245
H245 PDU
PDU to
to (172.19.1.250:10091)
(172.19.1.250:10091) from from 18001
18001
63 <Call 347>
347> :: Digit(4)
Digit(4) s(Established)
s(Established)
64
64 <H245
<H245 347>
347> :: Send
Send UserInputIndication(4)
UserInputIndication(4)
65 <Q931 <>
<> MultimediaSystemControlMessage(choice:4)]
MultimediaSystemControlMessage(choice:4)] Encoding
Encoding ... ...
65 <Q931 347>
347> :: Send
Send FACILITY
FACILITY
66 <Call value
value MultimediaSystemControlMessage
MultimediaSystemControlMessage ::= ::= indication
indication :: userInput
userInput ::
66 <Call 347>
347> :: Digit(5)
Digit(5) s(Established)
s(Established) alphanumeric
67 <H245 alphanumeric :: "3"
"3"
67 <H245 347>
347> :: Send
Send UserInputIndication(5)
UserInputIndication(5) 1088944041
68 <Q931 1088944041 :: Sent
Sent H245
H245 PDU
PDU to
to (172.19.1.250:10091)
(172.19.1.250:10091) from from 18001
18001
68 <Q931 347>
347> :: SendSend FACILITY
FACILITY
<>
<> MultimediaSystemControlMessage(choice:4)]
MultimediaSystemControlMessage(choice:4)] Encoding
Encoding ... ...
value
value MultimediaSystemControlMessage
MultimediaSystemControlMessage ::= ::= indication
indication :: userInput
userInput ::
alphanumeric
alphanumeric :: "4"
"4"
1088944042
1088944042 :: Sent
Sent H245
H245 PDU
PDU to
to (172.19.1.250:10091)
(172.19.1.250:10091) from from 18001
18001

<>
<> MultimediaSystemControlMessage(choice:4)]
MultimediaSystemControlMessage(choice:4)] Encoding
Encoding ...
...
value
value MultimediaSystemControlMessage ::= indication :: userInput
MultimediaSystemControlMessage ::= indication userInput ::
alphanumeric
alphanumeric :: "5"
"5"
1088944042
1088944042 :: Sent
Sent H245
H245 PDU
PDU to
to (172.19.1.250:10091)
(172.19.1.250:10091) from
from 18001
18001

<>
<> MultimediaSystemControlMessage(choice:3)]
MultimediaSystemControlMessage(choice:3)] Encoding
Encoding ...
...
value
value MultimediaSystemControlMessage ::= command ::
MultimediaSystemControlMessage ::= command
endSessionCommand
endSessionCommand :: disconnect
disconnect :: NULL
NULL
1088944045
1088944045 :: Sent
Sent H245
H245 PDU
PDU to
to (172.19.1.250:10091)
(172.19.1.250:10091) from
from 18001
18001

www.addpac.com VoIP Training Guide 96


call Trace
- SIP Register(1/2)–

AP1100#
AP1100# debug
debug voip
voip sip
sip 99 <SIP
<SIP 1>
1> :: Receive
Receive 401
401 Unauthorized
Unauthorized
AP1100#
AP1100# debug
debug voip
voip call
call
Sending
Sending SIP
SIP PDU
PDU toto (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060 10
10 <SIP
<SIP 1>
1> :: Transaction
Transaction (1
(1 REGISTER)
REGISTER) completed
completed
REGISTER
REGISTER sip:test.sip.0038.net
sip:test.sip.0038.net SIP/2.0
SIP/2.0 11
11 <SIP
<SIP 0>
0> :: Adding
Adding authentication
authentication information
information
Date:
Date: Sun,27
Sun,27 Jul
Jul 2003
2003 03:06:10
03:06:10 GMT
GMT 12
12 <SIP
<SIP 2>
2> :: Send
Send REGISTER
REGISTER Request
Request
CSeq: 1 REGISTER
CSeq: 1 REGISTER
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 100.1.1.40:5060;branch=z9hG4bKa23f2000a41
100.1.1.40:5060;branch=z9hG4bKa23f2000a41 Sending
Sending SIPSIP PDU
PDU to
to (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060
Expires:
Expires: 3600
3600 REGISTER sip:test.sip.0038.net
REGISTER sip:test.sip.0038.net SIP/2.0SIP/2.0
From:
From: sip:815000380100@test.sip.0038.net;tag=a23f2000a4
sip:815000380100@test.sip.0038.net;tag=a23f2000a4 Date:
Date: Sun,27
Sun,27 JulJul 2003
2003 03:06:12
03:06:12 GMT GMT
Call-ID:
Call-ID: a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40 CSeq:
CSeq: 22 REGISTER
REGISTER
To:
To: sip:815000380100@test.sip.0038.net
sip:815000380100@test.sip.0038.net Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 100.1.1.40:5060;branch=z9hG4bKa23f2000a42
100.1.1.40:5060;branch=z9hG4bKa23f2000a42
Contact:
Contact: sip:815000380100@100.1.1.40
sip:815000380100@100.1.1.40 Expires:
Expires: 3600
3600
Content-Length:
Content-Length: 00 Authorization:
Authorization: Digest
Digest username="815000380100",
username="815000380100", realm="Registered
realm="Registered Users",
Users",
User-Agent:
User-Agent: AddPac
AddPac SIP SIP Gateway
Gateway ver
ver 6.06
6.06 nonce="125
nonce="125
Max-Forwards:
Max-Forwards: 70 70 1030618381629",
1030618381629", opaque="1251030618381629",
opaque="1251030618381629", uri="sip:test.sip.0038.net",
uri="sip:test.sip.0038.net",
response="f
response="f
36127731b8062c0dfb0f146c97651ee",
36127731b8062c0dfb0f146c97651ee", algorithm=MD5 algorithm=MD5
Received From:
From: sip:815000380100@test.sip.0038.net;tag=a23f2000a4
sip:815000380100@test.sip.0038.net;tag=a23f2000a4
Received SIP
SIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 ))
SIP/2.0 Call-ID:
Call-ID: a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
SIP/2.0 401
401 Unauthorized
Unauthorized
CSeq: To:
To: sip:815000380100@test.sip.0038.net
sip:815000380100@test.sip.0038.net
CSeq: 11 REGISTER
REGISTER
Via: Contact:
Contact: sip:815000380100@100.1.1.40
sip:815000380100@100.1.1.40
Via: SIP/2.0/UDP
SIP/2.0/UDP 100.1.1.40:5060;branch=z9hG4bKa23f2000a41
100.1.1.40:5060;branch=z9hG4bKa23f2000a41
From: Content-Length:
Content-Length: 00
From: sip:815000380100@test.sip.0038.net;tag=a23f2000a4
sip:815000380100@test.sip.0038.net;tag=a23f2000a4
Call-ID: User-Agent:
User-Agent: AddPac
AddPac SIPSIP Gateway
Gateway ver ver 6.06
6.06
Call-ID: a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
To: Max-Forwards:
Max-Forwards: 70 70
To: sip:815000380100@test.sip.0038.net
sip:815000380100@test.sip.0038.net
Content-Length:
Content-Length: 00
Server:
Server: LMAP-LongBoard
LMAP-LongBoard Inc.Inc.
WWW-Authenticate:
WWW-Authenticate: Digest
Digest realm="Registered
realm="Registered
Users",qop="auth",opaque="12510306183816
Users",qop="auth",opaque="12510306183816
29",nonce="1251030618381629"
29",nonce="1251030618381629"

www.addpac.com VoIP Training Guide 97


call Trace
- SIP Register (2/2) –

Received
Received SIPSIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 ))
SIP/2.0
SIP/2.0 200
200 Ok
Ok
CSeq:
CSeq: 22 REGISTER
REGISTER
Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 100.1.1.40:5060;branch=z9hG4bKa23f2000a42
100.1.1.40:5060;branch=z9hG4bKa23f2000a42
From:
From: sip:815000380100@test.sip.0038.net;tag=a23f2000a4
sip:815000380100@test.sip.0038.net;tag=a23f2000a4
Call-ID:
Call-ID: a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
a241233f-7bac-2072-8000-0002a4ffff1a@100.1.1.40
To:
To: sip:815000380100@test.sip.0038.net
sip:815000380100@test.sip.0038.net
Content-Length:
Content-Length: 00 Blank
Blank
Server:
Server: LMAP-LongBoard
LMAP-LongBoard Inc. Inc.
Contact:
Contact: <sip:815000380100@100.1.1.40>;q=0.500;expires=3600
<sip:815000380100@100.1.1.40>;q=0.500;expires=3600

13
13 <SIP
<SIP 2>
2> :: Receive
Receive 200
200 Ok
Ok

14
14 <SIP
<SIP 2>
2> :: Transaction
Transaction (2
(2 REGISTER)
REGISTER) completed
completed

www.addpac.com VoIP Training Guide 98


call Trace
- SIP Setup (1/2)–

68
68 AP1100#
AP1100# debug
debug voip
voip sipsip 68
68 v=0
v=0
69
69 AP1100#
AP1100# debug
debug voip
voip call
call 68
68 o=AddpacTechSIP-GW-UserAgent
o=AddpacTechSIP-GW-UserAgent 1059272335
1059272335 1059272335
1059272335 IN
IN
70
70 AP1100#
AP1100# 11 <Time
<Time 7> 7> :: Inter
Inter digit
digit timer
timer timeout.
timeout. IP4
IP4 218.47.24.3
218.47.24.3
71
71 22 <Call
<Call 7>
7> :: Digit(#)
Digit(#) 69
69 s=SIP
s=SIP Session
Session
72
72 33 <Call
<Call 7>
7> :: MatchAllProcess
MatchAllProcess After After Sorted
Sorted 70
70 t=0
t=0 00
73
73 <0>
<0> id(1000) dest(T) prefer(0)
id(1000) dest(T) prefer(0) selected(1)
selected(1) 71
71 c=IN
c=IN IP4
IP4 218.47.24.3
218.47.24.3
74
74 44 <Call
<Call 7>
7> :: Initiate
Initiate callee
callee with
with dial-peer(T)
dial-peer(T) 72
72 m=audio
m=audio 23010
23010 RTP/AVP
RTP/AVP 00
status(CalleeDetermined
status(CalleeDetermined
75
75 All)
All) 73
73 Received
Received SIP
SIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 ))
76
76 55 <NetEP
<NetEP 7>
7> :: InitiateOutCall:
InitiateOutCall: calledNum(011177)
calledNum(011177) 74
74 SIP/2.0 100 Trying
SIP/2.0 100 Trying
callingNum(81500038010
callingNum(81500038010 75
75 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a43
218.47.24.3:5060;branch=z9hG4bK8f3f5910a43
77
77 0)
0) target(sip-server)
target(sip-server) 76
76 CSeq:
CSeq: 33 INVITE
INVITE
78
78 66 <NetEP
<NetEP 7>
7> :: DoCall:
DoCall: 77
77 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
calledAddr(sip:011177@test.sip.0038.net)
calledAddr(sip:011177@test.sip.0038.net) callingA callingA 78 Call-ID:
78 Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
79
79 ddr(815000380100)
ddr(815000380100) 79 To:
79 To: <sip:011177@test.sip.0038.net>
<sip:011177@test.sip.0038.net>
80
80 77 <SIP
<SIP 0>0> :: No
No authentication
authentication information
information available
available
81
81 88 <SIP
<SIP 7>7> :: Send
Send INVITE
INVITE Request
Request 80 99 <SIP 7> :: Receive
80 <SIP 7> Receive 100
100 Trying
Trying

82
82 Sending
Sending SIP
SIP PDU
PDU to
to (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060 81 10 <SIP 7> :: Transaction
81 10 <SIP 7> Transaction (3
(3 INVITE)
INVITE) proceeding
proceeding
83
83 INVITE sip:011177@test.sip.0038.net
INVITE sip:011177@test.sip.0038.net SIP/2.0 SIP/2.0
84
84 Date:
Date: Sun,27
Sun,27 Jul
Jul 2003
2003 02:18:55
02:18:55 GMT GMT 82
82
85
85 CSeq:
CSeq: 33 INVITE
INVITE
86
86 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a43
218.47.24.3:5060;branch=z9hG4bK8f3f5910a43
87
87 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
88
88 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
89
89 To:
To: <sip:011177@test.sip.0038.net>
<sip:011177@test.sip.0038.net>
90
90 Contact:
Contact: sip:815000380100@218.47.24.3
sip:815000380100@218.47.24.3
91
91 Content-Type:
Content-Type: application/sdp
application/sdp
92
92 Content-Length:
Content-Length: 145 145
93
93 User-Agent:
User-Agent: AddPac
AddPac SIPSIP Gateway
Gateway ver ver 6.06
6.06
94
94 Max-Forwards:
Max-Forwards: 70 70

www.addpac.com VoIP Training Guide 99


call Trace
- SIP Setup (2/2)–

68
68 Received
Received SIP
SIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 )) 68
68 a=sendrecv
a=sendrecv
69
69 SIP/2.0
SIP/2.0 100
100 Trying
Trying 69
69 a=ptime:10
a=ptime:10
70
70 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
218.47.24.3:5060;branch=z9hG4bK8f3f5910a44 Sending
Sending SIP
SIP PDU
PDU to
to (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060
71
71 CSeq:
CSeq: 44 INVITE
INVITE 68
68 17
17 <SDP
<SDP 0> 0> :: Malformed
Malformed media
media attribute
attribute :: sendrecv
sendrecv
72
72 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4 69
69 18
18 <SDP
<SDP 0> 0> :: Malformed
Malformed media
media attribute
attribute :: ptime:10
ptime:10
73
73 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3 70
70 19
19 <SIP
<SIP 7>7> : Receive 180 Ringing
: Receive 180 Ringing
74
74 To:
To: <sip:011177@test.sip.0038.net>
<sip:011177@test.sip.0038.net>
71
71 20
20 <SIP
<SIP 7>7> :: Transaction
Transaction (4 (4 INVITE)
INVITE) proceeding
proceeding
75
75 15
15 <SIP
<SIP 7>
7> :: Receive
Receive 100
100 Trying
Trying 72
72 21
21 <Call
<Call 7>
7> :: Alert
Alert from(fffffffe)
from(fffffffe) pseudo(0)
pseudo(0) inband(0)
inband(0)
status(CalleeIni
status(CalleeIni
76
76 16
16 <SIP
<SIP 7>
7> :: Transaction
Transaction (4
(4 INVITE)
INVITE) proceeding
proceeding 73
73 tiated)
tiated)

77
77 Received
Received SIP
SIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 )) 74
74 Received
Received SIP
SIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 ))
78
78 SIP/2.0 180 Ringing
SIP/2.0 180 Ringing 75
75 SIP/2.0
SIP/2.0 200
200 OK
OK
79
79 CSeq:
CSeq: 44 INVITE
INVITE 76
76 CSeq:
CSeq: 44 INVITE
INVITE
80
80 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
218.47.24.3:5060;branch=z9hG4bK8f3f5910a44 77
77 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
81
81 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4 78
78 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
82
82 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3 79
79 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
83
83 To:
To: <sip:011177@test.sip.0038.net>;tag=apsd57595u1-7881812
<sip:011177@test.sip.0038.net>;tag=apsd57595u1-7881812 80
80 To:
To: <sip:011177@test.sip.0038.net>;tag=apsd57595u1-7881812
<sip:011177@test.sip.0038.net>;tag=apsd57595u1-7881812
84
84 Content-Length:
Content-Length: 159159 81
81 Contact:
Contact: <sip:011177-bco-
<sip:011177-bco-
85 Content-Disposition: r1eed7gso8jme@100.1.1.228:5060;transport=udp>
r1eed7gso8jme@100.1.1.228:5060;transport=udp>
85 Content-Disposition: signal;handling=required
signal;handling=required
86 Content-Type: 82
82 Allow:
Allow: OPTIONS,INVITE,
OPTIONS,INVITE, CANCEL,
CANCEL, ACK,
ACK, PRACK,
PRACK, INFO,
INFO, BYE
BYE
86 Content-Type: application/sdp
application/sdp
83
83 Accept: multipart/mixed, application/sdp, application/isup,
Accept: multipart/mixed, application/sdp, application/isup,
application/dtmf,
application/dtmf, appli
appli
87
87 v=0
v=0 84
84 cation/dtmf-relay
cation/dtmf-relay
88
88 o=Sonus_UAC
o=Sonus_UAC 3259032590 29093
29093 IN
IN IP4
IP4 100.1.1.228
100.1.1.228 85
85 Content-Length:
Content-Length: 159159
89
89 s=SIP
s=SIP Media
Media Capabilities
Capabilities 86
86 Content-Disposition:
Content-Disposition: signal;handling=required
signal;handling=required
90
90 c=IN
c=IN IP4
IP4 100.1.1.228
100.1.1.228 87
87 Content-Type:
Content-Type: application/sdp
application/sdp
91
91 t=0
t=0 00
92
92 m=audio
m=audio 10008
10008 RTP/AVP
RTP/AVP 00
93
93 a=sendrecv
a=sendrecv
94
94 a=ptime:10
a=ptime:10

www.addpac.com VoIP Training Guide 100


call Trace
- SIP Setup (2/2)–

68
68 v=0
v=0
69
69 o=Sonus_UAC
o=Sonus_UAC 3259032590 29093
29093 IN
IN IP4
IP4 100.1.1.228
100.1.1.228 68
68 Sending
Sending SIP
SIP PDU
PDU to
to (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060
70
70 s=SIP
s=SIP Media
Media Capabilities
Capabilities 69
69 ACK
ACK sip:011177@test.sip.0038.net
sip:011177@test.sip.0038.net SIP/2.0
SIP/2.0
71
71 c=IN
c=IN IP4
IP4 100.1.1.228
100.1.1.228 70
70 CSeq:
CSeq: 44 ACK
ACK
72
72 t=0
t=0 00 71
71 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
73
73 m=audio
m=audio 10008
10008 RTP/AVP
RTP/AVP 00 72
72 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
74
74 a=sendrecv
a=sendrecv 73
73 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
75
75 a=ptime:10
a=ptime:10 74
74 To:
To: <sip:011177@test.sip.0038.net>;tag=apsd57595u1-7881812
<sip:011177@test.sip.0038.net>;tag=apsd57595u1-7881812
75
75 Content-Length:
Content-Length: 00
76
76 22
22 <SDP
<SDP 0>
0> :: Malformed
Malformed media
media attribute
attribute :: sendrecv
sendrecv 76
76 Max-Forwards:
Max-Forwards: 70 70
77
77 23
23 <SDP
<SDP 0>
0> :: Malformed
Malformed media
media attribute
attribute :: ptime:10
ptime:10
78
78 24
24 <SIP
<SIP 7>
7> :: Receive
Receive 200
200 OK
OK 77
77 26
26 <SIP
<SIP 7> 7> :: Get
Get SIP
SIP MediaFormat
MediaFormat :: 00
78
78 27
27 <Call
<Call 7>
7> :: Connected
Connected from(fffffffe)
from(fffffffe)
79
79 25
25 <SIP
<SIP 7>
7> :: Send
Send ACK
ACK Request
Request 79
79 28
28 <NetEP
<NetEP 7> 7> :: Call
Call with
with sip:011177@test.sip.0038.net
sip:011177@test.sip.0038.net
established
established
80
80 29
29 <SIP
<SIP 7> 7> :: Received
Received INVITE
INVITE OK
OK response
response
81
81 30
30 <Time
<Time 7> 7> :: SIP_TCOMP_LONG
SIP_TCOMP_LONG timer timer timeout.
timeout.
(transactionID
(transactionID :: 185270320)
185270320)
82
82 31
31 <Time
<Time 7> 7> :: SIP_TCOMP_LONG
SIP_TCOMP_LONG timer timer timeout.
timeout.
(transactionID
(transactionID :: 185270336
185270336

80
80

www.addpac.com VoIP Training Guide 101


call Trace
- SIP Setup (2/2)–

68
68 Received
Received SIP
SIP PDU
PDU from
from (( 100.1.1.228:5060
100.1.1.228:5060 )) Sending
Sending SIP SIP PDU
PDU to to (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060
69
69 SIP/2.0
SIP/2.0 407
407 Proxy
Proxy Authentication
Authentication Required
Required 68
68 INVITE
INVITE sip:011177@test.sip.0038.net
sip:011177@test.sip.0038.net SIP/2.0 SIP/2.0
70
70 CSeq:
CSeq: 33 INVITE
INVITE 69
69 Date:
Date: Sun,27
Sun,27 Jul
Jul 2003
2003 02:18:55
02:18:55 GMT
GMT
71
71 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a43
218.47.24.3:5060;branch=z9hG4bK8f3f5910a43 70
70 CSeq:
CSeq: 44 INVITE
INVITE
72
72 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4 71
71 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
218.47.24.3:5060;branch=z9hG4bK8f3f5910a44
73
73 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3 72
72 From:
From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
74
74 To:
To: <sip:011177@test.sip.0038.net>;tag=aprqngfrt-apsd57595u1-
<sip:011177@test.sip.0038.net>;tag=aprqngfrt-apsd57595u1- 73
73 Call-ID:
Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
z9hG4bK219842720
z9hG4bK219842720 74
74 To:
To: <sip:011177@test.sip.0038.net>
<sip:011177@test.sip.0038.net>
75
75 Content-Length:
Content-Length: 00 75
75 Contact:
Contact: sip:815000380100@218.47.24.3
sip:815000380100@218.47.24.3
76
76 Server:
Server: LMAP-LongBoard
LMAP-LongBoard Inc. Inc. 76
76 Proxy-Authorization:
Proxy-Authorization: DigestDigest username="815000380100",
username="815000380100",
77
77 Proxy-Authenticate:
Proxy-Authenticate: Digest
Digest realm="Registered
realm="Registered realm="Registered
realm="Registered Users",
Users", nonc
nonc
Users",qop="auth",opaque="109103060351
Users",qop="auth",opaque="109103060351 77
77 e="1091030603511529",
e="1091030603511529", opaque="1091030603511529",
opaque="1091030603511529",
78
78 1529",nonce="1091030603511529"
1529",nonce="1091030603511529" uri="sip:011177@test.sip.0038.net"
uri="sip:011177@test.sip.0038.net"
78
78 ,, response="2077b54acf82b8ed35967199bf38023e",
response="2077b54acf82b8ed35967199bf38023e",
79
79 11
11 <SIP
<SIP 7>
7> :: Receive
Receive 407
407 Proxy
Proxy Authentication
Authentication Required
Required algorithm=MD5
algorithm=MD5
79
79 Content-Type:
Content-Type: application/sdp
application/sdp
80
80 12
12 <SIP
<SIP 7>
7> :: Send
Send ACK
ACK Request
Request 80
80 Content-Length:
Content-Length: 145 145
81
81 User-Agent:
User-Agent: AddPac
AddPac SIP SIP Gateway
Gateway ver
ver 6.06
6.06
81
81 Sending
Sending SIP
SIP PDU
PDU to
to (( test.sip.0038.net:5060
test.sip.0038.net:5060 )) from
from 5060
5060 82
82 Max-Forwards:
Max-Forwards: 70 70
82
82 ACK
ACK sip:011177@test.sip.0038.net
sip:011177@test.sip.0038.net SIP/2.0
SIP/2.0
83
83 CSeq:
CSeq: 33 ACK
ACK 83
83 v=0
v=0
84
84 Via:
Via: SIP/2.0/UDP
SIP/2.0/UDP 218.47.24.3:5060;branch=z9hG4bK8f3f5910a43
218.47.24.3:5060;branch=z9hG4bK8f3f5910a43 84
84 o=AddpacTechSIP-GW-UserAgent
o=AddpacTechSIP-GW-UserAgent 1059272335
1059272335 1059272335
1059272335 IN
IN
85 From: IP4
IP4 218.47.24.3
218.47.24.3
85 From: <sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
<sip:815000380100@test.sip.0038.net>;tag=8f3f5910a4
86 Call-ID: 85
85 s=SIP
s=SIP Session
Session
86 Call-ID: 8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
8f36233f-ecdb-5987-8010-0002a4ffff1a@218.47.24.3
87 To: 86
86 t=0
t=0 00
87 To: <sip:011177@test.sip.0038.net>;tag=aprqngfrt-apsd57595u1-
<sip:011177@test.sip.0038.net>;tag=aprqngfrt-apsd57595u1-
z9hG4bK219842720
z9hG4bK219842720 87
87 c=IN
c=IN IP4
IP4 218.47.24.3
218.47.24.3
88
88 Content-Length:
Content-Length: 00 88
88 m=audio
m=audio 23010
23010 RTP/AVP
RTP/AVP 00
89
89 Max-Forwards:
Max-Forwards: 70 70

90
90 13
13 <SIP
<SIP 0>
0> :: Adding
Adding authentication
authentication information
information
91
91 14
14 <SIP
<SIP 7>
7> :: Send
Send INVITE
INVITE Request
Request

www.addpac.com VoIP Training Guide 102


call Trace
- T38 FAX Relay (1/4) –

AP200#
AP200# debug
debug voip
voip call
call 14
14 <Call
<Call 4>4> :: Initiate
Initiate callee
callee with
with dial-peer(1000)
dial-peer(1000)
AP200#
AP200# debug
debug rta
rta ipc
ipc status(CalleeDeterminedAll)
status(CalleeDeterminedAll) id(b06ee id(b06ee
AP200#
AP200# debug
debug rta
rta t38
t38 c40-e399-77ad-8007-0002a400e070)
c40-e399-77ad-8007-0002a400e070)
AP200#
AP200# [1268.205]
[1268.205] VM(0/0/0)
VM(0/0/0) vmOffHook
vmOffHook 15
15 <NetEP
<NetEP 4> 4> :: InitiateOutCall:
InitiateOutCall: calledNum(1000)
calledNum(1000) callingNum(2000)
callingNum(2000)
[1268.265] target(172.17.180.3)
target(172.17.180.3)
[1268.265] VM(0/0/0)
VM(0/0/0) vmTmoOffHook
vmTmoOffHook
[1268.265] 16
16 <NetEP
<NetEP 4> 4> :: DoCall:
DoCall: calledAddr(1000@172.17.180.3)
calledAddr(1000@172.17.180.3)
[1268.265] VM(0/0/0)
VM(0/0/0) Rx Rx OffHook
OffHook callingAddr(2000)
[1268.265] callingAddr(2000)
[1268.265] VM(0/0/0) Tx OFFHOOK_IND
VM(0/0/0) Tx OFFHOOK_IND [1272.120]
[1268.265] [1272.120] VM(0/0/0)
VM(0/0/0) Fax Fax rate
rate 9600
9600
[1268.265] VM(0/0/0)
VM(0/0/0) play play Dial
Dial tone
tone 17 <H225
11 <CEP 17 <H225 4> 4> :: Try
Try signalling
signalling TCP
TCP connect
connect (172.17.180.3:1720)
(172.17.180.3:1720)
<CEP 000000>
000000> :: CallCall Received
Received 18 <H225
22 <CEP 18 <H225 4> 4> :: Signalling
Signalling TCPTCP connect
connect success
success (4)
(4)
<CEP 000000>
000000> :: CallCall Initiated
Initiated :: calledNumber()
calledNumber() callerInfo()
callerInfo() crv(0)
crv(0) 19 <H323
total(0)
total(0) 19 <H323 4> 4> :: local
local capabilities.
capabilities.
33 <Call number
number of of capabilities
capabilities == 55
<Call 4>4> :: ******************
****************** Call Call Created
Created status(InitiatedByFXS)
status(InitiatedByFXS)
****************
**************** 11 :: g7231A-6.3k
g7231A-6.3k
***
*** 22 :: g729-8k
g729-8k
44 <CEP
<CEP 000000>
000000> :: CallCall id(b06eec40-e399-77ad-8007-
id(b06eec40-e399-77ad-8007- 33 :: T.38
T.38
0002a400e070)
0002a400e070) callNum(4)
callNum(4) 44 :: UserInput/basicString
UserInput/basicString
[1271.575]
[1271.575] VM(0/0/0)
VM(0/0/0) Tx Tx DIGIT_IND
DIGIT_IND '1' '1' 55 :: UserInput/hookflash
UserInput/hookflash
[1271.575]
[1271.575] VM(0/0/0)
VM(0/0/0) play play mute
mute 20
20 <Q931
<Q931 4> 4> :: Send
Send SETUP
SETUP
55 <Call
<Call 4>4> :: Digit(1)
Digit(1) s(InitiatedByFXS)
s(InitiatedByFXS) [1272.140]
[1272.140] RTA(0/0/0)
RTA(0/0/0) Rx Rx RS_LISTEN_REQ
RS_LISTEN_REQ callId=4callId=4 ssId=1
ssId=1 G729A
G729A
66 <Call
<Call 4>4> :: Digit match
Digit match checked(MatchedPartially)
checked(MatchedPartially) peer=0.0.0.0 mp=23006/23007
peer=0.0.0.0 mp=23006/23007 hp=0/0 hp=0/0
[1271.755]
[1271.755] VM(0/0/0)
VM(0/0/0) Tx Tx DIGIT_IND
DIGIT_IND '0' '0' [1272.140]
[1272.140] VM(0/0/0)
VM(0/0/0) codeccodec replace
replace later
later
77 <Call
<Call 4>4> :: Digit(0)
Digit(0) s(CalleeUndetermined)
s(CalleeUndetermined) 21
21 <Q931
<Q931 4> 4> :: Received
Received CALLCALL PROCEEDING
PROCEEDING
88 <Call
<Call 4>4> :: Digit
Digit match
match checked(MatchedPartially)
checked(MatchedPartially) 22
22 <Chan
<Chan 4> 4> :: Open
Open -- number(101)
number(101) direction(receive)
direction(receive)
[1271.935]
[1271.935] VM(0/0/0)
VM(0/0/0) Tx Tx DIGIT_IND
DIGIT_IND '0' '0' session(voice)
session(voice) codec(g7231A-6.3k)
codec(g7231A-6.3k)
99 <Call
<Call 4>4> :: Digit(0)
Digit(0) s(CalleeUndetermined)
s(CalleeUndetermined) -- Local
Local :: Data(23006)
Data(23006) Cont(23007)
Cont(23007) Addr(172.17.180.2)
Addr(172.17.180.2)
10
10 <Call
<Call 4>4> :: Digit
Digit match
match checked(MatchedPartially)
checked(MatchedPartially) -- Remote
Remote :: Data(23006)
Data(23006) Cont(23007)
Cont(23007)
[1272.115] DataAddr(172.17.180.3)
DataAddr(172.17.180.3) ContAddr(172.17
ContAddr(172.17
[1272.115] VM(0/0/0) Tx DIGIT_IND '0'
VM(0/0/0) Tx DIGIT_IND '0'
11 <Call .180.3)
.180.3)
11 <Call 4>4> :: Digit(0)
Digit(0) s(CalleeUndetermined)
s(CalleeUndetermined)
12 <Call 23
23 <Q931
<Q931 4> 4> :: Received
Received ALERTING
ALERTING
12 <Call 4>4> :: Digit
Digit match
match checked(MatchedPerfect)
checked(MatchedPerfect)
13 <Call 24
24 <H245
<H245 4> 4> :: Send
Send TCS TCS request.
request.
13 <Call 4>4> :: MatchAllProcess
MatchAllProcess After After Sorted
Sorted
<0> 25
25 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY
<0> id(1000)
id(1000) dest(1000)
dest(1000) prefer(0)
prefer(0) selected(2)
selected(2)

www.addpac.com VoIP Training Guide 103


call Trace
- T38 FAX Relay (2/4) –

26
26 <H245
<H245 4> 4> :: Send
Send MSDMSD request.
request. 44
44 <Chan
<Chan 4>4> :: Open
Open -- number(101)
number(101) direction(transmit)
direction(transmit)
27
27 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY session(voice)
session(voice) codec(g7231A-6.3k)
codec(g7231A-6.3k)
28
28 <Call
<Call 4>4> :: Alert
Alert from(ffffffff)
from(ffffffff) pseudo(0)
pseudo(0) inband(0)
inband(0) -- Local
Local :: Data(23006)
Data(23006) Cont(23007)
Cont(23007) Addr(172.17.180.2)
Addr(172.17.180.2)
status(CalleeInitiated)
status(CalleeInitiated) -- Remote
Remote : Data(23006) Cont(23007)
: Data(23006) Cont(23007)
[1272.225]
[1272.225] RTA(0/0/0)
RTA(0/0/0) Rx Rx CC_ALERT_RSP
CC_ALERT_RSP peerId(0/0/0)
peerId(0/0/0) DataAddr(172.17.180.3)
DataAddr(172.17.180.3) ContAddr(172.17
ContAddr(172.17
[1272.225]
[1272.225] VM(0/0/0)
VM(0/0/0) play play RingBack
RingBack tone
tone .180.3)
.180.3)
29
29 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY [1279.375]
[1279.375] RTA(0/0/0)
RTA(0/0/0) Rx Rx RS_OPEN_REQ
RS_OPEN_REQ callId=4
callId=4 ssId=1
ssId=1 G7236
G7236
30
30 <H245
<H245 4> 4> :: Received
Received TCS TCS request.
request. peer=172.17.180.3 mp=23006/23007 hp=23006/23007
peer=172.17.180.3 mp=23006/23007 hp=23006/23007
31
31 <H245
<H245 4> 4> :: remote
remote capabilities
capabilities matching
matching to
to local
local capabilities.
capabilities. [1279.380]
[1279.380] VM(0/0/0)
VM(0/0/0) voppvopp idle
idle
number of capabilities
number of capabilities = 5 = 5 [1279.380]
[1279.380] VM(0/0/0)
VM(0/0/0) codec
codec replace
replace timer
timer start
start
11 :: g7231A-6.3k
g7231A-6.3k [1279.385]
[1279.385] VM(0/0/0)
VM(0/0/0) discard
discard voice
voice under
under codec
codec replace
replace
22 :: g729-8k
g729-8k [1279.395]
[1279.395] VM(0/0/0)
VM(0/0/0) discard
discard voice
voice under
under codec
codec replace
replace
33 :: T.38
T.38 [1279.400]
[1279.400] VM(0/0/0)
VM(0/0/0) under
under codec
codec replace
replace
44 :: UserInput/basicString
UserInput/basicString [1279.440]
[1279.440] VM(0/0/0)
VM(0/0/0) codec
codec replaced
replaced toto G7236
G7236
55 :: UserInput/hookflash
UserInput/hookflash [1279.440] VM(0/0/0) Fax enable
[1279.440] VM(0/0/0) Fax enable
32
32 <H245
<H245 4> 4> :: Send
Send TCSTCS ack.
ack. [1279.440]
[1279.440] VM(0/0/0)
VM(0/0/0) playplay mute
mute
33
33 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY 45
45 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY
34
34 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY 46
46 <H245
<H245 4>4> :: Received
Received RM RM request.
request.
35
35 <H245
<H245 4> 4> :: Received TCS
Received TCS ack..
ack.. 47
47 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY
36
36 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY 48
48 <H245
<H245 4>4> :: Send
Send CLC
CLC request.
request.
37
37 <H245
<H245 4> 4> :: Received
Received MSD MSD ack.
ack. [1284.370]
[1284.370] RTA(0/0/0)
RTA(0/0/0) Rx Rx RS_CLOSE_REQ
RS_CLOSE_REQ callId=4
callId=4 ssId=1
ssId=1 dir=forw
dir=forw
38
38 <H245
<H245 4> 4> :: Send
Send MSDMSD ack.
ack. 49
49 <Chan 4>
<Chan 4> : Close - number(101) direction(transmit)
: Close - number(101) direction(transmit)
39
39 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY 50
50 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY
40
40 <Q931
<Q931 4> 4> :: Received
Received CONNECT
CONNECT 51
51 <H245
<H245 4>4> :: Send OLC
Send OLC request.
request.
41
41 <H225
<H225 4> 4> :: Remote
Remote Endpoint
Endpoint (AddPac
(AddPac VoIP,7.00,97,0,22)
VoIP,7.00,97,0,22) 52
52 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY
42
42 <Call 4>
<Call 4> : Connected from(ffffffff)
: Connected from(ffffffff) 53
53 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY
[1279.375]
[1279.375] RTA(0/0/0)
RTA(0/0/0) Rx Rx CC_CONNECT_RSP
CC_CONNECT_RSP peerId(0/0/0)
peerId(0/0/0) 54
54 <H245
<H245 4>4> :: Received
Received CLCCLC request.
request.
[1279.375] VM(0/0/0) Fax
[1279.375] VM(0/0/0) Fax enable enable 55
55 <H245
<H245 4>4> :: Send
Send CLC
CLC ack.
ack.
[1279.375]
[1279.375] VM(0/0/0)
VM(0/0/0) play play mute
mute 56
56 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY
43
43 <NetEP
<NetEP 4> 4> :: Call
Call with
with voip.172.17.180.3
voip.172.17.180.3 established
established [1284.395]
[1284.395] RTA(0/0/0) Rx RS_CLOSE_REQ
RTA(0/0/0) Rx RS_CLOSE_REQ callId=4
callId=4 ssId=1
ssId=1 dir=reve
dir=reve

www.addpac.com VoIP Training Guide 104


call Trace
- T38 FAX Relay (3/4) –

57
57 <Chan
<Chan 4>4> :: Close
Close -- number(101)
number(101) direction(receive)
direction(receive) [1294.390]
[1294.390] T38(0/0/0) T38(0/0/0) Tx Tx T30I
T30I FLAG FLAG
58
58 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY [1296.010]
[1296.010] T38(0/0/0) T38(0/0/0) Tx Tx HDLC
HDLC L=23: L=23: ffff c0 c0 c2 c2 04 04 0404 04
04 04
04 04
04 04
04 04
04 04
04 04
04
59
59 <H245
<H245 4> 4> :: Received
Received OLC
OLC request.
request. 04
04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
60
60 <Chan
<Chan 4>4> :: Open
Open -- number(102)
number(102) direction(receive)
direction(receive) session(data)
session(data) 04
04 04 04
codec(T.38)
codec(T.38) [1296.015]
[1296.015] T38(0/0/0) T38(0/0/0) Tx Tx T30D
T30D V21 V21 OK OK
-- Local
Local :: Data(23006)
Data(23006) Cont(23007)
Cont(23007) Addr(172.17.180.2)
Addr(172.17.180.2) [1296.285]
[1296.285] T38(0/0/0) T38(0/0/0) Tx Tx HDLC
HDLC L=6: L=6: ffff c8 c8 c1 c1 00 00 61 61 18
18
-- Remote
Remote :: Data(23006)
Data(23006) Cont(23007)
Cont(23007) [1296.290]
[1296.290] T38(0/0/0) T38(0/0/0) Tx Tx T30D
T30D V21 V21 OK OK
DataAddr(172.17.180.3)
DataAddr(172.17.180.3) ContAddr(172.17
ContAddr(172.17 [1296.370]
[1296.370] T38(0/0/0) T38(0/0/0) Tx Tx T30D
T30D V21 V21 END END
.180.3)
.180.3) [1296.490]
[1296.490] T38(0/0/0) T38(0/0/0) Tx Tx T30I
T30I V29_9600
V29_9600
[1284.405]
[1284.405] RTA(0/0/0)
RTA(0/0/0) Rx Rx RS_LISTEN_REQ
RS_LISTEN_REQ callId=4
callId=4 ssId=3
ssId=3 G711A
G711A iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii[1298.190]
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii[1298.190] T38(0/0/0) T38(0/0/0) Tx Tx T30D
T30D V29_9600
V29_9600 T4_E
T4_E
peer=172.17.180.3
peer=172.17.180.3 mp=23006/23007
mp=23006/23007 hp=23006/23007
hp=23006/23007 [1299.370] T38(0/0/0)
[1299.370] T38(0/0/0) Rx T30I FLAG Rx T30I FLAG
61
61 <H245
<H245 4> 4> :: Send
Send OLC
OLC ack.
ack. [ff]
[ff] [c8][c8] [21] [21] [1300.600]
[1300.600] T38(0/0/0) T38(0/0/0) Rx Rx T30DT30D V21 V21 OK OK
62
62 <Q931
<Q931 4> 4> :: Send
Send FACILITY
FACILITY [1300.630]
[1300.630] T38(0/0/0) T38(0/0/0) Rx Rx T30DT30D V21 V21 END END
63
63 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY [1301.530]
[1301.530] T38(0/0/0) T38(0/0/0) Tx Tx T30I
T30I V29_9600
V29_9600
64
64 <H245
<H245 4>4> :: Received CLC
Received CLC ack.
ack. iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
65
65 <Q931
<Q931 4> 4> :: Received
Received FACILITY
FACILITY iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii[1309.115]
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii[1309.115] TT
66
66 <H245
<H245 4> 4> :: Received
Received OLC
OLC ack.
ack. 38(0/0/0)
38(0/0/0) Tx Tx T30D
T30D V29_9600
V29_9600 T4_E T4_E
67
67 <Chan
<Chan 4>4> :: Open
Open -- number(103)
number(103) direction(transmit)
direction(transmit) session(data)
session(data) [1309.270]
[1309.270] T38(0/0/0) Tx
T38(0/0/0) Tx T30I
T30I FLAG FLAG
codec(T.38)
codec(T.38) [1310.375]
[1310.375] T38(0/0/0) T38(0/0/0) Tx Tx HDLC
HDLC L=3: L=3: ffff c8 c8 f4 f4
-- Local
Local :: Data(23006)
Data(23006) Cont(23007)
Cont(23007) Addr(172.17.180.2)
Addr(172.17.180.2) [1310.375] T38(0/0/0) Tx T30D V21 OK
[1310.375] T38(0/0/0) Tx T30D V21 OK
-- Remote
Remote : Data(23006) Cont(23007)
: Data(23006) Cont(23007) [1310.440]
DataAddr(172.17.180.3) [1310.440] T38(0/0/0) T38(0/0/0) Tx Tx T30D
T30D V21 V21 END END
DataAddr(172.17.180.3) ContAddr(172.17
ContAddr(172.17 [1311.130]
.180.3) [1311.130] T38(0/0/0) T38(0/0/0) Rx Rx T30IT30I FLAG FLAG
.180.3) [ff]
[1284.450] [ff] [c8][c8] [31] [31] [1312.360]
[1312.360] T38(0/0/0) T38(0/0/0) Rx Rx T30DT30D V21 V21 OK OK
[1284.450] RTA(0/0/0)
RTA(0/0/0) Rx Rx RS_OPEN_REQ
RS_OPEN_REQ callId=4
callId=4 ssId=3
ssId=3 G711A
G711A [1312.390]
peer=172.17.180.3 mp=23006/23007 hp=23006/23007 [1312.390] T38(0/0/0) T38(0/0/0) Rx Rx T30DT30D V21 V21 END END
peer=172.17.180.3 mp=23006/23007 hp=23006/23007 [1312.990]
[1284.495] [1312.990] T38(0/0/0) T38(0/0/0) Tx Tx T30I
T30I FLAG FLAG
[1284.495] T38(0/0/0)
T38(0/0/0) Rx Rx T30I
T30I CED
CED [1314.085]
[1291.185] [1314.085] T38(0/0/0) Tx HDLC L=3:
T38(0/0/0) Tx HDLC L=3: ffff c8 c8 df df
[1291.185] T38(0/0/0)
T38(0/0/0) Rx Rx T30I
T30I FLAG
FLAG [1314.085] T38(0/0/0) Tx T30D V21 OK
[ff] [1314.085] T38(0/0/0) Tx T30D V21 OK
[ff] [c0]
[c0] [02]
[02] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [1314.160]
[04] [1314.160] T38(0/0/0) T38(0/0/0) Tx Tx T30D
T30D V21 V21 END END
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04] [04]
[04]
[1e] 68
68 <Q931
<Q931 4> 4> :: Received
Received RELEASE RELEASE COMPLETE COMPLETE
[1e] [86]
[86] [62]
[62] [1293.520]
[1293.520] T38(0/0/0)
T38(0/0/0) Rx
Rx T30D
T30D V21V21 OK
OK
[1315.030]
[1315.030] RTA(0/0/0) RTA(0/0/0) Rx Rx RS_CLOSE_REQ
RS_CLOSE_REQ callId=4 callId=4 ssId=3
ssId=3 dir=reve
dir=reve
[ff]
[ff] [c8]
[c8] [01]
[01] [00]
[00] [73]
[73] [1e]
[1e] [1293.730]
[1293.730] T38(0/0/0)
T38(0/0/0) RxRx T30D
T30D V21
V21 OK
OK
69
69 <Chan
<Chan 4> 4> :: Close
Close -- number(102)
number(102) direction(receive)
direction(receive)
[1293.760]
[1293.760] T38(0/0/0)
T38(0/0/0) Rx Rx T30D
T30D V21
V21 END
END

www.addpac.com VoIP Training Guide 105


call Trace
- T38 FAX Relay (4/4) –

[1315.030]
[1315.030] RTA(0/0/0)
RTA(0/0/0) Rx Rx RS_CLOSE_REQ
RS_CLOSE_REQ callId=4
callId=4 ssId=3
ssId=3 dir=forw
dir=forw
70
70 <Chan
<Chan 4> 4> :: Close
Close -- number(103)
number(103) direction(transmit)
direction(transmit)
71
71 <Call
<Call 4>4> :: Terminated
Terminated from(ffffffff)
from(ffffffff) this(Remote:CallClear)
this(Remote:CallClear)
before(NULL)
before(NULL) forced(0)
forced(0)
72
72 <CEP
<CEP 000000>
000000> :: Disconnect
Disconnect (0)(0)
[1315.085]
[1315.085] RTA(0/0/0)
RTA(0/0/0) Rx Rx CC_DISCONN_REQ
CC_DISCONN_REQ CZ=0, CZ=0, peerId(0/0/0)
peerId(0/0/0)
[1315.085]
[1315.085] VM(0/0/0)
VM(0/0/0) play
play Reorder
Reorder tone
tone
73
73 <NetEP
<NetEP 4>4> :: Call
Call TO
TO <voip.172.17.180.3>
<voip.172.17.180.3> terminated
terminated
reason(Remote:CallClear)
reason(Remote:CallClear)
[1315.185]
[1315.185] VM(0/0/0)
VM(0/0/0) vmOnHook
vmOnHook
[1315.245]
[1315.245] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.305]
[1315.305] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.365]
[1315.365] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.425]
[1315.425] VM(0/0/0)
[1315.485]
VM(0/0/0) vmTmoOnHook
[1315.485] VM(0/0/0)
vmTmoOnHook
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
BLANK
BLANK
[1315.545]
[1315.545] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.605]
[1315.605] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.665]
[1315.665] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.725]
[1315.725] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.785]
[1315.785] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.845]
[1315.845] VM(0/0/0)
VM(0/0/0) vmTmoOnHook
vmTmoOnHook
[1315.845]
[1315.845] VM(0/0/0)
VM(0/0/0) Rx Rx OnHook
OnHook
[1315.845]
[1315.845] VM(0/0/0) vopp idle
VM(0/0/0) vopp idle
[1315.845]
[1315.845] VM(0/0/0)
VM(0/0/0) Tx Tx DISCONN_CNF
DISCONN_CNF
74
74 <CEP
<CEP 000000>
000000> :: Disconnected(16)
Disconnected(16)

www.addpac.com VoIP Training Guide 106


call Trace
- E&M –

AP2520#
AP2520# debug
debug voip
voip call
call
AP2520#
AP2520# debug
debug rta
rta ipc
ipc
AP2520#
AP2520# [76.030]
[76.030] VM(1/0/0)
VM(1/0/0) vmOffHook
vmOffHook
[76.030]
[76.030] VM(1/0/0)
VM(1/0/0) Rx Rx OffHook
OffHook
[76.030]
[76.030] VM(1/0/0)
VM(1/0/0) Tx Tx CALL_RECEIVED
CALL_RECEIVED
11 <CEP
<CEP 010000> :: Call
010000> Call Received
Received
[76.230]
[76.230] VM(1/0/0) WinkWait timeout
VM(1/0/0) WinkWait timeout
[76.230]
[76.230] VM(1/0/0)
VM(1/0/0) E&ME&M OffHook
OffHook
[76.430]
[76.430] VM(1/0/0)
VM(1/0/0) WinkDura
WinkDura timeout,
timeout, Tx
Tx OFFHOOK_IND
OFFHOOK_IND
[76.430]
[76.430] VM(1/0/0)
VM(1/0/0) E&ME&M OnHook
OnHook
[76.430]
[76.430] VM(1/0/0)
VM(1/0/0) play
play Dial
Dial tone
tone
22 <CEP
<CEP 010000>
010000> :: CallCall Initiated
Initiated :: calledNumber()
calledNumber() crv(0)
crv(0) total(0)
total(0)
33 <Call
<Call 1>1> :: ******************
****************** Call Call Created
Created
status(InitiatedByE&M)
status(InitiatedByE&M) ******* ******* BLANK
BLANK

www.addpac.com VoIP Training Guide 107


call Trace
- ISDN PRI (1/3)–

AP2520#
AP2520# debug
debug voipvoip call
call 10
10 <CEP
<CEP 00000f>00000f> :: InitiateOutCall
InitiateOutCall :: calledNum(1000),
calledNum(1000),
AP2520#
AP2520# debug
debug rta rta ipc
ipc callingNum(2003),
callingNum(2003), callerPort(
callerPort(
AP2520#
AP2520# debug
debug rta rta q931
q931 b)
b) type(E1)
type(E1)
AP2520#
AP2520# [6425.650]
[6425.650] Q931[0]Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=37len=37 [6425.665]
[6425.665] RTA(0/0/11)
RTA(0/0/11) Rx Rx PCC_BCH_CONN
PCC_BCH_CONN peerId(0/0/15)
peerId(0/0/15)
[6425.650]
[6425.650] Q931[0]
Q931[0] Rx Rx [SETUP]
[SETUP] 08 08 02
02 0e
0e a3
a3 05
05 a1
a1 04
04 03
03 80
80 90
90 a3
a3 18
18 03
03 [6425.665]
[6425.665] VM(0/0/11)
VM(0/0/11) Fax Fax disable
disable
a9
a9 83 83 8b
8b 6c
6c 0505 c9c9 32
32 33 [6425.665]
[6425.665] VM(0/0/15)
VM(0/0/15) Fax Fax disable
disable
00 30
30 33
33 70
70 0c
0c 80 80 3535 36
36 36
36 3434 3737 37
37 35
35 31
31 30
30 30
30 30
30 [6425.665]
[6425.665] VM(0/0/11)
VM(0/0/11) play play mute
mute
SendingCom
SendingCom :: a1 a1 [6425.665]
[6425.665] Q931[0]
Q931[0] Rx Rx PCC_SETUP_REQ
PCC_SETUP_REQ CR=16 CR=16 B=15
B=15 Excl
Excl CZ=128
CZ=128 PG=0
PG=0
Bearer_Cap
Bearer_Cap :: 04 04 03
03 8080 90
90 a3a3 Cd='1000'
Cd='1000' Cg=80
Cg=80 80 80 '2003'
'2003'
ChannelId
ChannelId : 18 03 a9 83 8b
: 18 03 a9 83 8b [6425.665]
[6425.665] Q931[0]
Q931[0] Tx Tx [SETUP]
[SETUP] 08 08 02
02 00 00 10
10 05
05 04
04 03
03 80
80 90
90 a3
a3 18
18 03
03 a9
a9
CallingNum 83
83 8f8f 6c
6c 05
05 80
80 3232 30
30 33
CallingNum :: 6c 6c 05
05 c9c9 32
32 3030 30
30 33
33
CalledNum 00 33
33 7070 05
05 80
80 31 31 30
30 30
30 30
30 7d
7d 0202 91
91 81
81 a1a1
CalledNum : 70 0c 80 35 36 36 34
: 70 0c 80 35 36 36 34 37
37 37
37 35
35 31
31 30
30 30
30 30
30
11 <Dev Bearer_Cap : 04 03 80
Bearer_Cap : 04 03 80 90 a3 90 a3
<Dev 000000>
000000> :: CCC_GetBchannel
CCC_GetBchannel :: bChNo(11)
bChNo(11) exclusive(1)
exclusive(1)
[6425.655] ChannelId
ChannelId :: 18 18 03
03 a9
a9 8383 8f
8f
[6425.655] Q931[0]
Q931[0] Tx Tx PCC_SETUP_IND
PCC_SETUP_IND CR=3747 CR=3747 B=11B=11 Excl
Excl CZ=0
CZ=0 PG=0
PG=0
Cd='56647751000'
Cd='56647751000' Cg='2003' Cg='2003' CallingNum
CallingNum :: 6c 6c 05
05 80
80 3232 30
30 30
30 33
33
[6425.655]
[6425.655] Q931[0]
Q931[0] Tx Tx [CALL_P]
[CALL_P] 08 08 02
02 8e
8e a3
a3 02
02 18
18 03
03 a9
a9 83
83 8b
8b CalledNum
CalledNum :: 70 70 05
05 80
80 3131 30
30 30
30 30
30
ChannelId
ChannelId :: 18 18 03
03 a9a9 83
83 8b8b HighLayerC
HighLayerC :: 7d 7d 02
02 91
91 8181
22 <CEP
<CEP 00000b>
00000b> :: Call Call Received
Received SendingCom
SendingCom :: a1 a1
33 <Call
<Call 34> 34> :: ******************
****************** Call Call Created
Created status(InitiatedByE1)
status(InitiatedByE1) 11
11 <CEP
<CEP 00000f>00000f> :: Outbound
Outbound callcall to
to CEP
CEP callId(3b06ec40-73f5-
callId(3b06ec40-73f5-
*********
********* 7768-8033-0002a4005670)
7768-8033-0002a4005670)
**********
********** callNum(34)
callNum(34)
44 <CEP
<CEP 00000b>
00000b> :: Calling
Calling number(2003)
number(2003) [6425.840]
[6425.840] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=10len=10
55 <CEP
<CEP 00000b>
00000b> :: Call Call id(3b06ec40-73f5-7768-8033-0002a4005670)
id(3b06ec40-73f5-7768-8033-0002a4005670) [6425.840]
[6425.840] Q931[0] Rx [CALL_P] 08
Q931[0] Rx [CALL_P] 08 02
02 80 80 10
10 02
02 18
18 03
03 a9
a9 83
83 8f
8f
callNum(34)
callNum(34) ChannelId : 18 03 a9
ChannelId : 18 03 a9 83 8f 83 8f
66 <Call
<Call 34> 34> :: MatchMatch check
check (MatchedPerfect)
(MatchedPerfect) [6425.840]
[6425.840] Q931[0]
Q931[0] Tx Tx PCC_SETUP_CNF
PCC_SETUP_CNF CR=16 CR=16 B=15
B=15 Excl
Excl CZ=0
CZ=0 PG=0
PG=0
77 <Call
<Call 34> 34> :: MatchAllProcess
MatchAllProcess After After Sorted
Sorted Cd='1000'
Cd='1000' Cg=80
Cg=80 80 80 '2003'
'2003'
<0>
<0> id(0)
id(0) dest(5664775....)
dest(5664775....) prefer(0)
prefer(0) selected(15)
selected(15) [6425.840]
[6425.840] RTA(0/0/15)
RTA(0/0/15) Rx Rx PCC_BCH_CONN
PCC_BCH_CONN peerId(0/0/11)
peerId(0/0/11)
88 <CGrp
<CGrp 000000>
000000> :: GetAvailableChannel
GetAvailableChannel (15) (15) [6425.840] VM(0/0/15) Fax
[6425.840] VM(0/0/15) Fax disable disable
99 <Call
<Call 34> 34> :: Initiate
Initiate callee
callee with
with dial-peer(5664775....)
dial-peer(5664775....) [6425.840]
[6425.840] VM(0/0/11)
VM(0/0/11) Fax Fax disable
disable
status(CalleeDetermin
status(CalleeDetermin [6425.845]
[6425.845] VM(0/0/15)
VM(0/0/15) play play mute
mute
edAll)
edAll) id(3b06ec40-73f5-7768-8033-0002a4005670)
id(3b06ec40-73f5-7768-8033-0002a4005670) [6425.855]
[6425.855] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=10len=10

www.addpac.com VoIP Training Guide 108


call Trace
- ISDN PRI (2/3)–

[6425.855]
[6425.855] Q931[0]
Q931[0] Rx Rx [ALERT]
[ALERT] 08 08 02
02 80
80 10
10 01
01 18
18 03
03 a9
a9 83
83 8f
8f [6431.410]
[6431.410] Q931[0]
Q931[0] Tx Tx PCC_DISC_IND
PCC_DISC_IND CR=3747
CR=3747 B=11B=11 Excl
Excl CZ=16
CZ=16 PG=8
PG=8
ChannelId
ChannelId :: 18
18 03
03 a9
a9 83
83 8f8f Cd='56647751000'
Cd='56647751000' Cg='2003'
Cg='2003'
[6425.855]
[6425.855] Q931[0]
Q931[0] Tx Tx PCC_ALERT_IND
PCC_ALERT_IND CR=16 CR=16 B=15
B=15 Excl
Excl CZ=0
CZ=0 PG=0
PG=0 [6431.485]
[6431.485] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=5
len=5
Cd='1000'
Cd='1000' Cg=80
Cg=80 80 80 '2003'
'2003' [6431.485]
[6431.485] Q931[0] Rx [REL_COM] 08
Q931[0] Rx [REL_COM] 08 02
02 0e
0e a3
a3 5a
5a
12
12 <Call
<Call 34>34> :: Alert
Alert from(f)
from(f) pseudo(0)
pseudo(0) inband(0)
inband(0) [6431.485]
[6431.485] Q931[0]
Q931[0] Tx Tx PCC_DISC_CNF
PCC_DISC_CNF CR=3747
CR=3747 B=11
B=11 Excl
Excl CZ=16
CZ=16 PG=8
PG=8
status(CalleeInitiated)
status(CalleeInitiated) Cd='56647751000'
Cd='56647751000' Cg='2003'
Cg='2003'
[6425.855]
[6425.855] RTA(0/0/11)
RTA(0/0/11) Rx Rx CC_ALERT_RSP
CC_ALERT_RSP peerId(0/0/0)
peerId(0/0/0) 15
15 <CEP
<CEP 00000b>
00000b> :: Disconnected(16)
Disconnected(16)
[6425.855]
[6425.855] VM(0/0/11) play RingBack tone
VM(0/0/11) play RingBack tone [6431.485]
[6431.485] RTA(0/0/11) Rx
RTA(0/0/11) Rx PCC_BCH_DISC
PCC_BCH_DISC peerId(0/0/0)
peerId(0/0/0)
[6425.855]
[6425.855] Q931[0]
Q931[0] Rx Rx PCC_ALERT_RSP
PCC_ALERT_RSP CR=3747 CR=3747 B=11B=11 Excl
Excl CZ=128
CZ=128 [6431.485]
[6431.485] VM(0/0/11)
VM(0/0/11) vopp
vopp idle
idle
PG=0
PG=0 16
16 <Call
<Call 34>34> :: Terminated
Terminated from(b)
from(b) this(Local:CallClear)
this(Local:CallClear)
[6425.860]
[6425.860] Q931[0]
Q931[0] Tx Tx [ALERT]
[ALERT] 08 08 02
02 8e
8e a3
a3 01
01 before(NULL)
before(NULL) forced(0)
forced(0)
[6429.685] Q931[0] Rx DL_DATA_IND
[6429.685] Q931[0] Rx DL_DATA_IND len=5 len=5 17
17 <CEP
<CEP 00000f>
00000f> :: StopSignal
StopSignal
[6429.685]
[6429.685] Q931[0]
Q931[0] Rx Rx [CONNECT]
[CONNECT] 08 08 02
02 80
80 10
10 07
07 [6431.490]
[6431.490] RTA(0/0/15) Rx
RTA(0/0/15) Rx AP_SVC_REQ
AP_SVC_REQ nSvcElem=1
nSvcElem=1 rawDataLen=0
rawDataLen=0
[6429.685]
[6429.685] Q931[0]
Q931[0] Tx Tx PCC_CONN_CNF
PCC_CONN_CNF CR=16 CR=16 B=15
B=15 Excl
Excl CZ=0
CZ=0 PG=0
PG=0 DTMF_STOP
DTMF_STOP
Cd='1000'
Cd='1000' Cg=80
Cg=80 80 80 '2003'
'2003' [6431.490]
[6431.490] VM(0/0/15)
VM(0/0/15) play
play mute
mute
[6429.685]
[6429.685] Q931[0]
Q931[0] Tx Tx [CONN_ACK]
[CONN_ACK] 08 08 02
02 00
00 10
10 0f
0f 18
18 <CEP
<CEP 00000f>
00000f> :: Disconnect
Disconnect (0)
(0)
13
13 <Call 34>
<Call 34> : Connected from(f)
: Connected from(f) [6431.490]
[6431.490] RTA(0/0/15)
RTA(0/0/15) Rx Rx PCC_BCH_DISC
PCC_BCH_DISC peerId(0/0/0)
peerId(0/0/0)
[6429.685]
[6429.685] Q931[0]
Q931[0] Rx Rx PCC_CONN_REQ
PCC_CONN_REQ CR=3747 CR=3747 B=11B=11 Excl
Excl CZ=128
CZ=128 PG=0
PG=0 [6431.490]
[6431.490] VM(0/0/15)
VM(0/0/15) vopp
vopp idle
idle
[6429.690]
[6429.690] Q931[0]
Q931[0] Tx Tx [CONNECT]
[CONNECT] 08 08 02
02 8e
8e a3
a3 07
07 [6431.490]
[6431.490] Q931[0]
Q931[0] Rx Rx PCC_DISC_REQ
PCC_DISC_REQ CR=16 CR=16 B=15
B=15 Excl
Excl CZ=144
CZ=144 PG=0
PG=0
[6429.690]
[6429.690] Q931[0]
Q931[0] Tx Tx PCC_CONN_CNF
PCC_CONN_CNF CR=3747 CR=3747 B=11B=11 Excl
Excl CZ=0
CZ=0 PG=0
PG=0 [6431.490]
[6431.490] Q931[0] Tx [DISCONN] 08 02 00 10 45 08 02 80 90
Q931[0] Tx [DISCONN] 08 02 00 10 45 08 02 80 90
Cd='56647751000'
Cd='56647751000' Cg='2003'Cg='2003' Cause
Cause :: 08
08 02
02 80
80 9090
14
14 <Call
<Call 34>34> :: Connected
Connected from(b)
from(b) [6431.560]
[6431.560] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=13
len=13
[6429.765]
[6429.765] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=5 len=5 [6431.560]
[6431.560] Q931[0]
Q931[0] Rx Rx [DISCONN]
[DISCONN] 08 08 02
02 80
80 10
10 45
45 08
08 02
02 81
81 90
90 1e
1e 02
02 81
81
[6429.765]
[6429.765] Q931[0]
Q931[0] Rx Rx [CONN_ACK]
[CONN_ACK] 08 08 02
02 0e
0e a3
a3 0f
0f 88
88
[6431.405]
[6431.405] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=13len=13 Cause
Cause :: 08
08 02
02 81
81 9090
[6431.405]
[6431.405] Q931[0]
Q931[0] Rx Rx [DISCONN]
[DISCONN] 08 08 02
02 0e
0e a3
a3 45
45 0808 02
02 81
81 90
90 1e
1e 02
02 81
81 ProgressIn
ProgressIn :: 1e
1e 02
02 81
81 8888
88
88 [6431.560]
[6431.560] Q931[0]
Q931[0] Tx Tx [RELEASE]
[RELEASE] 08 08 02
02 00
00 10
10 4d
4d 08
08 02
02 80
80 90
90
Cause
Cause :: 08
08 02
02 81
81 9090 Cause
Cause :: 08
08 02
02 80
80 9090
ProgressIn
ProgressIn :: 1e
1e 02
02 81
81 8888 [6431.560]
[6431.560] Q931[0]
Q931[0] Tx Tx PCC_DISC_IND
PCC_DISC_IND CR=16CR=16 B=15
B=15 Excl
Excl CZ=16
CZ=16 PG=8
PG=8
[6431.405]
[6431.405] Q931[0]
Q931[0] Tx Tx [RELEASE]
[RELEASE] 08 08 02
02 8e
8e a3
a3 4d
4d 08
08 02
02 80
80 90
90 Cd='1000'
Cd='1000' Cg=80
Cg=80 80 80 '2003'
'2003'
Cause : 08 02 80
Cause : 08 02 80 90 90 [6431.585]
[6431.585] Q931[0]
Q931[0] Rx Rx DL_DATA_IND
DL_DATA_IND len=17
len=17

www.addpac.com VoIP Training Guide 109


call Trace
- ISDN PRI (3/3)–

[6431.585]
[6431.585] Q931[0]
Q931[0] Rx Rx [RELEASE]
[RELEASE] 08 08 02
02 80
80 10
10 4d
4d 00
00 01
01 08
08 08
08 02
02 00
00 10
10 45
45
08
08 02 02 80
80 90
90
InfoElemId
InfoElemId :: 00
00 01
01 08
08
Cause
Cause : 08 02 00
: 08 02 00 10
10
InfoElemId
InfoElemId :: 45
45 08
08 02
02 80
80 90
90 50
50 3d3d 08
08 00
00 0000
[6431.585]
[6431.585] Q931[0]
Q931[0] Tx Tx PCC_DISC_CNF
PCC_DISC_CNF CR=16 CR=16 B=15
B=15 Excl
Excl CZ=100
CZ=100 PG=8
PG=8
Cd='1000'
Cd='1000' Cg=80Cg=80 8080 '2003'
'2003'
[6431.590]
[6431.590] Q931[0]
Q931[0] Tx Tx [REL_COM]
[REL_COM] 08 08 02
02 00
00 10
10 5a
5a 08
08 03
03 80
80 e4
e4 08
08
Cause
Cause :: 08
08 03
03 80
80 e4
e4 08
08
19
19 <CEP
<CEP 00000f>00000f> :: Disconnected(100)
Disconnected(100)

BLANK
BLANK

www.addpac.com VoIP Training Guide 110


call Trace
- R2 (1/2) –

AP2520#
AP2520# debug
debug vv cc [4036.280]
[4036.280] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '6''6'
AP2520#
AP2520# debug
debug rta
rta r2
r2 [4036.280]
[4036.280] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit
AP2520#
AP2520# debug
debug rta
rta ipc
ipc [4036.280]
[4036.280] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
AP2520#
AP2520# [4032.500]
[4032.500] R2(0/0/12)
R2(0/0/12) Rx Rx CAS
CAS A=0 A=0 B=0
B=0 10
10 <Call
<Call 7>7> :: Digit(6)
Digit(6) at
at CalleeUndetermined
CalleeUndetermined
[4032.500]
[4032.500] R2(0/0/12)
R2(0/0/12) Tx Tx CAS
CAS A=1A=1 B=1B=1 11
11 <Call
<Call 7>7> :: MatchedPartially
MatchedPartially
[4032.500]
[4032.500] VM(0/0/12)
VM(0/0/12) Tx Tx OFFHOOK_IND
OFFHOOK_IND [4036.460]
[4036.460] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ON
ON
11 <CEP
<CEP 00000c> : Call
00000c> : Call Received
Received [4036.460] VM(0/0/12) play
[4036.460] VM(0/0/12) play mutemute
22 <CEP
<CEP 00000c>
00000c> :: Call
Call Initiated
Initiated :: calledNumber()
calledNumber() crv(0)
crv(0) total(0)
total(0) [4036.560]
[4036.560] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
33 <Call
<Call 7>
7> :: ******************
****************** Call Call Created
Created status(InitiatedByE1)
status(InitiatedByE1) [4036.580]
[4036.580] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-4:
I-4: Digit
Digit 44
********
******** [4036.580]
[4036.580] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '4''4'
***********
*********** [4036.580]
[4036.580] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit
44 <CEP
<CEP 00000c>
00000c> :: Calling
Calling number()
number() 12
12 <Call
<Call 7>7> :: Digit(4)
Digit(4) at
at CalleeUndetermined
CalleeUndetermined
[4032.505]
[4032.505] VM(0/0/12)
VM(0/0/12) playplay mute
mute 13
13 <Call
<Call 7>7> :: MatchedPartially
MatchedPartially
55 <CEP
<CEP 00000c>
00000c> :: Call
Call id(5405ec40-4b08-e229-800d-
id(5405ec40-4b08-e229-800d- [4036.760]
[4036.760] R2(0/0/12) MFC
R2(0/0/12) MFC signal
signal OFF,
OFF, mute
mute ON
ON
0002a400aca6)
0002a400aca6) callNum(7)
callNum(7) [4036.760] VM(0/0/12) play mute
[4036.760] VM(0/0/12) play mute
[4035.700]
[4035.700] R2(0/0/12)
R2(0/0/12) Rx Rx FW
FW I-5:
I-5: Digit
Digit 55 [4036.860]
[4036.860] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
[4035.700]
[4035.700] VM(0/0/12)
VM(0/0/12) Tx Tx DIGIT_IND
DIGIT_IND '5' '5' [4036.880]
[4036.880] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-7:
I-7: Digit
Digit 77
[4035.700]
[4035.700] R2(0/0/12)
R2(0/0/12) Tx Tx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit [4036.880]
[4036.880] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '7''7'
66 <Call
<Call 7>
7> :: Digit(5)
Digit(5) atat InitiatedByE1
InitiatedByE1 [4036.880]
[4036.880] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit
77 <Call
<Call 7>
7> :: MatchedPartially
MatchedPartially 14 <Call
14 <Call 7>7> :: Digit(7)
Digit(7) at
at CalleeUndetermined
CalleeUndetermined
[4035.880]
[4035.880] R2(0/0/12)
R2(0/0/12) MFCMFC signal
signal OFF,
OFF, mute
mute ON ON 15 <Call
15 <Call 7>7> :: MatchedPartially
MatchedPartially
[4035.880] VM(0/0/12) play
[4035.880] VM(0/0/12) play mute mute [4037.060]
[4037.060] R2(0/0/12) MFC
R2(0/0/12) MFC signal
signal OFF,
OFF, mute
mute ON
ON
[4035.980]
[4035.980] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout [4037.060] VM(0/0/12) play mute
[4037.060] VM(0/0/12) play mute
[4036.000]
[4036.000] R2(0/0/12) Rx FW
R2(0/0/12) Rx FW I-6:
I-6: Digit
Digit 66 [4037.160]
[4037.160] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
[4036.000]
[4036.000] VM(0/0/12)
VM(0/0/12) Tx Tx DIGIT_IND
DIGIT_IND '6' '6' [4037.170]
[4037.170] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-7:
I-7: Digit
Digit 77
[4036.000]
[4036.000] R2(0/0/12)
R2(0/0/12) Tx Tx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit [4037.170]
[4037.170] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '7''7'
88 <Call
<Call 7>
7> :: Digit(6)
Digit(6) atat CalleeUndetermined
CalleeUndetermined [4037.170]
[4037.170] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit
99 <Call
<Call 7>
7> :: MatchedPartially
MatchedPartially 16 <Call
16 <Call 7>7> :: Digit(7)
Digit(7) at
at CalleeUndetermined
CalleeUndetermined
[4036.180]
[4036.180] R2(0/0/12)
R2(0/0/12) MFCMFC signal
signal OFF,
OFF, mute
mute ON ON 17 <Call
17 <Call 7>7> :: MatchedPartially
MatchedPartially
[4036.180] VM(0/0/12) play
[4036.180] VM(0/0/12) play mute mute [4037.350]
[4037.350] R2(0/0/12) MFC
R2(0/0/12) MFC signal
signal OFF,
OFF, mute
mute ON
ON
[4036.280]
[4036.280] R2(0/0/12)
R2(0/0/12) Rx Rx FW
FW I-6:
I-6: Digit
Digit 66 [4037.350] VM(0/0/12) play mute
[4037.350] VM(0/0/12) play mute

www.addpac.com VoIP Training Guide 111


call Trace
- R2 (2/2) –

[4037.450]
[4037.450] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout [4038.540]
[4038.540] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ONON
[4037.470]
[4037.470] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-5:
I-5: Digit
Digit 55 [4038.540]
[4038.540] VM(0/0/12)
VM(0/0/12) play
play mute
mute
[4037.470]
[4037.470] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '5''5' [4038.640]
[4038.640] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
[4037.470]
[4037.470] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit [4038.670]
[4038.670] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-10:
I-10: Digit
Digit 00
18
18 <Call
<Call 7>7> :: Digit(5)
Digit(5) at
at CalleeUndetermined
CalleeUndetermined [4038.670]
[4038.670] VM(0/0/12)
VM(0/0/12) Tx Tx DIGIT_IND
DIGIT_IND '0' '0'
19
19 <Call
<Call 7>7> :: MatchedPartially
MatchedPartially [4038.670]
[4038.670] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:A1: Send
Send Next
Next Digit
Digit
[4037.650]
[4037.650] R2(0/0/12) MFC
R2(0/0/12) MFC signal
signal OFF,
OFF, mute
mute ON
ON 26
26 <Call 7>
<Call 7> : Digit(0) at CalleeUndetermined
: Digit(0) at CalleeUndetermined
[4037.650] VM(0/0/12) play
[4037.650] VM(0/0/12) play mutemute 27
27 <Call
<Call 7>7> :: MatchedPerfect
MatchedPerfect
[4037.750]
[4037.750] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout [4038.670]
[4038.670] RTA(0/0/12)
RTA(0/0/12) Rx Rx RCC_ADDR_CMP
RCC_ADDR_CMP peerId(0/0/0)
peerId(0/0/0)
[4037.770]
[4037.770] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-1:
I-1: Digit
Digit 11 [4038.670]
[4038.670] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A5:A5: Send
Send Calling
Calling Category
Category and
and Number
Number
[4037.770]
[4037.770] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '1''1' [4038.850]
[4038.850] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ONON
[4037.770]
[4037.770] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit [4038.850]
[4038.850] VM(0/0/12)
VM(0/0/12) play
play mute
mute
20
20 <Call
<Call 7>7> :: Digit(1)
Digit(1) at
at CalleeUndetermined
CalleeUndetermined [4038.950]
[4038.950] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
21
21 <Call
<Call 7>7> :: MatchedPartially
MatchedPartially [4039.130]
[4039.130] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ONON
[4037.950]
[4037.950] R2(0/0/12) MFC
R2(0/0/12) MFC signal
signal OFF,
OFF, mute
mute ON
ON [4039.130] VM(0/0/12) play
[4039.130] VM(0/0/12) play mutemute
[4037.950] VM(0/0/12) play
[4037.950] VM(0/0/12) play mutemute [4039.230]
[4039.230] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
[4038.050]
[4038.050] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout [4039.250]
[4039.250] R2(0/0/12)
R2(0/0/12) RxRx FW
FW II-1:
II-1: Subscriber
Subscriber without
without priority
priority
[4038.070]
[4038.070] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-10:
I-10: Digit
Digit 00 [4039.250]
[4039.250] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A5:A5: Send
Send Calling
Calling Category
Category and
and Number
Number
[4038.070]
[4038.070] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '0''0' [4039.430]
[4039.430] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ONON
[4038.070]
[4038.070] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit [4039.430]
[4039.430] VM(0/0/12)
VM(0/0/12) play
play mute
mute
22
22 <Call
<Call 7>7> :: Digit(0)
Digit(0) at
at CalleeUndetermined
CalleeUndetermined [4039.530]
[4039.530] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-2:
I-2: Digit
Digit 22
23
23 <Call
<Call 7>7> :: MatchedPartially
MatchedPartially [4039.530]
[4039.530] R2(0/0/12) Tx BW A5: Send Calling
R2(0/0/12) Tx BW A5: Send Calling Category
Category and
and Number
Number
[4038.250]
[4038.250] R2(0/0/12) MFC
R2(0/0/12) MFC signal
signal OFF,
OFF, mute
mute ON
ON [4039.530] R2(0/0/12) mute timeout
[4039.530] R2(0/0/12) mute timeout
[4038.250] VM(0/0/12) play
[4038.250] VM(0/0/12) play mutemute [4039.710]
[4039.710] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ONON
[4038.350]
[4038.350] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout [4039.710]
[4039.710] VM(0/0/12)
VM(0/0/12) play
play mute
mute
[4038.360]
[4038.360] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-10:
I-10: Digit
Digit 00 [4039.810]
[4039.810] R2(0/0/12)
R2(0/0/12) mute
mute timeout
timeout
[4038.360]
[4038.360] VM(0/0/12)
VM(0/0/12) TxTx DIGIT_IND
DIGIT_IND '0''0' [4039.820]
[4039.820] R2(0/0/12)
R2(0/0/12) RxRx FW
FW I-10:
I-10: Digit
Digit 00
[4038.360]
[4038.360] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A1:
A1: Send
Send Next
Next Digit
Digit [4039.820]
[4039.820] R2(0/0/12)
R2(0/0/12) TxTx BW
BW A5:A5: Send
Send Calling
Calling Category
Category and
and Number
Number
24
24 <Call
<Call 7>7> :: Digit(0)
Digit(0) at
at CalleeUndetermined
CalleeUndetermined [4040.000]
[4040.000] R2(0/0/12)
R2(0/0/12) MFC
MFC signal
signal OFF,
OFF, mute
mute ONON
25
25 <Call
<Call 7>7> :: MatchedPartially
MatchedPartially [4040.000]
[4040.000] VM(0/0/12)
VM(0/0/12) play
play mute
mute

www.addpac.com VoIP Training Guide 112


call Trace
- Analog Event –

Hook
Hook off/on
off/on
AP200#
AP200# debug
debug rta
rta ipc
ipc
AP200#
AP200# [2935.900] VM(0/1/0)
[2935.900] VM(0/1/0) vmOffHook
vmOffHook
[2935.960]
[2935.960] VM(0/1/0)
VM(0/1/0) vmTmoOffHook
vmTmoOffHook
[2935.960]
[2935.960] VM(0/1/0)
VM(0/1/0) Rx Rx OffHook
OffHook
[2935.960]
[2935.960] VM(0/1/0)
VM(0/1/0) Tx Tx OFFHOOK_IND
OFFHOOK_IND
[2935.960]
[2935.960] VM(0/1/0)
VM(0/1/0) play
play Dial
Dial tone
tone
[2935.960]
[2935.960] RTA(0/1/0)
RTA(0/1/0) Rx Rx CC_DISCONN_REQ
CC_DISCONN_REQ CZ=0,
CZ=0, peerId(0/0/0)
peerId(0/0/0)
[2935.960] VM(0/1/0) play Reorder
[2935.960] VM(0/1/0) play Reorder tone tone
[2937.375]
[2937.375] VM(0/1/0)
VM(0/1/0) vmOnHook
vmOnHook
[2937.475]
[2937.475] VM(0/1/0) vmTmoOnHook
VM(0/1/0) vmTmoOnHook
[2937.575]
[2937.575] VM(0/1/0)
VM(0/1/0) vmTmoOnHook
vmTmoOnHook
[2937.675]
[2937.675] VM(0/1/0)
[2937.675]
VM(0/1/0) vmTmoOnHook
vmTmoOnHook BLANK
BLANK
[2937.675] VM(0/1/0)
VM(0/1/0) Rx Rx OnHook
OnHook
[2937.675]
[2937.675] VM(0/1/0)
VM(0/1/0) vopp
vopp idle
idle
[2937.675]
[2937.675] VM(0/1/0)
VM(0/1/0) Tx Tx DISCONN_CNF
DISCONN_CNF

Ring
Ring
AP200#
AP200# debug
debug rta
rta ipc
ipc
AP200#
AP200# [12484.065]
[12484.065] VM(0/0/0)
VM(0/0/0) RxRx FXO
FXO Ring
Ring Actv
Actv
[12484.065] VM(0/0/0) Tx RING_IND
[12484.065] VM(0/0/0) Tx RING_IND
[12485.075]
[12485.075] VM(0/0/0)
VM(0/0/0) Rx Rx FXO
FXO Ring
Ring Idle
Idle
[12485.075] VM(0/0/0) FXO OffHook
[12485.075] VM(0/0/0) FXO OffHook
[12485.075]
[12485.075] VM(0/0/0)
VM(0/0/0) play
play Dial
Dial tone
tone
[12485.075]
[12485.075] VM(0/0/0)
VM(0/0/0) Tx Tx OFFHOOK_IND
OFFHOOK_IND
[12491.260]
[12491.260] VM(0/0/0)
VM(0/0/0) listen
listen Reorder
Reorder tone
tone
[12491.260]
[12491.260] VM(0/0/0)
VM(0/0/0) vopp
vopp idle
idle
[12491.260]
[12491.260] VM(0/0/0)
VM(0/0/0) FXOFXO OnHook
OnHook
[12491.265]
[12491.265] VM(0/0/0) Tx DISCONN_CNF
VM(0/0/0) Tx DISCONN_CNF

www.addpac.com VoIP Training Guide 113


Chapter 4 Configuration Example

Configuration
Configuration Example
Example
•• IP
IP telephony
telephony Network
Network with
with ITSP
ITSP
•• GK
GK routed
routed and
and direct
direct call
call with
with ITSP
ITSP between
between branch
branch and
and Head
Head Quarter
Quarter

www.addpac.com VoIP Training Guide 114


Configuration Example
- IP Telephony Network with ITSP (1/10)–

www.addpac.com VoIP Training Guide 115


Configuration Example
- IP Telephony Network with ITSP (2/10) –

Requirement
Requirement

•• routing
routing via GK Local
via GK Local Area/long-distance/International/Mobile
Area/long-distance/International/Mobile Call
Call
•• Specific
Specific number
number which
which has
has below
below prefix1566
prefix1566 should
should be
be routed
routed via
via PSTN
PSTN
•• 1566,
1566, 1588,
1588, 100,
100, 106,
106, 060,
060, 080,
080, 012,
012, 015
015
•• Inbound
Inbound Call
Call scenario
scenario should
should be be the
the same
same with
with old
old
redirect
redirect PSTN
PSTN call(FXO)
call(FXO) to to local
local PABX(FXS).
PABX(FXS).
•• PSTN
PSTN Backup
Backup ifif internet
internet line
line has
has some
some problem.
problem.

www.addpac.com VoIP Training Guide 116


Configuration Example
- IP Telephony Network with ITSP (3/10) –
Configuration
!! !!
version
version 6.24
6.24 snmp
snmp name
name AP2520
AP2520
!!
!!
hostname
hostname L-eleL-ele
!! no
no arp
arp reset
reset
!! !!
no
no ip-share
ip-share enable
enable !!
!! !!
!Ethernet
!Ethernet Interface
Interface is
is ADSL
ADSL
!! Voice
Voice service
service voip
voip configuration.
configuration.
interface ether0.0
interface ether0.0
no
no ipip address
address
!!
encapsulation
encapsulation pppoe
pppoe voice
voice service
service voip
voip
ppp
ppp authentication pap
authentication pap callin
callin fax
fax protocol
protocol t38
t38 redundancy
redundancy 00
ppp
ppp pappap sent-username
sent-username addpac
addpac password
password addpac
addpac fax
fax rate
rate 9600
9600
ppp ipcp ms-dns
ppp ipcp ms-dns
h323
h323 call
call start
start fast
fast
ppp
ppp ipcp
ipcp default-route
default-route
!! announcement
announcement element
element pstn-reroute
pstn-reroute
interface
interface ether1.0
ether1.0 !! Announcement
Announcement play play when
when Call
Call is
is re-routed
re-routed to
to
no
no ip
ip address
address PSTN by internet
PSTN by internet failfail

www.addpac.com VoIP Training Guide 117


Configuration Example
- IP Telephony Network with ITSP (4/10) –
Configuration
!! !!
!! Voice
Voice port
port configuration.
configuration. voice-port
voice-port 1/0
1/0
!! !! FXS
FXS
voice-port
voice-port 0/0
0/0 !!
!! FXS
FXS !!
!! voice-port
voice-port 1/1
1/1
!! !! FXS
FXS
voice-port
voice-port 0/1
0/1 !!
!! FXS
FXS !!
!! voice-port
voice-port 1/2
1/2
!! !! FXO
FXO
voice-port
voice-port 0/2
0/2 connection
connection plar
plar 9999
9999
!! FXO
FXO !!
connection
connection plar
plar 9999
9999 !!
!Redirect
!Redirect PSTN call(FXO) to
PSTN call(FXO) to Leyphone(FXS),
Leyphone(FXS), voice-port
voice-port 1/3
1/3
each
each FXS
FXS is
is assigned
assigned number
number with
with 9999
9999 !! FXO
FXO
!! connection
connection plar
plar 9999
9999
voice-port
voice-port 0/3
0/3 !!
!! FXO
FXO
connection
connection plar
plar 9999
9999
!!

www.addpac.com VoIP Training Guide 118


Configuration Example
- IP Telephony Network with ITSP (5/10) –
Configuration
!! Pots
Pots peer
peer configuration.
configuration. dial-peer
dial-peer voice
voice 10
10 pots
pots
!Assign
!Assign e.164
e.164 number
number for
for each
each FXS
FXS ports.
ports. destination-pattern
destination-pattern 9999
9999
dial-peer voice 0
dial-peer voice 0 potspots port 0/0
port 0/0
destination-pattern
destination-pattern 31082141000000
31082141000000 nono register
register e164
e164
port 0/0
port 0/0 !!
!! dial-peer
dial-peer voice
voice 11
11 pots
pots
dial-peer
dial-peer voice
voice 11 pots
pots destination-pattern
destination-pattern 9999
9999
destination-pattern
destination-pattern 31082141000001
31082141000001 port 0/1
port 0/1
port
port 0/1
0/1 nono register
register e164
e164
!! preference
preference 1 1
dial-peer
dial-peer voice
voice 44 pots
pots !!
destination-pattern
destination-pattern 31082140000002
31082140000002 dial-peer
dial-peer voice
voice 14
14 pots
pots
port 1/0
port 1/0 destination-pattern
destination-pattern 9999
9999
!! port
port 1/0
1/0
dial-peer
dial-peer voice
voice 55 pots
pots nono register
register e164
e164
destination-pattern
destination-pattern 31082140000003
31082140000003 preference
preference 22
port 1/1
port 1/1 !!
!! dial-peer
dial-peer voice
voice 15
15 pots
pots
!! Set
Set private
private number
number for
for connection
connection PLAR
PLAR destination-pattern
destination-pattern 9999
9999
PLAR
PLAR is used for call redirection FXO to
is used for call redirection FXO to FXS,
FXS, so
so e.164
e.164 9999
9999 port 1/1
port 1/1
should not be registered.
should not be registered. nono register
register e164
e164
All
All of
of FXO
FXO isis same
same numnber
numnber 9999,
9999, so
so you
you should set «« hunt-
should set hunt- preference
preference 3 3
stop »» to
stop to end
end ofof hunting
hunting port
port which
which you
you want.
want. huntstop
huntstop
!!

www.addpac.com VoIP Training Guide 119


Configuration Example
- IP Telephony Network with ITSP (6/10) –
Configuration
!Prefix
!Prefix 060,
060, 080
080 call
call is
is routed
routed to
to PSTN(FXO)
PSTN(FXO) (Telco
(Telco Provider).
Provider). !! Prefix
Prefix 1566,1588
1566,1588 call
call is
is routed
routed to
to PSTN(FXO)
PSTN(FXO) (Telco
(Telco
dial-peer
dial-peer voice
voice 4242 pots
pots Provider)..
Provider)..
destination-pattern
destination-pattern 0[6-8]0.......
0[6-8]0....... dial-peer
dial-peer voice
voice 22
22 pots
pots
port
port 0/2
0/2 destination-pattern
destination-pattern 1[5-6][68][68]....
1[5-6][68][68]....
forward-digits
forward-digits last
last 99
99 port
port 0/2
0/2
!! forward-digits
forward-digits last
last 99
99
dial-peer
dial-peer voice
voice 4343 pots
pots !!
destination-pattern
destination-pattern 0[6-8]0.......
0[6-8]0....... dial-peer
dial-peer voice
voice 23
23 pots
pots
port
port 0/3
0/3 destination-pattern
destination-pattern 1[5-6][68][68]....
1[5-6][68][68]....
forward-digits
forward-digits last
last 99
99 port
port 0/3
0/3
preference
preference 11 forward-digits
forward-digits last
last 99
99
!! preference
preference 11
dial-peer
dial-peer voice
voice 4646 pots
pots !!
destination-pattern
destination-pattern 0[6-8]0.......
0[6-8]0....... dial-peer
dial-peer voice
voice 26
26 pots
pots
port
port 1/2
1/2 destination-pattern
destination-pattern 1[5-6][68][68]....
1[5-6][68][68]....
forward-digits
forward-digits last
last 99
99 port
port 1/2
1/2
preference 2
preference 2 forward-digits
forward-digits last
last 99
99
!! preference 2
preference 2
dial-peer
dial-peer voice
voice 4747 pots
pots !!
destination-pattern
destination-pattern 0[6-8]0.......
0[6-8]0....... dial-peer
dial-peer voice
voice 27
27 pots
pots
port
port 1/3
1/3 destination-pattern
destination-pattern 1[5-6][68][68]....
1[5-6][68][68]....
forward-digits
forward-digits last
last 99
99 port
port 1/3
1/3
preference 3
preference 3 forward-digits
forward-digits last
last 99
99
huntstop
huntstop preference 3
preference 3
huntstop
huntstop

www.addpac.com VoIP Training Guide 120


Configuration Example
- IP Telephony Network with ITSP (7/10) –
Configuration
!10X,11X
!10X,11X number
number is
is routed
routed to
to PSTN(FXO)
PSTN(FXO) (Telco
(Telco Provider).
Provider). !the
!the configuration
configuration Hunting
Hunting for
for PSTN
PSTN Backup.
Backup.
dial-peer
dial-peer voice
voice 32
32 pots
pots dial-peer
dial-peer voice
voice 102
102 pots
pots
destination-pattern
destination-pattern 1[0-1].
1[0-1].
port
destination-pattern T
destination-pattern T
port 0/2
0/2
forward-digits
forward-digits last
last 99
99 port
port 0/2
0/2
!! preference
preference 11
dial-peer
dial-peer voice
voice 33
33 pots
pots !!
destination-pattern
destination-pattern 1[0-1].
1[0-1].
port
dial-peer
dial-peer voice
voice 103
103 pots
pots
port 0/3
0/3
forward-digits
forward-digits last
last 99
99 destination-pattern T
destination-pattern T
preference 1
preference 1 port
port 0/3
0/3
!!
preference
preference 22
dial-peer
dial-peer voice
voice 36
36 pots
pots
destination-pattern
!!
destination-pattern 1[0-1].
1[0-1].
port
port 1/2
1/2 dial-peer
dial-peer voice
voice 106
106 pots
pots
forward-digits
forward-digits last
last 99
99 destination-pattern T
destination-pattern T
preference
preference 22 port
port 1/2
1/2
!!
dial-peer
preference
preference 33
dial-peer voice
voice 37
37 pots
pots
destination-pattern
destination-pattern 1[0-1].
1[0-1]. !!
port
port 1/3
1/3 dial-peer
dial-peer voice
voice 107
107 pots
pots
forward-digits
forward-digits last
last 99
99 destination-pattern T
destination-pattern T
preference
preference 33
huntstop
port
port 1/3
1/3
huntstop
preference
preference 44
huntstop
huntstop

www.addpac.com VoIP Training Guide 121


Configuration Example
- IP Telephony Network with ITSP (8/10) –
Configuration
!making
!making phone-book(number-ring
phone-book(number-ring plan) plan) for
for all
all of
of number
number .. dial-peer
dial-peer voice
voice 1021
1021 voip
voip
dial-peer
dial-peer voice
voice 1000
1000 voip
voip destination-pattern
destination-pattern 2.......
2.......
destination-pattern
destination-pattern TT session target ras
session target ras
session
session target
target ras
ras dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric translate-outgoing
translate-outgoing called-number
called-number 00
translate-outgoing
translate-outgoing called-number
called-number 00 !!
!! dial-peer
dial-peer voice
voice 1022
1022 voip
voip
dial-peer
dial-peer voice
voice 1010
1010 voip
voip (local
(local area)
area) destination-pattern [45789]......
destination-pattern [45789]......
destination-pattern
destination-pattern 0[3-6][1-5][2-9]......
0[3-6][1-5][2-9]...... session
session target
target ras
ras
session
session target
target ras
ras dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric translate-outgoing
translate-outgoing called-number
called-number 00
!! !!
dial-peer
dial-peer voice
voice 1011
1011 voip
voip (local
(local area)
area) dial-peer
dial-peer voice
voice 1023
1023 voip
voip
destination-pattern
destination-pattern 0[3-6][1-5]1.T
0[3-6][1-5]1.T destination-pattern
destination-pattern [36].....T
[36].....T
session
session target
target ras
ras session
session target
target ras
ras
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric
!! translate-outgoing
translate-outgoing called-number
called-number 00
dial-peer
dial-peer voice
voice 1020
1020 voip
voip !!
destination-pattern
destination-pattern 1[2-9].T
1[2-9].T dial-peer
dial-peer voice
voice 1030
1030 voip
voip (mobile)
(mobile)
session
session target
target ras
ras destination-pattern 011[19].......
destination-pattern 011[19].......
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric session
session target
target ras
ras
translate-outgoing
translate-outgoing called-number
called-number 00 dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
!!

www.addpac.com VoIP Training Guide 122


Configuration Example
- IP Telephony Network with ITSP (9/10) –
Configuration
dial-peer
dial-peer voice
voice 1031
1031 voip
voip (mobile)
(mobile) !!
destination-pattern
destination-pattern 011[2-8]......
011[2-8]...... dial-peer
dial-peer voice
voice 1035
1035 voip
voip (114
(114 Service
Service by
by KTF,LG
KTF,LG Telecom)
Telecom)
session target ras
session target ras destination-pattern 01[689]114
destination-pattern 01[689]114
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric session
session target
target ras
ras
!! dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
dial-peer
dial-peer voice
voice 1032
1032 voip
voip (mobile)
(mobile) !!
destination-pattern
destination-pattern 01[6-9]9.......
01[6-9]9....... dial-peer
dial-peer voice
voice 1040
1040 voip
voip
session target ras
session target ras destination-pattern 082.T
destination-pattern 082.T
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric session
session target
target ras
ras
!! dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
dial-peer
dial-peer voice
voice 1033
1033 voip
voip (mobile)
(mobile) !!
destination-pattern 01[6-9][2-8]......
destination-pattern 01[6-9][2-8]...... dial-peer
dial-peer voice
voice 1041
1041 voip
voip
session
session target
target ras
ras destination-pattern 0808[5-6].....
destination-pattern 0808[5-6].....
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric session
session target
target ras
ras
!! dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
dial-peer
dial-peer voice
voice 1034
1034 voip
voip (114
(114 service
service by
by SK
SK Telecom)
Telecom) !!
destination-pattern 01[17]114F
destination-pattern 01[17]114F dial-peer
dial-peer voice
voice 1042
1042 voip
voip
session
session target
target ras
ras destination-pattern 060.......
destination-pattern 060.......
dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric session
session target
target ras
ras
!! dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
!!

www.addpac.com VoIP Training Guide 123


Configuration Example
- IP Telephony Network with ITSP (10/10) –
Configuration
!! !! Gateway
Gateway configuration.
configuration.
dial-peer
dial-peer voice
voice 1043
1043 voip
voip !!
destination-pattern 0505.......
destination-pattern 0505....... gateway
gateway
session
session target
target ras
ras h323-id
h323-id 12345678
12345678 (H323-ID)
(H323-ID)
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric gkip 1.2.3.4 (GK
gkip 1.2.3.4 (GK ip) ip)
!! register
register (register
(register to
to GK)
GK)
dial-peer
dial-peer voice
voice 1044
1044 voip
voip !!
destination-pattern 0303[25].......
destination-pattern 0303[25]....... !!
session
session target
target ras
ras !! Translation
Translation Rule
Rule configuration.
configuration.
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric !!
!! translation-rule
translation-rule 00
dial-peer
dial-peer voice
voice 1045
1045 voip
voip rule
rule 00 [1-9]
[1-9] 02%01%99
02%01%99
destination-pattern 1544....
destination-pattern 1544.... (forlocal
(forlocal area code adding to destination number
area code adding to destination number -- Number
Number
session
session target
target ras
ras Translation
Translation ))
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric !!
!!
dial-peer
dial-peer voice
voice 1050
1050 voip
voip (International)
(International)
destination-pattern 00.........T
destination-pattern 00.........T
session
session target
target ras
ras
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
!!

www.addpac.com VoIP Training Guide 124


Configuration Example
- GK routed and direct call with ITSP between branch and head Quarter (1/6) –

www.addpac.com VoIP Training Guide 125


Configuration Example
- GK routed and direct call with ITSP between branch and head Quarter (2/6) –

Requirement
Requirement

•• Direct
Direct Internal
Internal call
call not
not through
through GK
GK
for
for this,
this, assign
assign virtual
virtual area
area code
code to
to each
each branch
branch
•• routing
routing via GK Local
via GK Local Area/long-distance/International/Mobile
Area/long-distance/International/Mobile Call
Call
•• PSTN
PSTN back-up
back-up when
when VoIP
VoIP network
network fail
fail
Head
Head Quarter
Quarter
PSTN
PSTN backup
backup by
by E1
E1 link
link down
down using
using PABX
PABX
Branch
Branch
PSTN
PSTN backup
backup by
by FXO
FXO hunting(directly
hunting(directly connected
connected telco
telco line
line with
with FXO)
FXO)
enable
enable Announcement
Announcement to
to notify
notify user.
user.
•• Inbound
Inbound call
call
Head
Head Quarter
Quarter is
is the
the same
same with
with old
old
Branch
Branch is
is redirected
redirected by
by AddPac
AddPac gateway
gateway (PSTN(FXO)
(PSTN(FXO) to
to FXS
FXS re-routing)
re-routing)

www.addpac.com VoIP Training Guide 126


Configuration Example
- GK routed and direct call with ITSP between branch and head Quarter (3/6) –
Configuration (HQ)
!! PRI
PRI controller
controller configuration.
configuration. !! !Set
!Set Action
Action when
when busyout
busyout status->
status-> action
action == E1
E1 interface
interface
!! !! ISDN
ISDN PRI
PRI Configuration.
Configuration. Link
Link down.
down.
controller
controller e1 1/0
e1 1/0 !!
channel-group
channel-group timeslots
timeslots 1-31
1-31 00 voice-port
voice-port 1/0
1/0 00
isdn protocol-emulate
isdn protocol-emulate user user !! E1
E1
!! busyout
busyout action
action port-down
port-down
!! Voice
Voice service
service voip
voip configuration.
configuration. !!
!! !VoIP related configuration.
!VoIP related configuration. !!
voice
voice service
service voip
voip !!
fax
fax protocol t38 redundancy
protocol t38 redundancy 00 !!
fax
fax rate
rate 9600
9600
h323
h323 call start
call start fast
fast
timeout tttl
timeout tttl 600600
timeout
timeout tterm
tterm 1800
1800
!! !set
!set PSTN backup condition.
PSTN backup condition.
busyout
busyout monitor
monitor gatekeeper
gatekeeper
busyout
busyout monitor
monitor voip-interface
voip-interface
!!

www.addpac.com VoIP Training Guide 127


Configuration Example
- GK routed and direct call with ITSP between branch and head Quarter (4/6) –
Configuration (HQ)
!! Pots
Pots peer peer configuration.
configuration. !!
!! !! !! !! Set
Set e.164
e.164 number
number for
for registration
registration to
to GK.
GK. dial-peer
dial-peer voice
voice 22
22 pots
pots
dial-peer voice
dial-peer voice 1 pots 1 pots destination-pattern
destination-pattern *1[1-9]T
*1[1-9]T
destination-pattern
destination-pattern 12345678 12345678 port
port 1/0
1/0 00
port 1/0
port 1/0 0 0 translate-outgoing
translate-outgoing called-number
called-number 2001
2001
preference
preference 99 preference
preference 11
huntstop
huntstop huntstop
huntstop
!! !! !! !! !! set
set virtual
virtual area
area code(local)
code(local) for
for internal
internal call
call branch
branch to
to !!
branch
branch . . dial-peer
dial-peer voice
voice 23
23 pots
pots
!! destination-pattern
destination-pattern *2[0-9]T
*2[0-9]T
dial-peer
dial-peer voice voice 11
11 pots
pots port
port 1/0
1/0 00
destination-pattern
destination-pattern *10T *10T translate-outgoing
translate-outgoing called-number
called-number 2001
2001
port 1/0
port 1/0 0 0 preference
preference 11
huntstop
huntstop huntstop
huntstop
!! !!
dial-peer
dial-peer voice voice 21
21 pots
pots ……
……
destination-pattern
destination-pattern [0-9].T [0-9].T ………
………
port 1/0
port 1/0 0 0 …………….
…………….
translate-outgoing
translate-outgoing called-number
called-number 20012001
preference
preference 11
huntstop
huntstop
!!

www.addpac.com VoIP Training Guide 128


Configuration Example
- GK routed and direct call with ITSP between branch and head Quarter (5/6) –
Configuration (HQ)
!! !! !! set
set virtual
virtual area
area code(remote)
code(remote) for
for internal
internal call
call branch
branch to
to
!! Voip
Voip peer
peer configuration.
configuration. branch
branch ..
!! !! set
set dial-number plan
dial-number plan for
for through
through GK(RAS)
GK(RAS) !!
!! dial-peer
dial-peer voice
voice 2011
2011 voip
voip
dial-peer
dial-peer voice
voice 1001
1001 voip
voip destination-pattern
destination-pattern *11T
*11T
destination-pattern
destination-pattern [0-9].T
[0-9].T session
session target
target 1.0.0.1
1.0.0.1
session
session target
target ras
ras dtmf-relay
dtmf-relay h245-alphanumeric
h245-alphanumeric
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric translate-outgoing
translate-outgoing calling-number
calling-number 2000
2000
translate-outgoing
translate-outgoing called-number
called-number 1001 1001 !!
huntstop
huntstop dial-peer
dial-peer voice
voice 2012
2012 voip
voip
!! destination-pattern *12T
destination-pattern *12T
dial-peer
dial-peer voice
voice 1002
1002 voip
voip session
session target
target 1.0.0.2
1.0.0.2
destination-pattern 01.........
destination-pattern 01......... dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric
session
session target
target ras
ras translate-outgoing
translate-outgoing calling-number
calling-number 2000
2000
dtmf-relay h245-alphanumeric
dtmf-relay h245-alphanumeric !!
huntstop
huntstop ……
……
!! ……..
……..
………
………

www.addpac.com VoIP Training Guide 129


Configuration Example
- GK routed and direct call with ITSP between branch and head Quarter (6/6) –
Configuration (HQ)
!! !! !! GK
GK related
related parameter
parameter !! !! Number
Number Translation
Translation Rule
Rule
!! !!
translation-rule
translation-rule 2000
2000
!! Gateway
Gateway configuration.
configuration. rule
rule 00 T
T *10%99
*10%99
!! !!
gateway
gateway translation-rule
translation-rule 2001
2001
h323-id
h323-id addpac
addpac rule
rule 00 [0-9].T
[0-9].T 70%01%99
70%01%99
gkip 1.2.3.4
gkip 1.2.3.4 rule
rule 10 *10T
10 *10T 7030161%04%99
7030161%04%99
register
register rule
rule 11
11 *11T
*11T 7003232618%04%99
7003232618%04%99
rule 12
rule 12 *12T
*12T 7003190691%04%99
7003190691%04%99

Configuration (Branch)

Skip
Skip

www.addpac.com VoIP Training Guide 130

You might also like