Patton 4114

Status
Not open for further replies.

chico

Joined
Mar 8, 2017
Messages
12
Reaction score
0
hi, I setup the Patton on my 3cx and upload the file to the patton.
I can make or receive any call.

#########################################################
#
# For Patton 2 to 8 FXO
# Supported firmware versions R6.x
#
# Author: Tommaso Missoni
# Contact: [email protected]
#
#########################################################

webserver port 80 language en

system

ic voice 0
low-bitrate-codec g729

sntp-client

sntp-client server primary pool.ntp.org

profile ppp default


profile call-progress-tone defaultDialtone
flush-play-list
play 1 1000 350 -13 440 -13

profile call-progress-tone defaultAlertingtone
flush-play-list
play 1 400 400 -19 450 -19
pause 2 200
play 3 400 400 -19 450 -19
pause 4 2000

profile call-progress-tone defaultBusytone
flush-play-list
play 1 375 400 -24
pause 2 375

profile call-progress-tone defaultReleasetone
flush-play-list
play 1 400 400 -24
pause 2 350
play 3 225 400 -24
pause 4 525

profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 400 400 -24
pause 2 350
play 3 225 400 -24
pause 4 525


profile tone-set default

profile voip default
codec 1 g711ulaw64k rx-length 20 tx-length 20 silence-suppression
codec 2 g711alaw64k rx-length 20 tx-length 20 silence-suppression
codec 3 g729 rx-length 20 tx-length 20 silence-suppression
fax transmission 1 relay t38-udp

profile pstn default
echo-canceler-hybrid-loss 0
echo-canceler-nlp silence

profile sip default

profile aaa default
method 1 local
method 2 none

context ip router

interface IF_IP_WAN
ipaddress dhcp
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

interface IF_IP_LAN
ipaddress 192.168.1.183 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

context cs switch


routing-table called-e164 RT_SIP_TO_FXO
route .% dest-service HG_TO_FXO

routing-table called-e164 RT_FXO_00_TO_SIP
route default dest-interface IF_SIP MT_CALL_ID_00

routing-table called-e164 RT_FXO_01_TO_SIP
route default dest-interface IF_SIP MT_CALL_ID_01

routing-table called-e164 RT_FXO_02_TO_SIP
route default dest-interface IF_SIP MT_CALL_ID_02

routing-table called-e164 RT_FXO_03_TO_SIP
route default dest-interface IF_SIP MT_CALL_ID_03

mapping-table called-e164 to called-e164 MT_CALL_ID_00
map .% to 000000

mapping-table called-e164 to called-e164 MT_CALL_ID_01
map .% to 000001

mapping-table called-e164 to called-e164 MT_CALL_ID_02
map .% to 000002

mapping-table called-e164 to called-e164 MT_CALL_ID_03
map .% to 000003


service hunt-group HG_TO_FXO

drop-cause destination-out-of-order
drop-cause user-busy
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_FXO_0



interface sip IF_SIP
bind context sip-gateway GW_SIP
early-disconnect
route call dest-table RT_SIP_TO_FXO
remote 192.168.1.224 5060
trust remote
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri

interface fxo IF_FXO_0
route call dest-table RT_FXO_00_TO_SIP
loop-break-duration min 60 max 1000
caller-id format etsi
ring-number on-caller-id
mute-dialing
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after dialtone

interface fxo IF_FXO_1
route call dest-table RT_FXO_01_TO_SIP
loop-break-duration min 60 max 1000
caller-id format etsi
ring-number on-caller-id
mute-dialing
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after dialtone


interface fxo IF_FXO_2
route call dest-table RT_FXO_02_TO_SIP
loop-break-duration min 60 max 1000
caller-id format etsi
ring-number on-caller-id
mute-dialing
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after dialtone

interface fxo IF_FXO_3
route call dest-table RT_FXO_03_TO_SIP
loop-break-duration min 60 max 1000
caller-id format etsi
ring-number on-caller-id
mute-dialing
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after dialtone

context cs switch
no shutdown

authentication-service AS_ALL_LINES
realm 1 3CXPhoneSystem
username 10000 password ch3qyjd

location-service LS_10000
domain 1 192.168.1.224

identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000

identity 10000
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES

registration outbound
registrar 192.168.1.224 5060
lifetime 300
register auto

register auto

context sip-gateway GW_SIP

interface LAN
bind interface IF_IP_LAN context router port 5060

context sip-gateway GW_SIP
bind location-service LS_10000
no shutdown

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

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

port fxo 0 0
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_0 switch
no shutdown

port fxo 0 1
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_1 switch
no shutdown

port fxo 0 2
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_2 switch
no shutdown

port fxo 0 3
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_3 switch
no shutdown



context cs
no IF_FXO_1
no IF_FXO_2
no IF_FXO_3




port fxo 0 1
shutdown
port fxo 0 2
shutdown
port fxo 0 3
shutdown



Patton Log:

2017-03-08T14:55:16 : LOGINFO : Link up on interface ethernet 0 0 0
2017-03-08T14:55:17 : LOGINFO : Link up on interface IF_IP_LAN
2017-03-08T14:55:23 : LOGWARNING : Config: Line 19: SN4114/JO/EUI(ic-voice)[0]#sntp-client
2017-03-08T14:55:23 : LOGWARNING : Config: % ^ Keyword mismatch
2017-03-08T14:55:23 : LOGWARNING : Config: Line 21: SN4114/JO/EUI(ic-voice)[0]#sntp-client server primary pool.ntp.org
2017-03-08T14:55:23 : LOGWARNING : Config: % ^ Keyword mismatch
2017-03-08T14:55:23 : LOGWARNING : Config: Line 226: SN4114/JO/EUI(prt-eth)[0/0]#port ethernet 0 1
2017-03-08T14:55:23 : LOGWARNING : Config: % Ethernet port does not exist
2017-03-08T14:55:23 : LOGWARNING : Config: Line 259: 192.168.1.183(ctx-cs)[switch]#no IF_FXO_1
2017-03-08T14:55:23 : LOGWARNING : Config: % ^ Keyword mismatch
2017-03-08T14:55:23 : LOGWARNING : Config: Line 260: 192.168.1.183(ctx-cs)[switch]#no IF_FXO_2
2017-03-08T14:55:23 : LOGWARNING : Config: % ^ Keyword mismatch
2017-03-08T14:55:23 : LOGWARNING : Config: Line 261: 192.168.1.183(ctx-cs)[switch]#no IF_FXO_3
2017-03-08T14:55:23 : LOGWARNING : Config: % ^ Keyword mismatch
2017-03-08T13:55:23 : LOGINFO : Timezone: set local clock offset to +00:00
% local time changed from 2017-03-08T14:55:23 to 2017-03-08T13:55:23
2017-03-08T13:55:25 : LOGINFO : Warm start.


Can someone help me???
 
What ?! We're talking FXS now ???
.... ok, I'm out ...
 
Status
Not open for further replies.

Forum statistics

Threads
112,313
Messages
591,838
Members
165,457
Latest member
devo.it