Patton
From Pbxnsip Wiki
Here is a sample configuration of a four port fxo Patton gateway that works with pbxnsip. Just replace the IP address and it should work fine.
- ----------------------------------------------------------------#
- #
- SN4114/JO/EUI #
- R4.2 2008-03-11 H323 SIP FXS FXO #
- 1970-01-03T05:14:22 #
- SN/00A0BA03CA4E #
- Generated configuration file #
- #
- ----------------------------------------------------------------#
cli version 3.20 webserver port 80 language en sntp-client sntp-client server primary 129.132.2.21 port 123 version 4
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
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 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 g711alaw64k rx-length 20 tx-length 20 rtp traffic-class local-default
profile pstn default
output-gain 5
profile sip default
profile aaa default
method 1 local method 2 none
context ip router
interface eth0 ipaddress 192.168.1.10 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
digit-collection timeout 2
interface sip IF_PBXNSIP bind gateway GW_PBXNSIP service default route call dest-service FXO_HUNT remote-party-id calling-party
interface fxo IF_CO1 route call dest-interface IF_PBXNSIP no disconnect-signal loop-break disconnect-signal busy-tone ring-number on-caller-id mute-dialing
interface fxo IF_CO2 route call dest-interface IF_PBXNSIP no disconnect-signal loop-break disconnect-signal busy-tone ring-number on-caller-id mute-dialing
interface fxo IF_CO3 route call dest-interface IF_PBXNSIP no disconnect-signal loop-break disconnect-signal busy-tone ring-number on-caller-id mute-dialing
interface fxo IF_CO4 route call dest-interface IF_PBXNSIP no disconnect-signal loop-break disconnect-signal busy-tone ring-number on-caller-id mute-dialing
service hunt-group FXO_HUNT 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 route call 1 dest-interface IF_CO1 route call 2 dest-interface IF_CO2 route call 3 dest-interface IF_CO3 route call 4 dest-interface IF_CO4
context cs switch
no shutdown
gateway sip GW_PBXNSIP
bind interface eth0 router
service default domain 192.168.1.9 defaultserver manual 192.168.1.9 loose-router
gateway sip GW_PBXNSIP
no shutdown
port ethernet 0 0
medium auto encapsulation ip bind interface eth0 router no shutdown
port fxo 0 0
use profile fxo us caller-id format bell encapsulation cc-fxo bind interface IF_CO1 switch no shutdown
port fxo 0 1
use profile fxo us caller-id format bell encapsulation cc-fxo bind interface IF_CO2 switch no shutdown
port fxo 0 2
use profile fxo us caller-id format bell encapsulation cc-fxo bind interface IF_CO3 switch no shutdown
port fxo 0 3
use profile fxo us caller-id format bell encapsulation cc-fxo bind interface IF_CO4 switch no shutdown
