Configurazione Patton Smartnode 4638 (unico trunk sip)

Questo documento spiega come configurare il Patton Smartnode 4638 e farlo funzionare con FreePBX / Asterisk con un unico trunk SIP.

PREMESSA:
Abbiamo realizzato e messo online già da novembre 2014 il sito http://www.patton-smartnode-configuration.com/ dal quale si possono configure quasi tutti i modelli di smartnode con software 6.X (FXO, BRI, PRI e FXS).

Questo un esempio di file di configurazione per il Patton Smartnode 4638:
DATI DI PARTENZA:
- IP PBX: 192.168.1.100
- IP PATTON: 192.168.1.101/255.255.255.0
- GATEWAY: 192.168.1.1

NECESSITA':
- configurazione con 1 trunk sip
- tutte le BRI/ISDN in PP (punto punto)
NOTA: il 4638 ha 5 porte ma gestisce massimo 8 canali vocali. In pratica è comse se fosse un 4 BRI.

#----------------------------------------------------------------
#
# http://www.patton-smartnode-configuration.com
# Asterweb Srl - Milan - Italy
# info@asterweb.org
#
# Firmware 6.x
# Generated configuration file 2015-07-23 07:03:36
#
#----------------------------------------------------------------

cli version 3.20
clock local default-offset +01:00
dns-client server 8.8.8.8
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.1.100 port 123 version 4
system hostname SN4638

system
ic voice 0

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
clock-source 5 bri 0 4

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
play 5 200 425 -12
pause 6 200
play 7 600 425 -12
pause 8 1000
play 9 200 425 -12
pause 10 200

profile call-progress-tone IT_Alertingtone
play 1 1000 425 -12
pause 2 4000
play 3 1000 425 -12
pause 4 4000
play 5 1000 425 -12
pause 6 4000

profile call-progress-tone IT_Busytone
play 1 500 425 -12
pause 2 500
play 3 500 425 -12
pause 4 500
play 5 500 425 -12
pause 6 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
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp

profile pstn default

profile sip default
no autonomous-transitioning

profile aaa default
method 1 local
method 2 none

context ip router
interface WAN
ipaddress dhcp
use profile napt NAPT_WAN
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

interface LAN
ipaddress 192.168.1.101 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

context ip router
route 0.0.0.0 0.0.0.0 192.168.1.1 0

context cs switch
digit-collection timeout 3
no digit-collection terminating-char
national-prefix 0
international-prefix 00

routing-table called-e164 INBOUND
route .%T3 dest-interface IF_SIP_SERVICE

routing-table called-e164 OUTBOUND
route default dest-service BOUND_PSTN

interface isdn IF_PSTN_0
route call dest-table INBOUND
use profile tone-set IT

interface isdn IF_PSTN_1
route call dest-table INBOUND
use profile tone-set IT

interface isdn IF_PSTN_2
route call dest-table INBOUND
use profile tone-set IT

interface isdn IF_PSTN_3
route call dest-table INBOUND
use profile tone-set IT

interface isdn IF_PSTN_4
route call dest-table INBOUND
use profile tone-set IT

interface sip IF_SIP_SERVICE
bind context sip-gateway GW_SIP
route call dest-table OUTBOUND
remote 192.168.1.100
early-disconnect
privacy

service hunt-group BOUND_PSTN
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 IF_PSTN_0
route call 2 dest-interface IF_PSTN_1
route call 3 dest-interface IF_PSTN_2
route call 4 dest-interface IF_PSTN_3
route call 5 dest-interface IF_PSTN_4

context cs switch
no shutdown

authentication-service AUTH_SVC
username PattonUser1 password kivqPdVFgwhvMgy

location-service LOCATION_SVC
domain 1 192.168.1.100

identity PattonUser1
authentication outbound
authenticate 1 authentication-service AUTH_SVC username PattonUser1

registration outbound
registrar 192.168.1.100
lifetime 3600
register auto


context sip-gateway GW_SIP
interface IF_GW_SIP
bind interface LAN context router port 5060

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

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

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

port bri 0 0
clock auto
encapsulation q921

q921
permanent-layer2
uni-side auto
protocol pp
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_PSTN_0 switch

port bri 0 0
no shutdown

port bri 0 1
clock auto
encapsulation q921

q921
permanent-layer2
uni-side auto
protocol pp
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_PSTN_1 switch

port bri 0 1
no shutdown

port bri 0 2
clock auto
encapsulation q921

q921
permanent-layer2
uni-side auto
protocol pp
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_PSTN_2 switch

port bri 0 2
no shutdown

port bri 0 3
clock auto
encapsulation q921

q921
permanent-layer2
uni-side auto
protocol pp
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_PSTN_3 switch

port bri 0 3
no shutdown

port bri 0 4
clock auto
encapsulation q921

q921
uni-side auto
protocol
encapsulation q931

q931
protocol dss1
uni-side
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_PSTN_4 switch

port bri 0 4
no shutdown



Lato FreePBX

Creare ora il FASCIO SIP su FreePBX.
Selezionare "Connectivity" => "Fasci" e quindi cliccare (a destra) su "Aggiungi Fascio SIP".

FASCIO:
  • Identificativo Chiamante in uscita: [il numero di telefono della prima BRI/ISDN o il numero che dovrà comparire in uscita]
  • Maximum Channels: 8 (i canali delle 4 ISDN)
  • Impostazioni in uscita
    • Nome fascio: PattonUser1
    • Dati PEER:
      username=PattonUser1
      secret=kivqPdVFgwhvMgy
      type=friend
      host=dynamic
      port=5060
      nat=no
      directmedia=no
      defaultip=192.168.1.101
      context=from-pstn
      insecure=port,invite
      dtmfmode=rfc2833
      qualify=yes
      disallow=all
      allow=alaw&ulaw
  • Impostazioni in entrata (tutto vuoto)


Migliora il tuo business. Partecipa ai nostri Corsi!

I nostri corsi OnLine ed in Aula sono studiati per garantire il miglior apprendimento e sono finalizzati a "creare professionisti nel settore".
Questi i prossimi corsi in calendario:

Corsi 2019

Corso Data Tipo