!
version 8.51.008
!
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 dhcp
no ip dhcp unicast
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.73.1 via dhcp
!
!
!
!
http server
!
! dns domain-name taxi via dhcp
! dns name-server 172.24.1.1 via dhcp
! dns name-server 172.24.1.8 via dhcp
!
!
logging command
logging event 4-warning
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 881
ring detect-timeout 70
dial-tone-generate
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! GSM
voice-port 0/1
connection plar 882
ring detect-timeout 70
dial-tone-generate
caller-id enable
caller-id type etsi
caller-id name disable
!
!
! FXO
voice-port 0/2
no caller-id enable
!
!
! FXO
voice-port 0/3
no caller-id enable
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 3048 pots
destination-pattern .T
port 0/0
call-waiting
user-name gsm1
user-password gsm1pass
preference 2
!
dial-peer voice 3049 pots
destination-pattern .T
port 0/1
call-waiting
user-name gsm2
user-password gsm2pass
preference 3
!
!
!
! Voip peer configuration.
!
dial-peer voice 10100 voip
destination-pattern 88[12]
session target ip 192.168.73.2
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
description asterisk
!
!
!
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.73.2
no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729
codec preference 4 g7231r53
codec preference 5 g726r16
codec preference 6 g726r32
!
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-server 192.168.73.2
called-party-number to-field
register e164
!
!
! Tones
!
!
!
!
! SMTP sendmail configuration
!
sms-delivery
!
!
!
line console
!
line vty
!
mobile dev-restart-by-unreg 300
!
mobile 0/0
gsm sms-language utf8
!
mobile 0/1
gsm sms-language utf8
!
end
username=gsm1
secret=gsm1pass
type=friend
context=from_gsm1
dtmfmode=rfc2833
host=dynamic
register=gsm1:gsm1pass@192.168.73.4/gsm1
[gsm2]
username=gsm2
secret=gsm2pass
type=friend
context=from_gsm2
dtmfmode=rfc2833
host=dynamic
register=gsm2:gsm2pass@192.168.73.4/gsm2
[2012-09-28 21:24:43] NOTICE[19741]: chan_sip.c:23407 handle_request_invite: Failed to authenticate device <sip:79176201870@192.168.73.4>;tag=6f50d549a4