Configuration Description
SmartNode used as gateway between a SIP network and a phone, connected to port 0/1. The Port 0/0 is configured as user and can be used as fallback to a PSTN. Emercency calls will be routed to PSTN instead of VOIP.
Command Sequence to copy, edit and paste
#-----------------------------------------------------------------#
# #
# SMARTWARE 5.X #
# #
# Sample configuration of context CS and ISDN ports only. #
# Without gateway and IP configuration. #
# #
# SmartNode connected as gateway between a SIP network #
# and a phone connected to port 0/1. The Port 0/0 is configured #
# as fallback. It is configured as user port #
# and should be connected to a PSTN. #
# #
# DATE: 2011-01-05 #
# AUTHOR: Thomas Tlapak #
# PATTON-INALP-NETWORKS; CH-3172 NIEDERWANGEN #
# WWW.PATTON.COM WWW.INALP.COM #
# #
# #
#-----------------------------------------------------------------#
system
clock-source 1 bri 0 0
context cs switch
digit-collection timeout 3
routing-table called-e164 RT_CDPN_OUT
route .T dest-service HG_2_OUT
interface sip IF_SIP
# Enter below the context sip-gateway name
bind context sip-gateway <gateway name>
# Enter below the SIP server / Softswitch IP address or FQDN
remote <0.0.0.0>
# 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-interface IF_ISDN_01
interface isdn IF_ISDN_00
route call dest-interface IF_ISDN_01
interface isdn IF_ISDN_01
route call dest-table RT_CDPN_OUT
service hunt-group 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
context cs switch
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
protocol pmp
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 pmp
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