Aggiungo config patton
#########################################################
#
# For Patton 1-8 port BRI
# Supported firmware versions - Trinity 3.x
#
# Author: Patton Support
# Support Contact:
[email protected]
#
#########################################################
cli version 4.00
profile aaa DEFAULT
method 1 local
method 2 none
console
use profile aaa DEFAULT
telnet-server
use profile aaa DEFAULT
no shutdown
ssh-server
use profile aaa DEFAULT
no shutdown
snmp-server
shutdown
web-server
protocol http port 80
protocol https port 443
use profile aaa DEFAULT
no shutdown
ntp
server 0.patton.pool.ntp.org
server 1.patton.pool.ntp.org
server 2.patton.pool.ntp.org
server 3.patton.pool.ntp.org
no shutdown
system
clock-source 1 bri 0 0
clock-source 2 bri 0 1
clock-source 3 bri 0 2
clock-source 4 bri 0 3
dns-client
name-server
name-server 8.8.8.8
profile tls DEFAULT
authentication incoming
authentication outgoing
private-key pki

rivate-key/DEFAULT
own-certificate 1 pki

wn-certificate/DEFAULT
diffie-hellman-parameters pki:diffie-hellman-parameters/DEFAULT-2048
profile voip DEFAULT
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
fax transmission 2 bypass g711alaw64k rx-length 20 tx-length 20
profile pstn DEFAULT
profile sip DEFAULT
context ip ROUTER
interface WAN
ipaddress DHCP
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface LAN
ipaddress LAN 10.1.196.2 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
routing-table DEFAULT
route 0.0.0.0/0 gateway
context cs SWITCH
mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
map restricted to ""
mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
map (3.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
map (3.%)-(.%)-(.%)-(.%) to \1\2\3\4
map (3.%)-(.%)-(.%) to \1\2\3
map (3.%)-(.%) to \1\2
map (3.%) to \1
map (.%)-(.%)-(.%)-(.%)-(.%) to 0\1\2\3\4\5
map (.%)-(.%)-(.%)-(.%) to 0\1\2\3\4
map (.%)-(.%)-(.%) to 0\1\2\3
map (.%)-(.%) to 0\1\2
map (.%) to 0\1
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to \1
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
complex-function MAPPING_INCOMING_CALLS_WITH_CNAME
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
execute 3 MAP_CID_TO_CNAME
routing-table calling-name SET_CNAME
route ^$ dest-interface IF_SIP_3CX MAPPING_INCOMING_CALLS_WITH_CNAME
route default dest-interface IF_SIP_3CX MAPPING_INCOMING_CALLS
routing-table called-e164 RT_ISDN_TO_SIP
route T2 dest-table SET_CNAME
routing-table called-e164 RT_SIP_TO_ISDN
route default dest-service HG_TO_ISDN
service hunt-group HG_TO_ISDN
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_BRI_00
route call 2 dest-interface IF_BRI_01
route call 3 dest-interface IF_BRI_02
route call 4 dest-interface IF_BRI_03
interface isdn IF_BRI_00
route call dest-table RT_ISDN_TO_SIP
call-reroute emit
diversion emit
user-side-ringback-tone
call-hold disable
caller-name
interface isdn IF_BRI_01
route call dest-table RT_ISDN_TO_SIP
call-reroute emit
diversion emit
user-side-ringback-tone
call-hold disable
caller-name
interface isdn IF_BRI_02
route call dest-table RT_ISDN_TO_SIP
call-reroute emit
diversion emit
user-side-ringback-tone
call-hold disable
caller-name
interface isdn IF_BRI_03
route call dest-table RT_ISDN_TO_SIP
call-reroute emit
diversion emit
user-side-ringback-tone
call-hold disable
caller-name
interface sip IF_SIP_3CX
bind context sip-gateway GW_SIP_3CX
early-disconnect
route call dest-service HG_TO_ISDN
remote 10.1.196.1 45060
call-reroute accept
trust remote
address-translation outgoing-call request-uri user-part fix 10002 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
context cs SWITCH
no shutdown
authentication-service AUTH_SVC_3CX
realm 1 3CXPhoneSystem
username 10002 password xxxxxxxx
location-service LOC_SVC_3CX_10002
domain 1 10.1.196.1
match-any-domain
identity-group DEFAULT
authentication outbound
authenticate 1 authentication-service AUTH_SVC_3CX username 10002
identity 10002 inherits DEFAULT
authentication outbound
authenticate 1 authentication-service AUTH_SVC_3CX username 10002
registration outbound
registrar 10.1.196.1 45060
lifetime 60
register auto
context sip-gateway GW_SIP_3CX
bind location-service LOC_SVC_3CX_10002
interface IF_GW_SIP_3CX
transport-protocol udp+tcp 5060
no transport-protocol tls
bind ipaddress ROUTER LAN LAN
context sip-gateway GW_SIP_3CX
no shutdown
nodems-client
server
https://nodems.patton.io:443
organization-key
resource any
no shutdown
port ethernet 0 0
bind interface ROUTER LAN
no shutdown
port ethernet 0 1
bind interface ROUTER WAN
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_00
port bri 0 0
no shutdown
port bri 0 1
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_01
port bri 0 1
no shutdown
port bri 0 2
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_02
port bri 0 2
no shutdown
port bri 0 3
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_03
port bri 0 3
no shutdown
port bri 0 4
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_04
port bri 0 4
no shutdown
port bri 0 5
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_05
port bri 0 5
no shutdown
port bri 0 6
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_06
port bri 0 6
no shutdown
port bri 0 7
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface SWITCH IF_BRI_07
port bri 0 7
no shutdown