rossiv
Guru
- Joined
- Oct 26, 2008
- Messages
- 2,624
- Reaction score
- 139
I am setting up a backup circuit for a non-SIP PBX since our PRI has gone out three times already this month for hours at a time. I'm using a Patton 4118 as a bridge between the PBX and Vitelity.
From looking at a few sample configuration files, I think this configuration should work. Please let me know if it won't.
From looking at a few sample configuration files, I think this configuration should work. Please let me know if it won't.
Code:
cli version 3.20
clock local offset -05:00
dns-client server 8.8.8.8
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.1.1 port 123 version 4
system hostname patton.XXX.com
system
ic voice 0
low-bitrate-codec g729
profile ppp default
profile call-progress-tone US_Dialtone
play 1 1000 350 -13 440 -13
profile call-progress-tone US_Alertingtone
play 1 2000 440 -19 480 -19
pause 2 4000
profile call-progress-tone US_Busytone
play 1 500 480 -24 620 -24
pause 2 500
profile tone-set default
profile tone-set US
map call-progress-tone dial-tone US_Dialtone
map call-progress-tone ringback-tone US_Alertingtone
map call-progress-tone busy-tone US_Busytone
map call-progress-tone release-tone US_Busytone
map call-progress-tone congestion-tone US_Busytone
profile voip default
codec 1 g711ulaw64k rx-length 20 tx-length 20
profile pstn default
profile ringing-cadence default
play 1 1000
pause 2 4000
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface eth0
ipaddress 192.168.1.60 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context ip router
route 0.0.0.0 0.0.0.0 192.168.1.1 0
context cs switch
routing-table called-e164 TAB-IN
route 101 dest-interface IF-FXS0
route 102 dest-interface IF-FXS1
route 103 dest-interface IF-FXS2
route 104 dest-interface IF-FXS3
route 105 dest-interface IF-FXS4
route 106 dest-interface IF-FXS5
route 107 dest-interface IF-FXS6
route 108 dest-interface IF-FXS7
routing-table called-e164 TAB-OUT
route .%T dest-interface IF-PIAF ADD-CID
mapping-table calling-e164 to calling-name ADD-CID
map 101 to "Failover 1"
map 102 to "Failover 2"
map 103 to "Failover 3"
map 104 to "Failover 4"
map 105 to "Failover 5"
map 106 to "Failover 6"
map 107 to "Failover 7"
map 108 to "Failover 8"
interface sip IF-PIAF
bind context sip-gateway SIP-GW
route call dest-table TAB-IN
remote 98.XX.XX.XX
address-translation outgoing-call from-header user-part call host-part fix 98.XX.XX.XX
address-translation outgoing-call to-header user-part call host-part fix 98.XX.XX.XX
interface fxs IF-FXS0
route call dest-table TAB-OUT
no call-waiting
message-waiting-indication stutter-dial-tone
message-waiting-indication frequency-shift-keying
call-transfer
caller-id-presentation mid-ring
subscriber-number 101
use profile tone-set US
interface fxs IF-FXS1
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 102
use profile tone-set US
interface fxs IF-FXS2
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 103
use profile tone-set US
interface fxs IF-FXS3
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 104
use profile tone-set US
interface fxs IF-FXS4
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 105
use profile tone-set US
interface fxs IF-FXS5
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 106
use profile tone-set US
interface fxs IF-FXS6
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 107
use profile tone-set US
interface fxs IF-FXS7
route call dest-table TAB-OUT
no call-waiting
call-transfer
caller-id-presentation mid-ring
subscriber-number 108
use profile tone-set US
context cs switch
no shutdown
authentication-service AUTH_SVC
username 101 password blahblahblah
username 102 password blahblahblah
username 103 password blahblahblah
username 104 password blahblahblah
username 105 password blahblahblah
username 106 password blahblahblah
username 107 password blahblahblah
username 108 password blahblahblah
location-service PIAF
domain 1 98.XX.XX.XX
identity 101
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 102
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 103
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 104
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 105
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 106
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 107
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
identity 108
authentication outbound
authenticate 1 authentication-service AUTH_SVC
registration outbound
register auto
context sip-gateway SIP-GW
interface IF-PIAF
bind interface eth0 context router port 5060
context sip-gateway SIP-GW
bind location-service PIAF
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface eth0 router
no shutdown
port fxs 0 0
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS0 switch
no shutdown
port fxs 0 1
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS1 switch
no shutdown
port fxs 0 2
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS2 switch
no shutdown
port fxs 0 3
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS3 switch
no shutdown
port fxs 0 4
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS4 switch
no shutdown
port fxs 0 5
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS5 switch
no shutdown
port fxs 0 6
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS6 switch
no shutdown
port fxs 0 7
caller-id format etsi
use profile fxs us
encapsulation cc-fxs
bind interface IF-FXS7 switch
no shutdown