Configurazione del Patton Smartnode SN4171

Configurazione del Patton Smartnode SN4171 In questo articolo vediamo la configurazione del Patton Smartnode SN4171 utilizzato come gateway per  collegare un trunk voip ad un centralino tradizionale con interfaccia E1 Flusso Primario.  I gateway Patton Smartnode sono tra i gateway VOIP/LINEE TRADIZIONALI più affidabili e più utilizzati. Nella configurazione utilizzo un trunk voip clouditalia, la configurazione del Patton Smartnode SN4171 realizza un collegamento verso un centralino tradizionale con interfaccia E1 Flusso Primario a 32 canali.  L’articolo tratta la configurazione di un Patton Smarnode SN4171 equipaggiato con 1 porta E1T1, in grassetto corsivo riporto i paramteri da adattare in base al contesto in uso. L’accesso al Patton Smartnode SN4171 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:

Configurazione

#—————————————————————-#
# #
# Patton Electronics Company #
# SN4171/1E15V30HP v1.6 (SmartNode 4171 VoIP Gateway) #
# S/N: 00A0BA105088 #
# Release: 3.17.2-20062 2020/05/25 #
# Generated configuration file #
# #
#—————————————————————-#

cli version 4.00
clock local default-offset +01:00

actions

rule PROV_STARTUP
condition ip address:WAN.DHCP LINKUP initial
condition system ntp TIME_INITIALIZED

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
server it.pool.ntp.org
no shutdown

profile napt NAPT_WAN

dns-server
relay dns-client
shutdown

dns-client
name-server 8.8.8.8
name-server 8.8.4.4

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 call-progress-tone IT_Alertingtone
play 1 1000 first-tone 425 -12
pause 2 4000

profile call-progress-tone IT_Busytone
play 1 500 first-tone 425 -12
pause 2 500

profile call-progress-tone IT_Dialtone
play 1 200 first-tone 425 -12
pause 2 200
play 3 600 first-tone 425 -12
pause 4 1000

profile tone-set DEFAULT

profile tone-set IT
map call-progress-tone dial-tone IT_Dialtone
map call-progress-tone ringback-tone IT_Alertingtone
map call-progress-tone busy-tone IT_Busytone
map call-progress-tone congestion-tone IT_Busytone
map call-progress-tone release-tone IT_Busytone

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 voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
dtmf-relay rtp
dejitter-max-delay 100
fax transmission 1 relay t38-udp
fax dejitter-max-delay 400
no fax error-correction

profile pstn DEFAULT

profile pstn default

profile rip DEFAULT

profile sip DEFAULT

context ip ROUTER

interface WAN
ipaddress WAN <IP>

routing-table DEFAULT
route 0.0.0.0/0 gateway <IP_GW> metric 0

bgp
shutdown

rip
shutdown

nodems-client
resource any
shutdown

profile ppp DEFAULT

profile r2 DEFAULT

cwmp-client
session-retry-maximum 1
no shutdown

stun
shutdown

context cs switch

routing-table called-e164 FROM_PSTN_TO_EUTELIA
route .%T dest-interface SIP

routing-table called-e164 incoming
route default dest-service OUTSERVICE

interface isdn e1-00
route call dest-table FROM_PSTN_TO_EUTELIA

interface sip SIP
bind context sip-gateway GW_PBX_00
route call dest-table incoming
remote voip.eutelia.it 5060
early-connect
early-disconnect
address-translation outgoing-call from-header user-part fix <NUMERO_TEL> host-part call
address-translation incoming-call called-e164 to-header

service hunt-group OUTSERVICE
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 e1-00

context cs switch
no shutdown

authentication-service AUTH_SVC
username <USERNAME> password <PASSWORD>

location-service LOCATION_SVC_00
domain 1 voip.eutelia.it

authentication outbound
authenticate 1 authentication-service AUTH_SVC username <USERNAME>

registration outbound
lifetime 60
register auto

context sip-gateway GW_PBX_00
bind location-service LOCATION_SVC_00

interface IF_SIP_00
transport-protocol udp+tcp 5060
no transport-protocol tls
bind ipaddress ROUTER WAN WAN

context sip-gateway GW_PBX_00
no shutdown

sip-survivability
shutdown

port ethernet 0 0
bind interface ROUTER WAN
no shutdown

port e1t1 0 0
port-type e1
clock auto
framing crc4
encapsulation q921

q921
protocol pp
uni-side net

q931
protocol dss1
uni-side net
max-calls 15
channel-range 0 16
bind interface switch e1-00

port e1t1 0 0
no shutdown