Patton 4524 (4 FXO, 4 FXS) Firmware version 5.2

From SIPfoundry sipXecs IP PBX, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search

PBX.IP.ADDRESS = IP Address of the PBX

HOSTNAME = Gateway Host Name

GW.IP.ADDRESS = IP Address of Patton Gateway

GW.SUBNET.MASK = Subnet mask of Patton Gateway

DEF.GW.ADDRESS = Default Gateway Address

SIP.DOMAIN.NAME = SIP Domain Name

EXTENSION0 = FXS0 PBX Extension

SIPPASSWORDEXT0 = SIP Password for Extension0

EXTENSION1 = FXS1 PBX Extension

SIPPASSWORDEXT1 = SIP Password for Extension1

EXTENSION2 = FXS2 PBX Extension

SIPPASSWORDEXT2 = SIP Password for Extension2

EXTENSION3 = FXS3 PBX Extension

SIPPASSWORDEXT3 = SIP Password for Extension3

INBOUND = SIP Extension calls ring in to



cli version 3.20
dns-client server PBX.IP.ADDRESS
dns-relay
webserver port 80 language en
snmp community public ro
sntp-client
sntp-client server primary PBX.IP.ADDRESS port 123 version 4
sntp-client poll-interval 36000
sntp-client local-clock-offset
system hostname HOSTNAME 

system

 ic voice 0
   low-bitrate-codec g729

profile napt NAPT

profile ppp default

profile call-progress-tone US_Dialtone
 play 1 0 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 g711alaw64k rx-length 20 tx-length 20
 codec 2 g729 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 dhcp
   use profile napt NAPT
   tcp adjust-mss rx mtu
   tcp adjust-mss tx mtu

 interface eth1
   ipaddress GW.IP.ADDRESS GW.SUBNET.MASK
   tcp adjust-mss rx mtu
   tcp adjust-mss tx mtu

context ip router
 route 0.0.0.0 0.0.0.0 DEF.GW.ADDRESS 0

context cs switch

 routing-table called-e164 TAB-IN
   route ...%T dest-service FXOHUNT
   route 261 dest-interface IF-FXS0
   route 262 dest-interface IF-FXS1
   route 263 dest-interface IF-FXS2
   route 264 dest-interface IF-FXS3

 routing-table called-e164 TAB-OUT
   route .%T dest-interface IF_SIPX

 interface sip IF-SIP
   route call dest-table TAB-IN
   remote SIP.DOMAIN.NAME

 interface sip IF-INBOUND0
   bind context sip-gateway GW-SIP
   route call dest-table TAB-IN
   remote SIP.DOMAIN.NAME
   address-translation outgoing-call to-header user-part fix INBOUND host-part fix SIP.DOMAIN.NAME

 interface sip IF-INBOUND1
   bind context sip-gateway GW-SIP
   route call dest-table TAB-IN
   remote SIP.DOMAIN.NAME
   address-translation outgoing-call to-header user-part fix INBOUND host-part fix SIP.DOMAIN.NAME

 interface sip IF-INBOUND2
   bind context sip-gateway GW-SIP
   route call dest-table TAB-IN
   remote SIP.DOMAIN.NAME
   address-translation outgoing-call to-header user-part fix INBOUND host-part fix SIP.DOMAIN.NAME

 interface sip IF-INBOUND3
   bind context sip-gateway GW-SIP
   route call dest-table TAB-IN
   remote SIP.DOMAIN.NAME
   address-translation outgoing-call to-header user-part fix INBOUND host-part fix SIP.DOMAIN.NAME

 interface sip IF_SIPX
   bind context sip-gateway GW-SIP
   route call dest-table TAB-IN
   remote SIP.DOMAIN.NAME
   address-translation outgoing-call from-header user-part call host-part fix GW.IP.ADDRESS
   address-translation outgoing-call to-header user-part call host-part fix SIP.DOMAIN.NAME

 interface fxs IF-FXS0
   route call dest-table TAB-OUT
   no call-waiting
   call-transfer
   caller-id-presentation mid-ring
   subscriber-number EXTENSION0
   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 EXTENSION1
   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 EXTENSION2
   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 EXTENSION3
   use profile tone-set US

 interface fxo IF_FXO0
   route call dest-interface IF-INBOUND0
   no disconnect-signal loop-break
   disconnect-signal busy-tone
   dial-after timeout 2
   mute-dialing
   use profile tone-set US

 interface fxo IF_FXO1
   route call dest-interface IF-INBOUND1
   no disconnect-signal loop-break
   disconnect-signal busy-tone
   dial-after timeout 2
   mute-dialing
   use profile tone-set US

 interface fxo IF_FXO2
   route call dest-interface IF-INBOUND2
   no disconnect-signal loop-break
   disconnect-signal busy-tone
   dial-after timeout 2
   mute-dialing
   use profile tone-set US

 interface fxo IF_FXO3
   route call dest-interface IF-INBOUND3
   no disconnect-signal loop-break
   disconnect-signal busy-tone
   dial-after timeout 2
   mute-dialing
   use profile tone-set US

 service hunt-group FXOHUNT
   drop-cause normal-unspecified
   drop-cause no-circuit-channel-available
   drop-cause network-out-of-order
   drop-cause temporary-failure
   drop-cause switching-equipment-congestion
   drop-cause access-info-discarded
   drop-cause circuit-channel-not-available
   drop-cause resources-unavailable
   drop-cause user-busy
   drop-cause destination-out-of-order
   route call 1 dest-interface IF_FXO3
   route call 2 dest-interface IF_FXO2
   route call 3 dest-interface IF_FXO1
   route call 4 dest-interface IF_FXO0

context cs switch
 no shutdown

authentication-service AUTH_SVC
 username EXTENSION0 password SIPPASSWORDEXT0
 username EXTENSION1 password SIPPASSWORDEXT1
 username EXTENSION2 password SIPPASSWORDEXT2
 username EXTENSION3 password SIPPASSWORDEXT3

location-service SIPX_VOIP
 domain 1 SIP.DOMAIN.NAME

 identity EXTENSION0

   authentication outbound
     authenticate 1 authentication-service AUTH_SVC

   registration outbound
     register auto

 identity EXTENSION1

   authentication outbound
     authenticate 1 authentication-service AUTH_SVC

   registration outbound
     register auto

 identity EXTENSION2

   authentication outbound
     authenticate 1 authentication-service AUTH_SVC

   registration outbound
     register auto

 identity EXTENSION3

   authentication outbound
     authenticate 1 authentication-service AUTH_SVC

   registration outbound
     register auto

context sip-gateway GW-SIP

 interface IF_SIPX
   bind interface eth1 context router port 5060

context sip-gateway GW-SIP
 bind location-service SIPX_VOIP
 no shutdown

port ethernet 0 0
 medium auto
 encapsulation ip
 bind interface eth0 router
 no shutdown

port ethernet 0 1
 medium auto
 encapsulation ip
 bind interface eth1 router
 no shutdown

port fxs 0 0
 caller-id format bell
 use profile fxs us
 encapsulation cc-fxs
 bind interface IF-FXS0 switch
 no shutdown

port fxs 0 1
 use profile fxs us
 encapsulation cc-fxs
 bind interface IF-FXS1 switch
 no shutdown

port fxs 0 2
 use profile fxs us
 encapsulation cc-fxs
 bind interface IF-FXS2 switch
 no shutdown

port fxs 0 3
 use profile fxs us
 encapsulation cc-fxs
 bind interface IF-FXS3 switch
 no shutdown

port fxo 0 0
 flash-hook-duration 50
 use profile fxo us
 caller-id format bell
 encapsulation cc-fxo
 bind interface IF_FXO0 switch
 no shutdown

port fxo 0 1
 flash-hook-duration 50
 use profile fxo us
 caller-id format bell
 encapsulation cc-fxo
 bind interface IF_FXO1 switch
 no shutdown

port fxo 0 2
 flash-hook-duration 50
 use profile fxo us
 caller-id format bell
 encapsulation cc-fxo
 bind interface IF_FXO2 switch
 no shutdown

port fxo 0 3
 flash-hook-duration 50
 use profile fxo us
 caller-id format bell
 encapsulation cc-fxo
 bind interface IF_FXO3 switch
 no shutdown
Personal tools