SN46X8 SmartWare SWR 6.X Sample configuration SmartNode connected as trunk gateway between a SIP network and PBX with 4 S0 port.
Copy and paste the below config in to a text editor.
Replace all the values as described on the lines starting with a #
The Port S0 slot 0 port 0 is configured as fall-back and sync-port. It is configured in the user mode and should be connected to a PSTN. The ports slot 0 port 1 to 4 are configured as net and should be connected to a PBX. Not all the ports have to be connected
#-----------------------------------------------------------------#
# #
# SN46XX #
# SMARTWARE 6.X #
# #
# Sample configuration of context CS and ISDN ports only. #
# Without gateway and IP configuration. #
# #
# SmartNode connected as trunk gateway between a SIP network #
# and ISDN PBX with 4 S0 port. The Port S0 slot 0 port 0 (BRI 0/0)#
# is configured as fallback and sync-port. It is configured in #
# user mode and should be connected to a PSTN. #
# The ports slot 0 port 1 to 4 are configured as net and should #
# be connected to a PBX. Not all the ports have to be connected #
# #
# DATE: 2013-06 #
# AUTHOR: Thomas Tlapak / Marc Aeberhard #
# PATTON-INALP-NETWORKS; CH-3172 NIEDERWANGEN #
# WWW.PATTON.COM WWW.INALP.COM #
# #
# #
#-----------------------------------------------------------------#
system
clock-source 1 bri 0 0
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 1 minutes
default-router 1 192.168.1.1
domain-name-server 1 192.168.1.1
context ip router
interface WAN
# Enter below the IP address and SubnetMask of the SmartNode
ipaddress 172.16.10.10 255.255.255.0
use profile napt NAPT_WAN
interface LAN
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
# Enter below the default Gateway IP address, replacing the 172.16.10.1
route 0.0.0.0 0.0.0.0 172.16.10.1 0
context cs switch
routing-table called-e164 RT_CDPN_OUT
route .T dest-service SERV_HG_2_OUT
interface sip IF_SIP
bind context sip-gateway GW_SIP
# Enter below the SIP server / Softswitch IP address or FQDN
remote <0.0.0.0>
trust remote
# Enter below the SIP account username, to be used for authentication
address-translation outgoing-call from-header user-part fix <account number>
route call dest-service SERV_HG_2_PBX
interface isdn IF_ISDN_00
route call dest-service SERV_HG_2_PBX
interface isdn IF_ISDN_01
route call dest-table RT_CDPN_OUT
interface isdn IF_ISDN_02
route call dest-table RT_CDPN_OUT
interface isdn IF_ISDN_03
route call dest-table RT_CDPN_OUT
interface isdn IF_ISDN_04
route call dest-table RT_CDPN_OUT
service hunt-group SERV_HG_2_OUT
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_SIP
route call 2 dest-interface IF_ISDN_00
service hunt-group SERV_HG_2_PBX
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_01
route call 2 dest-interface IF_ISDN_02
route call 2 dest-interface IF_ISDN_03
route call 2 dest-interface IF_ISDN_04
context cs switch
no shutdown
authentication-service SER_AUTH_OB
# Enter below the username and password of the SIP TRUNK Account.
username <authentication username> password <authentication password>
location-service SER_LOC_CERT
# Enter the SIP Trunk accound or IP address
domain 1 <sip domain>
#Enter the SIP TRUNK identity again
identity <your sip identity>
authentication outbound
authenticate 1 authentication-service SER_AUTH_OB
registration outbound
# Again set the SIP TRUNNK Domain or IP address
registrar <URL or IP-address of registrar server>
lifetime 300
register auto
context sip-gateway GW_SIP
interface IF_GW_WAN
bind interface WAN context router
context sip-gateway GW_SIP
bind location-service SER_LOC_CERT
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
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
encapsulation cc-isdn
bind interface IF_ISDN_00
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 net
encapsulation cc-isdn
bind interface IF_ISDN_01
port bri 0 1
no shutdown
port bri 0 2
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side net
encapsulation cc-isdn
bind interface IF_ISDN_02
port bri 0 2
no shutdown
port bri 0 3
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side net
encapsulation cc-isdn
bind interface IF_ISDN_03
port bri 0 3
no shutdown
port bri 0 4
clock auto
encapsulation q921
q921
protocol pp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side net
encapsulation cc-isdn
bind interface IF_ISDN_04
port bri 0 4
no shutdown