Код:
Current configuration:
!
version 8.51.002
!
hostname GS1002
!
username root password router administrator
username guest password guest user
!
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.1.10 255.255.255.0
speed auto
no qos-control
!
interface FastEthernet0/1
ip address 192.168.10.1 255.255.255.0
speed auto
no qos-control
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1 10
!
!
!
!
http server
!
dns name-server 8.8.8.8
dns name-server 192.168.1.1
logging command
logging event 4-warning
logging host server ip 192.168.1.2
logging on
!
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
protocol sip
dtmf-relay out-of-band
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
no call-barring unconfigured-ip-address
no voip-inbound-call-barring enable
!
!
! Voice port configuration.
!
! GSM
voice-port 0/0
connection plar 201
no caller-id enable
!
!
! GSM
voice-port 0/1
connection plar 202
no caller-id enable
!
!
! FXO
voice-port 0/2
connection plar 203
no caller-id enable
!
!
! FXO
voice-port 0/3
connection plar 204
no caller-id enable
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 2024 pots
destination-pattern 03T
port 0/2
user-name fxo1
user-password fxo1pass
translate-outgoing called-number 3
preference 9
!
dial-peer voice 2025 pots
destination-pattern 04T
port 0/3
preference 9
!
dial-peer voice 3048 pots
destination-pattern 01T
port 0/0
user-name gsm1
user-password gsm1pass
translate-outgoing called-number 1
!
dial-peer voice 3049 pots
destination-pattern 02T
port 0/1
user-name gsm2
user-password gsm2pass
translate-outgoing called-number 2
!
!
!
! Voip peer configuration.
!
dial-peer voice 0 voip
destination-pattern T
session target sip-server
session protocol sip
voice-class codec 1
no vad
dtmf-relay rtp-2833
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.1.10
no ignore-msg-from-other-gk
!
!
! Translation Rule configuration.
!
translation-rule 1
rule 0 01T T
!
translation-rule 2
rule 0 02T T
!
translation-rule 3
rule 0 03T T
!
translation-rule 4
rule 0 04T T
!
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-server 109.170.88.71 5060 126
remote-party-id
register e164
!
!
! Tones
!
!
!
!
line console
!
line vty
!
gsm dev-restart-by-unreg 300
!
gsm 0/0
band-select dcs1800
sms-language utf8
!
gsm 0/1
band-select dcs1800
sms-language utf8
!
end