офис
Код:
Код:
router# sh run
!
version 8.234
!
hostname router
!
no bridge spanning-tree
!
access-list 1 permit host a.b.c.d
!
dhcp-list 0 type relay
dhcp-list 0 option router-option proxy
!
dhcp-list 1 type relay
dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128
!
ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface null0
no ip address
!
interface ether0.0
ip address 10.1.0.19 255.255.0.0
line-ctrl full-duplex
!
interface ether0.1
no ip address
!
interface ether1.0
no ip address
!
interface null0
no ip address
!
snmp name AP1000
!
no arp reset
!
route 0.0.0.0 0.0.0.0 proxy
!
dnshost domain domain
dnshost nameserver a.b.c.d
!
! VoIP configuration.
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
announcement language english
busyout monitor gatekeeper
no busyout monitor callagent
busyout monitor voip-interface
!
! Voice port configuration.
!
! FXS
voice-port 0/0
caller-id enable
!
! FXS
voice-port 0/1
caller-id enable
!
! FXS
voice-port 0/2
caller-id enable
!
! FXS
voice-port 0/3
caller-id enable
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern 1T
port 0/0
no register e164
preference 3
!
dial-peer voice 2 pots
destination-pattern 1T
port 0/1
no register e164
preference 2
!
dial-peer voice 3 pots
destination-pattern 1T
port 0/2
no register e164
preference 1
!
dial-peer voice 4 pots
destination-pattern 1T
port 0/3
no register e164
!
! Voip peer configuration.
!
dial-peer voice 200 voip
destination-pattern 3T
session target a.b.c.d
answer-address a.b.c.d
codec g711alaw
dtmf-relay h245-alphanumeric
preference 1
huntstop
!
! Gateway configuration.
!
gateway
h323-id voip.10.1.0.19
!
! SIP UA configuration.
!
sip-ua
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
! Tones
!
voip-interface ether0.0
конфиг филиал
Код:
Код:
version 8.30K
!
hostname AP1000
!
!
no bridge spanning-tree
!
access-list 1 permit any
access-list 1 permit host a.b.c.d
!
dhcp-list 0 type server
dhcp-list 0 option router-option proxy
!
dhcp-list 1 type server
dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128
!
!
ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 10.1.15.1 255.255.0.0
!
interface ether0.1
no ip address
!
interface ether1.0
no ip address
!
snmp name AP1000
!
no arp reset
!
dnshost domain domain
dnshost nameserver a.b.c.d
!
! VoIP configuration.
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
busyout monitor gatekeeper
busyout monitor sip-server
no busyout monitor callagent
busyout monitor voip-interface
!
! Voice port configuration.
!
! FXS
voice-port 0/0
caller-id enable
!
! FXS
voice-port 0/1
caller-id enable
!
! FXS
voice-port 0/2
caller-id enable
!
! FXS
voice-port 0/3
caller-id enable
!
! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern 3T
port 0/0
no register e164
preference 1
!
dial-peer voice 2 pots
destination-pattern 3T
port 0/1
preference 2
!
dial-peer voice 3 pots
destination-pattern 3T
port 0/3
preference 3
!
dial-peer voice 4 pots
destination-pattern 3T
port 0/2
preference 4
!
! Voip peer configuration.
!
dial-peer voice 100 voip
destination-pattern 1T
session target a.b.c.d
answer-address a.b.c.d
codec g711alaw
dtmf-relay h245-alphanumeric
vad
preference 1
huntstop
!
! Gateway configuration.
!
gateway
h323-id voip.10.1.15.1
!
! SIP UA configuration.
!
sip-ua
!
! MGCP configuration.
!
mgcp
codec g711ulaw
vad
!
! Tones
!
voip-interface ether0.0
звонки из офиса в филиал
debug voip call
Код:
Код:
router# 1 <CEP> : Call Received
2 <CEP> : Call Initiated : calledNumber() crv(0) total(0)
3 <Call> : ****************** Call Created status(InitiatedByFXS
) *******************
4 <CEP> : Calling number()
5 <CEP> : Call id(3e523847-1816-64b3-8311-0002a403e25a) callNum(
393)
6 <Call> : Digit(3) at InitiatedByFXS
7 <Call> : MatchedAll
8 <Call> : Digit(1) at CalleeDeterminedWaitDigit
9 <Call> : MatchedAll
10 <Call> : Digit(0) at CalleeDeterminedWaitDigit
11 <Call> : MatchedAll
12 <Call> : Digit(2) at CalleeDeterminedWaitDigit
13 <Call> : MatchedAll
14 <Call> : Digit(#) at CalleeDeterminedWaitDigit
15 <Call> : MatchAllProcess After Sorted
<0> id(200) dest(3T) prefer(1) selected(96)
16 <Call> : Initiate callee with dial-peer(3T) status(CalleeDeterm
inedAll) id(3e523847-1816-64b3-8311-0002a403e25a)
17 <NetEP> : InitiateOutCall: calledNum(3102) callingNum() target(6
2.205.184.103)
18 <NetEP> : DoCall: calledAddr(3102@62.205.184.103) callingAddr()
19 <H323> : local capabilities.
number of capabilities = 4
1 : g711alaw-64k
2 : T.38
3 : UserInput/basicString
4 : UserInput/hookflash
20 <H225> : Try signalling TCP connect (62.205.184.103:1720)
21 <Main> : TCP connect Timeout(0).
22 <H225> : Signalling TCP connect fail
23 <Call> : Terminated from(ffffffff) this(Local:UnreachableDesti
nation) before(NULL) forced(0)
24 <CEP> : DisconnectCall at Busy
25 <CEP> : StopSignal
26 <CEP> : Disconnect (0)
27 <NetEP> : Call TO <3102> terminated reason(Local:UnreachableDest
ination)
28 <CEP> : Disconnected(16) at Disconnecting
Код:
Код:
[431993.620] VM(0/3/0) vmTmoOnHook
[431993.620] VM(0/3/0) Rx OnHook
[431993.620] VM(0/3/0) vopp idle
[431993.620] VM(0/3/0) Tx DISCONN_CNF
[431999.145] VM(0/3/0) vmOffHook
[431999.205] VM(0/3/0) vmTmoOffHook
[431999.205] VM(0/3/0) Rx OffHook
[431999.205] VM(0/3/0) vopp enable
[431999.205] VM(0/3/0) Tx OFFHOOK_IND
[431999.205] VM(0/3/0) play Dial tone
[432003.470] VM(0/3/0) Tx DIGIT_IND '3'
[432003.470] VM(0/3/0) play mute
[432003.720] VM(0/3/0) Tx DIGIT_IND '1'
[432003.970] VM(0/3/0) Tx DIGIT_IND '0'
[432004.220] VM(0/3/0) Tx DIGIT_IND '2'
[432004.470] VM(0/3/0) Tx DIGIT_IND '#'
[432004.470] VM(0/3/0) set T38 mode STD
[432004.470] VM(0/3/0) Fax rate 9600
[432008.475] RTA(0/3/0) Rx AP_SVC_REQ nSvcElem=1 rawDataLen=0
DTMF_STOP
[432008.475] VM(0/3/0) play mute
[432008.475] RTA(0/3/0) Rx CC_DISCONN_REQ CZ=0, peerId(0/0/0)
[432008.475] VM(0/3/0) play Reorder tone
[432010.915] VM(0/3/0) vmOnHook
[432010.965] VM(0/3/0) vmTmoOnHook
[432011.015] VM(0/3/0) vmTmoOnHook
[432011.065] VM(0/3/0) vmTmoOnHook
[432011.115] VM(0/3/0) vmTmoOnHook
[432011.165] VM(0/3/0) vmTmoOnHook
[432011.215] VM(0/3/0) vmTmoOnHook
[432011.265] VM(0/3/0) vmTmoOnHook
[432011.315] VM(0/3/0) vmTmoOnHook
[432011.365] VM(0/3/0) vmTmoOnHook
[432011.415] VM(0/3/0) vmTmoOnHook
[432011.465] VM(0/3/0) vmTmoOnHook
[432011.515] VM(0/3/0) vmTmoOnHook
[432011.565] VM(0/3/0) vmTmoOnHook
[432011.615] VM(0/3/0) vmTmoOnHook
[432011.615] VM(0/3/0) Rx OnHook
[432011.615] VM(0/3/0) vopp idle
[432011.615] VM(0/3/0) Tx DISCONN_CNF