TRY THIS Patton 4118 Configuration

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.

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
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
This is what I am using now:
Code:
cli version 3.20
clock local default-offset -05:00
dns-client server 8.8.8.8
webserver port 80 language en
snmp community public ro
sntp-client
sntp-client server primary 192.168.1.1 port 123 version 4
sntp-client local-clock-offset
 
system
 
  ic voice 0
    low-bitrate-codec g729
 
profile service-policy RTP_Prio
  no rate-limit
 
  source traffic-class local-voice
    set ip dscp 46
 
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
  codec 2 g729 rx-length 20 tx-length 20
  dtmf-relay signaling default
 
profile pstn default
 
profile ringing-cadence default
  play 1 1000
  pause 2 4000
 
profile sip default
  no autonomous-transitioning
 
profile aaa default
  method 1 local
  method 2 none
 
context ip router
 
  interface IF_ETH_LAN
    ipaddress 192.168.1.60 255.255.255.0
    use profile service-policy RTP_Prio out
    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 RT_SIP_TO_FXS
    route 101 dest-interface IF_FXS_00
    route 102 dest-interface IF_FXS_01
    route 103 dest-interface IF_FXS_02
    route 104 dest-interface IF_FXS_03
    route 105 dest-interface IF_FXS_04
    route 106 dest-interface IF_FXS_05
    route 107 dest-interface IF_FXS_06
    route 108 dest-interface IF_FXS_07
 
  routing-table called-e164 RT_TO_PIAF
    route .%T dest-interface IF_SIP
 
  mapping-table called-e164 to called-e164 MT_ADDPAP
    map (.%) to 0\1
 
  interface sip IF_SIP
    bind context sip-gateway GW_SIP
    route call dest-table RT_SIP_TO_FXS
    remote 98.XX.XX.XX 5060
    overlap-dialing new-transaction emit
 
  interface fxs IF_FXS_00
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 101
    use profile tone-set US
 
  interface fxs IF_FXS_01
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 102
    use profile tone-set US
 
  interface fxs IF_FXS_02
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 103
    use profile tone-set US
 
  interface fxs IF_FXS_03
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 104
    use profile tone-set US
 
  interface fxs IF_FXS_04
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 105
    use profile tone-set US
 
  interface fxs IF_FXS_05
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 106
    use profile tone-set US
 
  interface fxs IF_FXS_06
    route call dest-table RT_TO_PIAF
    no call-waiting
    call-transfer
    caller-id-presentation mid-ring
    subscriber-number 107
    use profile tone-set US
 
  interface fxs IF_FXS_07
    route call dest-table RT_TO_PIAF
    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_PBX
  username 101 password thepasswordwashere encrypted
  username 102 password thepasswordwashere encrypted
  username 103 password thepasswordwashere encrypted
  username 104 password thepasswordwashere encrypted
  username 105 password thepasswordwashere encrypted
  username 106 password thepasswordwashere encrypted
  username 107 password thepasswordwashere encrypted
  username 108 password thepasswordwashere encrypted
 
location-service LOC_PBX
  domain 1 98.XX.XX.XX
 
  identity-group PBX
 
    registration outbound
      registrar 98.XX.XX.XX 5060
      lifetime 120
      register auto
      retry-timeout on-system-error 60
      retry-timeout on-client-error 60
      retry-timeout on-server-error 60
 
  identity 101 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 101
 
  identity 102 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 102
 
  identity 103 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 103
 
  identity 104 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 104
 
  identity 105 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 105
 
  identity 106 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 106
 
  identity 107 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 107
 
  identity 108 inherits PBX
 
    authentication outbound
      authenticate 1 authentication-service AUTH_PBX username 108
 
context sip-gateway GW_SIP
 
  interface lan
    bind interface IF_ETH_LAN context router port 5060
 
context sip-gateway GW_SIP
  bind location-service LOC_PBX
  no shutdown
 
port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface IF_ETH_LAN router
  no shutdown
 
port fxs 0 0
  encapsulation cc-fxs
  bind interface IF_FXS_00 switch
  no shutdown
 
port fxs 0 1
  encapsulation cc-fxs
  bind interface IF_FXS_01 switch
  no shutdown
 
port fxs 0 2
  encapsulation cc-fxs
  bind interface IF_FXS_02 switch
  no shutdown
 
port fxs 0 3
  encapsulation cc-fxs
  bind interface IF_FXS_03 switch
  no shutdown
 
port fxs 0 4
  encapsulation cc-fxs
  bind interface IF_FXS_04 switch
  no shutdown
 
port fxs 0 5
  encapsulation cc-fxs
  bind interface IF_FXS_05 switch
  no shutdown
 
port fxs 0 6
  encapsulation cc-fxs
  bind interface IF_FXS_06 switch
  no shutdown
 
port fxs 0 7
  encapsulation cc-fxs
  bind interface IF_FXS_07 switch
  no shutdown
 

Members online

No members online now.

Forum statistics

Threads
25,781
Messages
167,507
Members
19,201
Latest member
troutpocket
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top