Patton 4114 (4 FXO) - TESTED

#----------------------------------------------------------------#

  1. #
  2. SN4114/JO/EUI #
  3. R5.4 2009-07-20 H323 SIP FXS FXO #
  4. 2009-11-08T16:47:45 #
  5. SN/00A0BA042F00 #
  6. Generated configuration for SipX #
  7. http://sipx-wiki.calivia.com/index.php/Patton_4114_TESTED #
  8. Please submit any questions to the sipx-users list #
  9. Jim Canfield - jcanfield_at_emstar.com #
    #----------------------------------------------------------------#

cli version 3.20
dns-client server SIPX.SERVER.IP <--EDIT
webserver port 80 language en
sntp-client
sntp-client server primary SNTP.SERVER.IP port 123 version 4 <--EDIT
system hostname sip-gw.YOURDOMAIN.COM <--EDIT

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 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20

profile pstn default

profile sip default

profile aaa default
method 1 local
method 2 none

context ip router

interface eth0
ipaddress YOU.RIP.ADD.RESS 255.255.255.0 <--EDIT
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

context ip router
route 0.0.0.0 0.0.0.0 PUT.GW.IP.HERE <--EDIT

context cs switch
digit-collection timeout 4

routing-table called-e164 SIP_TO_ISDN
route default dest-service OUTBOUND

routing-table called-e164 ISDN_TO_SIP
route .% dest-interface IF_SIPX

interface sip IF_SIPX
bind context sip-gateway GW-SIP
route call dest-table SIP_TO_ISDN
remote YOURDOMAIN.COM
address-translation outgoing-call to-header user-part fix 101 host-part fix YOURDOMAIN.COM <--EDIT

interface fxo IF_FXO0
route call dest-interface IF_SIPX
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
mute-dialing
use profile tone-set US

interface fxo IF_FXO1
route call dest-interface IF_SIPX
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
mute-dialing
use profile tone-set US

interface fxo IF_FXO2
route call dest-interface IF_SIPX
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
mute-dialing
use profile tone-set US

interface fxo IF_FXO3
route call dest-interface IF_SIPX
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
mute-dialing
use profile tone-set US

service hunt-group OUTBOUND
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
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

location-service SIPX_SERVER
domain 1 sipx.YOURDOMAIN.COM <--EDIT

context sip-gateway GW-SIP

interface IF_SIPX
bind interface eth0 context router port 5060

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

port ethernet 0 0
medium auto
encapsulation ip
bind interface eth0 router
bind interface LAN router
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