Configurazione del Patton Smartnode SN4141: In questo articolo presento una configurazione del Patton Smartnode SN4141, il nuovo modello della serie per uno dei più utilizzati ed affidabili gateway per la connessione di linee analogiche tradizionali a sistemi VOIP. La configurazione è stata utilizzata con un server VOIP Asterisk versione 16 e freepbx versione 15. La configurazione è relativa ad un Patton Smarnode SN4141 equipaggiato con 4 porte FXo, in grassetto corsivo riporto i paramteri da adattare in base al contesto in uso. L’accesso al Patton Smartnode SN4141 può avvenire attraverso l’interfaccia web o attraverso una sessione ssh o telnet; dopo aver adattato la configurazione al contesto specifico, si può procedere memorizzando la Configurazione del Patton Smartnode SN4141:
#—————————————————————–#
# #
# Patton Electronics Company #
# SN4141/2ETH4JO4V v1.1 (SmartNode 4141 VoIP Gateway) #
# S/N: 00A0BA216AE8 #
# Release: 3.17.3-20081 2020/07/09 #
# Generated configuration file #
# #
#—————————————————————–#
cli version 4.00
system hostname <HOSTNAME>
system banner “<BANNER>“
clock local default-offset +01:00
clock local dst-rule DST_SUMMER +02:00 from mar last sunday 02:00 2000 until oct last sunday 03:00 2036
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
profile napt NAPT_WAN
dns-server
relay dns-client
no shutdown
dns-client
name-server 8.8.4.4
name-server 8.8.8.8
profile dhcp-server DHCPS_LAN
network 192.168.1.0/24
lease 24 hours
default-router 192.168.1.1
domain-name-server 192.168.1.1
include 192.168.1.10 192.168.1.99
profile tls DEFAULT
authentication incoming
authentication outgoing
private-key pki:private-key/DEFAULT
own-certificate 1 pki:certificate/DEFAULT
diffie-hellman-parameters pki:diffie-hellman-parameters/DEFAULT-2048
profile fxo DEFAULT
electrical-standard etsi
caller-id standard fsk-etsi
disconnect-signal busy-tone
no disconnect-signal loop-break
profile tone-set DEFAULT
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 rip DEFAULT
profile sip DEFAULT
context ip ROUTER
interface WAN
ipaddress WAN ip
interface LAN
ipaddress LAN 192.168.1.1/24
routing-table DEFAULT
route 0.0.0.0/0 gateway ip metric 0
bgp
shutdown
rip
shutdown
context ip ROUTER
use profile dhcp-server DHCPS_LAN
nodems-client
resource any
shutdown
profile ppp DEFAULT
cwmp-client
session-retry-maximum 1
no shutdown
stun
shutdown
context cs switch
routing-table called-e164 Called_1
route default dest-interface IF_SIP_00
routing-table called-e164 Called_2
route default dest-interface IF_SIP_01
routing-table called-e164 Called_3
route default dest-interface IF_SIP_02
routing-table called-e164 Called_4
route default dest-interface IF_SIP_03
interface sip IF_SIP_00
bind context sip-gateway GW_SIP_00
route call dest-interface IF_FXO_00
remote ip
early-disconnect
interface sip IF_SIP_01
bind context sip-gateway GW_SIP_01
route call dest-interface IF_FXO_01
remote ip
early-disconnect
interface sip IF_SIP_02
bind context sip-gateway GW_SIP_02
route call dest-interface IF_FXO_02
remote ip
early-disconnect
interface sip IF_SIP_03
bind context sip-gateway GW_SIP_03
route call dest-interface IF_FXO_03
remote ip
early-disconnect
interface fxo IF_FXO_00
dial after 2 seconds
route call dest-table Called_1
interface fxo IF_FXO_01
dial after 2 seconds
route call dest-table Called_2
interface fxo IF_FXO_02
dial after 2 seconds
route call dest-table Called_3
interface fxo IF_FXO_03
dial after 2 seconds
route call dest-table Called_4
context cs switch
no shutdown
location-service LS
domain 1 sip.domain
match-any-domain
context sip-gateway GW_SIP_00
interface IF_GWSIP_00
transport-protocol udp+tcp 5060
no transport-protocol tls
bind ipaddress ROUTER WAN WAN
context sip-gateway GW_SIP_00
no shutdown
context sip-gateway GW_SIP_01
interface IF_GWSIP_01
transport-protocol udp+tcp 5062
no transport-protocol tls
bind ipaddress ROUTER WAN WAN
context sip-gateway GW_SIP_01
no shutdown
context sip-gateway GW_SIP_02
interface IF_GWSIP_02
transport-protocol udp+tcp 5064
no transport-protocol tls
bind ipaddress ROUTER WAN WAN
context sip-gateway GW_SIP_02
no shutdown
context sip-gateway GW_SIP_03
interface IF_GWSIP_03
transport-protocol udp+tcp 5066
no transport-protocol tls
bind ipaddress ROUTER WAN WAN
context sip-gateway GW_SIP_03
no shutdown
sip-survivability
shutdown
port ethernet 0 0
bind interface ROUTER WAN
no shutdown
port ethernet 0 1
bind interface ROUTER LAN
no shutdown
port fxo 0 0
subscriber-number 100
bind interface switch IF_FXO_00
no shutdown
port fxo 0 1
subscriber-number 101
bind interface switch IF_FXO_01
no shutdown
port fxo 0 2
subscriber-number 102
bind interface switch IF_FXO_02
no shutdown
port fxo 0 3
subscriber-number 103
bind interface switch IF_FXO_03
no shutdown