Frequently Asked Question
Patton SN-4554 PP
Last Updated 8 years ago
Patton Smartnode 4554 [2x losse PP Pont2Point]
Configuratie voorbeeld op 4AllBusiness PBX (FreePBX)
2x BRI aansluiting
2x 2 ISDN gesprekskanalen
Trunk voorbeeld in de PBX.
PattonScript: (ook los te downloaden als attachment)
Dit script aanpassen en importeren via Patton.
Passwords, logins en IP adressen aanpassen.
Copy de tekst en sla op in een tekst bestand om te importeren in de Patton.
#########################################################
#
# Voor Patton SmartNode 4554 2-port BRI
# Configuratie script voor in/outbound ISDN op de 4AllBusiness PBX
# Supported firmware versions R5.x
# Ingesteld als 2x losse trunk voor 2 losse ISDN aansluitingen [PP = Point2Point]
# aanpassen indien het PmP [=PointMultiPoint] moet zijn.
#
# Author: Bas Huijsen - 4AllBusiness.nl
# Contact: info@4allbusiness.nl
#
#########################################################
webserver port 80 language en
system
ic voice 0
low-bitrate-codec g729
system
clock-source 1 bri 0 0
clock-source 2 bri 0 1
profile ppp default
profile call-progress-tone defaultDialtone
flush-play-list
play 1 1000 425 0
profile call-progress-tone defaultAlertingtone
flush-play-list
play 1 1000 425 -7
pause 2 4000
profile call-progress-tone defaultBusytone
flush-play-list
play 1 500 425 -7
pause 2 500
profile call-progress-tone defaultReleasetone
flush-play-list
play 1 250 425 -7
pause 2 250
profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 250 425 -7
pause 2 250
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
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
modem transmission 1 bypass g711alaw64k
profile pstn default
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_LAN
# Dit is het IP address van de Patton webinterface in het netwerk
# Default login naam=administrator password=[leeg]
ipaddress 192.168.1.166 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
map restricted to ""
mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
map (.%)-(.%)-(.%)-(.%)-(.%) to 12345
map (.%)-(.%)-(.%)-(.%) to 1234
map (.%)-(.%)-(.%) to 123
map (.%)-(.%) to 12
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to 1
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
mapping-table calling-e164 to calling-e164 SET_CNPN
map 0(.%) to 1
mapping-table calling-type-of-number to calling-type-of-number TYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan PLAN
map default to isdn-telephony
complex-function OUTBOUND
execute 1 PLAN
execute 2 SET_CNPN
execute 3 TYPE
routing-table called-e164 RT_ISDN_TO_SIP_0
route T2 dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_ISDN_TO_SIP_1
route T2 dest-interface IF_SIP_1 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_SIP_TO_ISDN_0
route default dest-interface IF_ISDN_0 OUTBOUND
routing-table called-e164 RT_SIP_TO_ISDN_1
route default dest-interface IF_ISDN_1 OUTBOUND
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP_0
call-reroute emit
diversion emit
user-side-ringback-tone
call-hold disable
caller-name
interface isdn IF_ISDN_1
route call dest-table RT_ISDN_TO_SIP_1
user-side-ringback-tone
call-reroute emit
diversion emit
call-hold disable
caller-name
interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
early-connect
early-disconnect
route call dest-table RT_SIP_TO_ISDN_0
# Vul hier het IP-address in van de PBX
remote 192.168.1.106 5060
call-reroute accept
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_1
bind context sip-gateway GW_SIP_1
early-connect
early-disconnect
route call dest-table RT_SIP_TO_ISDN_1
# Vul hier het IP-address in van de PBX
remote 192.168.1.106 5060
call-reroute accept
address-translation outgoing-call request-uri user-part fix 10001 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 4AbPbx
# Wijzig usename en password overeenkomstig met de Trunkgegevens in de 4Ab PBX
username 10000 password PattonPassword4A11Biz
username 10001 password PattonPassword4A11Biz
# In dit voorbeeld: 10000=username PattonPassword1=secret
location-service LS_10000
domain 1 192.168.1.106
# IpAddress van de 4AbPBX
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000
identity 10000
# Username van de 4AbPBX trunk
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.1.106 5060
# IpAddress van de 4AbPBX
lifetime 300
register auto
location-service LS_10001
domain 1 192.168.1.106
# IpAddress van de 4AbPBX
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10001
identity 10001
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.1.106 5060
# IpAddress van de 4AbPBX
lifetime 300
register auto
context sip-gateway GW_SIP_0
interface LAN
bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_SIP_0
bind location-service LS_10000
# Username van de 4AbPBX trunk
no shutdown
context sip-gateway GW_SIP_1
interface LAN
bind interface IF_IP_LAN context router port 5062
context sip-gateway GW_SIP_1
bind location-service LS_10001
# Username van de 4AbPBX trunk
no shutdown
port ethernet 0 0
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_0 switch
port bri 0 0
no shutdown
port bri 0 1
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_1 switch
port bri 0 1
no shutdown
Configuratie voorbeeld op 4AllBusiness PBX (FreePBX)
2x BRI aansluiting
2x 2 ISDN gesprekskanalen
Trunk voorbeeld in de PBX.
PattonScript: (ook los te downloaden als attachment)
Dit script aanpassen en importeren via Patton.
Passwords, logins en IP adressen aanpassen.
Copy de tekst en sla op in een tekst bestand om te importeren in de Patton.
#########################################################
#
# Voor Patton SmartNode 4554 2-port BRI
# Configuratie script voor in/outbound ISDN op de 4AllBusiness PBX
# Supported firmware versions R5.x
# Ingesteld als 2x losse trunk voor 2 losse ISDN aansluitingen [PP = Point2Point]
# aanpassen indien het PmP [=PointMultiPoint] moet zijn.
#
# Author: Bas Huijsen - 4AllBusiness.nl
# Contact: info@4allbusiness.nl
#
#########################################################
webserver port 80 language en
system
ic voice 0
low-bitrate-codec g729
system
clock-source 1 bri 0 0
clock-source 2 bri 0 1
profile ppp default
profile call-progress-tone defaultDialtone
flush-play-list
play 1 1000 425 0
profile call-progress-tone defaultAlertingtone
flush-play-list
play 1 1000 425 -7
pause 2 4000
profile call-progress-tone defaultBusytone
flush-play-list
play 1 500 425 -7
pause 2 500
profile call-progress-tone defaultReleasetone
flush-play-list
play 1 250 425 -7
pause 2 250
profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 250 425 -7
pause 2 250
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
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
modem transmission 1 bypass g711alaw64k
profile pstn default
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_LAN
# Dit is het IP address van de Patton webinterface in het netwerk
# Default login naam=administrator password=[leeg]
ipaddress 192.168.1.166 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
map restricted to ""
mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
map (.%)-(.%)-(.%)-(.%)-(.%) to 12345
map (.%)-(.%)-(.%)-(.%) to 1234
map (.%)-(.%)-(.%) to 123
map (.%)-(.%) to 12
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to 1
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
mapping-table calling-e164 to calling-e164 SET_CNPN
map 0(.%) to 1
mapping-table calling-type-of-number to calling-type-of-number TYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan PLAN
map default to isdn-telephony
complex-function OUTBOUND
execute 1 PLAN
execute 2 SET_CNPN
execute 3 TYPE
routing-table called-e164 RT_ISDN_TO_SIP_0
route T2 dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_ISDN_TO_SIP_1
route T2 dest-interface IF_SIP_1 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_SIP_TO_ISDN_0
route default dest-interface IF_ISDN_0 OUTBOUND
routing-table called-e164 RT_SIP_TO_ISDN_1
route default dest-interface IF_ISDN_1 OUTBOUND
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP_0
call-reroute emit
diversion emit
user-side-ringback-tone
call-hold disable
caller-name
interface isdn IF_ISDN_1
route call dest-table RT_ISDN_TO_SIP_1
user-side-ringback-tone
call-reroute emit
diversion emit
call-hold disable
caller-name
interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
early-connect
early-disconnect
route call dest-table RT_SIP_TO_ISDN_0
# Vul hier het IP-address in van de PBX
remote 192.168.1.106 5060
call-reroute accept
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_1
bind context sip-gateway GW_SIP_1
early-connect
early-disconnect
route call dest-table RT_SIP_TO_ISDN_1
# Vul hier het IP-address in van de PBX
remote 192.168.1.106 5060
call-reroute accept
address-translation outgoing-call request-uri user-part fix 10001 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 4AbPbx
# Wijzig usename en password overeenkomstig met de Trunkgegevens in de 4Ab PBX
username 10000 password PattonPassword4A11Biz
username 10001 password PattonPassword4A11Biz
# In dit voorbeeld: 10000=username PattonPassword1=secret
location-service LS_10000
domain 1 192.168.1.106
# IpAddress van de 4AbPBX
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000
identity 10000
# Username van de 4AbPBX trunk
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.1.106 5060
# IpAddress van de 4AbPBX
lifetime 300
register auto
location-service LS_10001
domain 1 192.168.1.106
# IpAddress van de 4AbPBX
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10001
identity 10001
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.1.106 5060
# IpAddress van de 4AbPBX
lifetime 300
register auto
context sip-gateway GW_SIP_0
interface LAN
bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_SIP_0
bind location-service LS_10000
# Username van de 4AbPBX trunk
no shutdown
context sip-gateway GW_SIP_1
interface LAN
bind interface IF_IP_LAN context router port 5062
context sip-gateway GW_SIP_1
bind location-service LS_10001
# Username van de 4AbPBX trunk
no shutdown
port ethernet 0 0
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_0 switch
port bri 0 0
no shutdown
port bri 0 1
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_1 switch
port bri 0 1
no shutdown