Un gateway Patton SN4120/1BIS2V collegato ad una linea BRi di Telecom Italia.
Trunk name
bri0
Trunk name
10001
Peer details
host=dynamic
username=10001
secret=10001
type=friend
dtmfmode=rfc2833
insecure=port,invite
qualify=yes
defaultip=172.16.0.12
Creare altri 4 trunk per patton1, patton2, patton3 e patton4 cambiando il numero di porta corrispondente (5062, 5064...)
Salvare il seguente codice in un file di testo. Modificare tutti gli indirizzi IP e importare dall'interfaccia web del Patton
#----------------------------------------------------------------#
# #
# SN4120/1BIS2V #
# R6.3 2013-05-01 H323 SIP #
# 2015-04-12T20:19:44 #
# SN/00A0BA0A79A0 #
# Generated configuration file #
# #
#----------------------------------------------------------------#
cli version 3.20
clock local default-offset +01:00
dns-client server 172.16.0.1
dns-client server 8.8.8.8
webserver port 80 language en
sntp-client
sntp-client server primary 172.16.0.1 port 123 version 4
sntp-client server secondary 193.204.114.232 port 123 version 4
system hostname patton-SN4120
system
ic voice 0
system
clock-source 1 bri 0 0
profile napt NAPT_WAN
profile ppp default
profile call-progress-tone IT_Dialtone
play 1 200 425 -12
pause 2 200
play 3 600 425 -12
pause 4 1000
profile call-progress-tone IT_Alertingtone
play 1 1000 425 -12
pause 2 4000
profile call-progress-tone IT_Busytone
play 1 500 425 -12
pause 2 500
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 release-tone IT_Busytone
map call-progress-tone congestion-tone IT_Busytone
profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
response-preferred-codec g711alaw64k
profile pstn default
profile sip default
no autonomous-transitioning
profile aaa default
method 1 local
method 2 none
context ip router
interface LAN
ipaddress 172.16.0.12 255.255.255.0
icmp redirect accept
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context ip router
route 0.0.0.0 0.0.0.0 172.16.0.1 0
context cs switch
national-prefix 0
international-prefix 00
routing-table called-e164 RT_OUT
route .% dest-service SER_HG_ISDN speech
routing-table called-e164 RT_IN
route .%T3 dest-interface IF_PBX
mapping-table itc to itc speech
map default to speech
interface isdn IF_ISDN0
route call dest-table RT_IN
use profile tone-set IT
interface isdn IF_ISDN1
route call dest-table RT_IN
use profile tone-set IT
interface sip IF_PBX
bind context sip-gateway GW_PBX
route call dest-table RT_OUT
remote 172.16.0.10 5060
early-disconnect
service hunt-group SER_HG_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_ISDN0
route call 2 dest-interface IF_ISDN1
context cs switch
no shutdown
authentication-service AS_PBX
realm 1 asterisk
username 10001 password 10001
location-service LS_PBX
domain 1 172.16.0.10 5060
identity 10001
authentication outbound
authenticate 1 authentication-service AS_PBX username 10001
registration outbound
registrar 172.16.0.10 5060
register auto
context sip-gateway GW_PBX
interface IF_PBX
bind interface LAN context router port 5060
context sip-gateway GW_PBX
bind location-service LS_PBX
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface LAN router
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
permanent-layer2
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN0 switch
port bri 0 0
no shutdown