PDA

Voir la version complète : Configuration d'un Patton 4960



cedricscha
08/09/2010, 11h01
Voici un exemple de fichier de configuration pour un patton 4960 (E1/T1)



#----------------------------------------------------------------#
# #
# SN4960/1E15V #
# R5.4 2009-09-22 H323 RBS SIP #
# 2010-09-03T09:30:26 #
# SN/00A0BA04F8BC #
# Generated configuration file #
# #
#----------------------------------------------------------------#

cli version 3.20
dns-client server IP Du Serveur DNS du réseau
webserver port 80 language en
sntp-client
sntp-client server primary Adresse IP du serveur SNTP port 123 version 4

system

ic voice 0

system
clock-source 1 e1t1 0 0

profile ppp default

profile tone-set default

profile voip default
codec 1 g711ulaw64k rx-length 20 tx-length 20
codec 2 g711alaw64k rx-length 20 tx-length 20
dtmf-relay rtp
rtp traffic-class local-default
fax transmission 1 relay t38-udp
fax transmission 2 bypass g711ulaw64k
fax transmission 3 bypass g711alaw64k
fax redundancy low-speed 2 high-speed 2
fax volume -9.0
fax detection fax-frames
fax bypass-method nse
modem transmission 1 bypass g711alaw64k
no modem detection on-remote-fax-request
modem bypass-method nse

profile voip Test
codec 1 g711ulaw64k rx-length 20 tx-length 20 no-silence-suppression
codec 2 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
no high-pass-filter
no post-filter
dtmf-relay inband
rtp traffic-class local-default
dejitter-max-delay 100
fax transmission 1 bypass g711ulaw64k
fax transmission 2 bypass g711alaw64k
fax detection fax-frames
modem transmission 1 bypass g711ulaw64k
modem transmission 2 bypass g711alaw64k
modem bypass-method nse

profile pstn default

profile sip default

profile aaa default
method 1 local
method 2 none

context ip router

interface IF_IP_LAN
ipaddress Adresse IP du Serveur Asterisk 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 Adresse IP de la passerelle reseau 1

context cs switch

interface isdn IF_E1_00
route call dest-interface IF_SIP_IN

interface sip IF_SIP_IN
bind context sip-gateway GW_SIP_IN
remote Adresse IP du serveur Asterisk 5060
early-connect
early-disconnect

interface sip IF_SIP_OUT
bind context sip-gateway GW_SIP_OUT
route call dest-interface IF_E1_00
early-connect
early-disconnect
use profile voip Test

interface sip IF_SIP_FAX
bind context sip-gateway GW_SIP_FAX
route call dest-interface IF_E1_00
use profile voip Test

context cs switch
no shutdown

authentication-service 10000
realm 1 Adresse IP Serveur Asterisk

location-service Lausanne
domain 1 Adresse IP Serveur Asterisk 5060

context sip-gateway GW_SIP_IN

interface LAN
bind interface IF_IP_LAN context router port 5064

context sip-gateway GW_SIP_IN
no shutdown

context sip-gateway GW_SIP_OUT

interface LAN
bind interface IF_IP_LAN context router port 5060

context sip-gateway GW_SIP_OUT
no shutdown

context sip-gateway GW_SIP_FAX

interface LAN
bind interface IF_IP_LAN context router port 7079

context sip-gateway GW_SIP_FAX
no shutdown

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

port ethernet 0 1
medium auto
encapsulation ip
shutdown

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

q921
uni-side auto
encapsulation q931

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

port e1t1 0 0
no shutdown

dubonjaja
22/09/2010, 21h31
précision par rapport au fichier de config:
la passerelle est en mode TE (esclave par rapport au PSTN) et en firmware 5.4 qui permet d'être à la fois client SIP et serveur SIP mais également de multiples registrar.
J'imagine que dans la maquette, cette passerelle permet de de collecter les appels depuis le réseau TDM pour les envoyer en SIP vers le serveur *?

Ci dessous un template de config pour les smartnode sn 46xx


#----------------------------------------------------------------#
# #
# Patton SmartNode SN46XX #
# SWR5.X #
# #
# template configuration #
# PSTN trunk gateway for Aserisk IP-PBX application #
# #
# support@patton.com; June 2010 #
# #
#----------------------------------------------------------------#

cli version 3.20
clock local default-offset +02:00
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4

system

ic voice 0
low-bitrate-codec g729

system
clock-source 1 bri 0 0

profile ppp default

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 sip default
no autonomous-transitioning

profile dhcp-server DHCPS_LAN
network 192.168.1.0 255.255.255.0
include 1 192.168.1.10 192.168.1.99
lease 2 hours
default-router 1 192.168.1.1
domain-name-server 1 192.168.1.1

profile aaa default
method 1 local
method 2 none

context ip router

interface IF_LAN
ipaddress dhcp
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

interface IF_PC
ipaddress 192.168.1.1 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

context ip router
dhcp-server use profile DHCPS_LAN

context cs switch

interface isdn IF_ISDN_00
route call dest-interface IF_SIP
isdn-date-time

interface isdn IF_ISDN_01
route call dest-interface IF_SIP
isdn-date-time

interface isdn IF_ISDN_02
route call dest-interface IF_SIP
isdn-date-time

interface isdn IF_ISDN_03
route call dest-interface IF_SIP
isdn-date-time

interface sip IF_SIP
bind context sip-gateway GW_SIP
route call dest-service
privacy

service hunt-group SER_HUNT_PSTN
cyclic
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_ISDN_00
route call 2 dest-interface IF_ISDN_01
route call 3 dest-interface IF_ISDN_02
route call 4 dest-interface IF_ISDN_03

context cs switch
no shutdown

context sip-gateway GW_SIP

interface IF_GWSIP
bind interface IF_LAN context router port 5060

context sip-gateway GW_SIP
no shutdown

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

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

port bri 0 0
clock auto
power-feed
encapsulation q921

q921
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side user
encapsulation cc-isdn
bind interface IF_ISDN_00 switch

port bri 0 0
no shutdown

port bri 0 1
clock auto
encapsulation q921

q921
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side usr
encapsulation cc-isdn
bind interface IF_ISDN_01

port bri 0 1
no shutdown

port bri 0 2
clock auto
encapsulation q921

q921
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side usr
encapsulation cc-isdn
bind interface IF_ISDN_02

port bri 0 2
no shutdown

port bri 0 3
clock auto
encapsulation q921

q921
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side usr
encapsulation cc-isdn
bind interface IF_ISDN_03

port bri 0 3
no shutdown

lstep
24/12/2010, 13h40
Deux questions:

* Tu ne semble pas utiliser l'authentification ? Tu as défini un 'Location' Lausanne,mais tu ne l'utilises nulle part...
* Pour qu'un Asterisk se connecte au Patton en SIP avec le patton fonctionnant comme registrar, il faut un license payante en plus ? (en tout cas l'année dernière cétait obligatoire).


Voici un exemple de fichier de configuration pour un patton 4960 (E1/T1)



#----------------------------------------------------------------#
# #
# SN4960/1E15V #
# R5.4 2009-09-22 H323 RBS SIP #
# 2010-09-03T09:30:26 #
# SN/00A0BA04F8BC #
# Generated configuration file #
# #
#----------------------------------------------------------------#

cli version 3.20
dns-client server IP Du Serveur DNS du réseau
webserver port 80 language en
sntp-client
sntp-client server primary Adresse IP du serveur SNTP port 123 version 4

system

ic voice 0

system
clock-source 1 e1t1 0 0

profile ppp default

profile tone-set default

profile voip default
codec 1 g711ulaw64k rx-length 20 tx-length 20
codec 2 g711alaw64k rx-length 20 tx-length 20
dtmf-relay rtp
rtp traffic-class local-default
fax transmission 1 relay t38-udp
fax transmission 2 bypass g711ulaw64k
fax transmission 3 bypass g711alaw64k
fax redundancy low-speed 2 high-speed 2
fax volume -9.0
fax detection fax-frames
fax bypass-method nse
modem transmission 1 bypass g711alaw64k
no modem detection on-remote-fax-request
modem bypass-method nse

profile voip Test
codec 1 g711ulaw64k rx-length 20 tx-length 20 no-silence-suppression
codec 2 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
no high-pass-filter
no post-filter
dtmf-relay inband
rtp traffic-class local-default
dejitter-max-delay 100
fax transmission 1 bypass g711ulaw64k
fax transmission 2 bypass g711alaw64k
fax detection fax-frames
modem transmission 1 bypass g711ulaw64k
modem transmission 2 bypass g711alaw64k
modem bypass-method nse

profile pstn default

profile sip default

profile aaa default
method 1 local
method 2 none

context ip router

interface IF_IP_LAN
ipaddress Adresse IP du Serveur Asterisk 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 Adresse IP de la passerelle reseau 1

context cs switch

interface isdn IF_E1_00
route call dest-interface IF_SIP_IN

interface sip IF_SIP_IN
bind context sip-gateway GW_SIP_IN
remote Adresse IP du serveur Asterisk 5060
early-connect
early-disconnect

interface sip IF_SIP_OUT
bind context sip-gateway GW_SIP_OUT
route call dest-interface IF_E1_00
early-connect
early-disconnect
use profile voip Test

interface sip IF_SIP_FAX
bind context sip-gateway GW_SIP_FAX
route call dest-interface IF_E1_00
use profile voip Test

context cs switch
no shutdown

authentication-service 10000
realm 1 Adresse IP Serveur Asterisk

location-service Lausanne
domain 1 Adresse IP Serveur Asterisk 5060

context sip-gateway GW_SIP_IN

interface LAN
bind interface IF_IP_LAN context router port 5064

context sip-gateway GW_SIP_IN
no shutdown

context sip-gateway GW_SIP_OUT

interface LAN
bind interface IF_IP_LAN context router port 5060

context sip-gateway GW_SIP_OUT
no shutdown

context sip-gateway GW_SIP_FAX

interface LAN
bind interface IF_IP_LAN context router port 7079

context sip-gateway GW_SIP_FAX
no shutdown

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

port ethernet 0 1
medium auto
encapsulation ip
shutdown

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

q921
uni-side auto
encapsulation q931

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

port e1t1 0 0
no shutdown

cedricscha
24/12/2010, 14h35
effectivement, je ne l'utilisait pas.....

c'était une patton de test.....

je travaillais sans authentification, car le reseau des téléphone n'était pas ouvert sur l'exterieur, donc pas ou peu de risque.

je ne peux pas te repondre pour la licence, mais sauf erreur, tu n'en as plus besoin maintenant.