Configuration Description
In some cases, more FXS, FXO or BRI ports are needed as available on one SmartNode for certain applications. This conifg example shows, how to stack two or more SmartNodes, achieving more channels / ports. The idea is to let the "Master" SmartNode handle all calls. It communicates with the SIP server and distinguishes calls to the slave SN over the second ethernet port (LAN) in case all TDM channels are occupied. The service hunt-group is in charge of this. ISDN ports, 0/0 on both SmartNodes are used for clock sync, while a PSTN line is plugged. IP network which connects the two SmartNodes is 192.168.20.0/24. There is no SIP call authentication between the two SmartNodes. Please make sure you set and replace all values which are commented as below with #.
Command Sequence to copy, edit and paste
MASTER SN46XX ------------- #----------------------------------------------------------------# # # # SN4638 MASTER # # R5.T # # 2010-05-12 # # Author M. Aeberhard # # # #----------------------------------------------------------------#
cli version 3.20 banner # enter below the DNS server IP dns-client server [dns-serverIP] dns-relay webserver port 80 language en sntp-client sntp-client server primary swisstime.ethz.ch port 123 version 4 system hostname MASTER_SN
system
ic voice 0 low-bitrate-codec g729
system clock-source 1 bri 0 0
profile napt NAPT_WAN
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 fax transmission 1 relay t38-udp modem transmission 1 bypass g711alaw64k modem bypass-method nse
profile pstn default
profile sip default
profile dhcp-server DHCP_LAN
profile aaa default method 1 local method 2 none
context ip router
interface IF_WAN ipaddress dhcp use profile napt NAPT_WAN
interface IF_LAN_VOIP ipaddress 192.168.20.1 255.255.255.0
context cs switch
routing-table called-e164 RT_DIGIT_COLL route .T dest-interface IF_SIP_DEFAULT
routing-table called-e164 RT_FROM_NET route default dest-service HG_TO_USR
interface isdn IF_ISDN_S00 route call dest-table RT_FROM_NET isdn-date-time
interface isdn IF_ISDN_S01 route call dest-table RT_DIGIT_COLL call-reroute accept no call-waiting network-type user isdn-date-time
interface isdn IF_ISDN_S02 route call dest-table RT_DIGIT_COLL call-reroute accept no call-waiting network-type user isdn-date-time
interface isdn IF_ISDN_S03 route call dest-table RT_DIGIT_COLL call-reroute accept no call-waiting network-type user isdn-date-time
interface isdn IF_ISDN_S04 route call dest-table RT_DIGIT_COLL call-reroute accept no call-waiting network-type user isdn-date-time
interface sip IF_SIP_DEFAULT bind context sip-gateway SIP_WAN route call dest-service HG_TO_USR # remote [registrar IP address or domain name]
interface sip IF_SIP_LAN bind context sip-gateway SIP_LAN route call dest-interface IF_SIP_DEFAULT remote 192.168.20.2 local 192.168.20.2
service hunt-group HG_TO_USR allows-push-back 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 destination-out-of-order unavailable drop user-busy route call 1 dest-interface IF_ISDN_S01 route call 2 dest-interface IF_ISDN_S02 route call 2 dest-interface IF_ISDN_S03 route call 2 dest-interface IF_ISDN_S04 route call 3 dest-interface IF_SIP_LAN
context cs switch no shutdown
authentication-service AUTH_DEF # Enter below the username and passwort you got by VOIP provider username [XXX] password [YYY]
location-service LOC_DEF # The line below requires the VOIP Providers domain name domain 1 [registrar IP or domain]
identity-group default
authentication outbound # Replace the XXX with the username of Authentication service authenticate 1 authentication-service AUTH_DEF username [XXX]
registration outbound # Set the Registrar IP or domainname of VOIP provider registrar [registrar address] 5060 register auto
# Set the right username while replacing the XXX identity [XXX] inherits default
context sip-gateway SIP_WAN
interface GW_SIP_WAN bind interface IF_WAN context router port 5060
context sip-gateway SIP_WAN bind location-service LOC_DEF no shutdown
context sip-gateway SIP_LAN
interface GW_SIP_LAN bind interface IF_LAN_VOIP context router port 5060
context sip-gateway SIP_LAN no shutdown
port ethernet 0 0 medium auto encapsulation ip bind interface IF_WAN router no shutdown
port ethernet 0 1 medium auto encapsulation ip bind interface IF_LAN_VOIP router no shutdown
port bri 0 0 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S00 switch
port bri 0 0 no shutdown
port bri 0 1 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S01 switch
port bri 0 1 no shutdown
port bri 0 2 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S02 switch
port bri 0 2 no shutdown
port bri 0 3 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S03 switch
port bri 0 3 no shutdown port bri 0 4 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S03 switch
port bri 0 4 no shutdown ------------------------------------------------- SLAVE SN46XX #----------------------------------------------------------------# # # # SN4634 SLAVE # # R5.T # # 2010-05-12 # # Author M. Aeberhard # # # #----------------------------------------------------------------#
cli version 3.20 banner # enter below the DNS server IP dns-client server [dns-serverIP] dns-relay webserver port 80 language en sntp-client sntp-client server primary swisstime.ethz.ch port 123 version 4 system hostname SLAVE_SN
system
ic voice 0 low-bitrate-codec g729
system clock-source 1 bri 0 0
profile napt NAPT_WAN
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 fax transmission 1 relay t38-udp modem transmission 1 bypass g711alaw64k modem bypass-method nse
profile pstn default
profile sip default
profile dhcp-server DHCP_LAN network 192.168.1.0 255.255.255.0 include 1 192.168.1.33 192.168.1.64 lease 1 days 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_WAN ipaddress 192.168.20.2 255.255.255.0 use profile napt NAPT_WAN
interface IF_LAN ipaddress 192.168.1.1 255.255.255.0
context ip router dhcp-server use profile DHCP_LAN route 0.0.0.0 0.0.0.0 192.168.20.1 0
context cs switch
routing-table called-e164 RT_DIGIT_COLL route .T dest-interface IF_SIP_DEFAULT
routing-table called-e164 RT_FROM_NET route default dest-service HG_TO_USR
interface isdn IF_ISDN_S00 route call dest-table RT_FROM_NET network-type user isdn-date-time
interface isdn IF_ISDN_S01 route call dest-table RT_DIGIT_COLL call-reroute accept no call-waiting network-type user isdn-date-time
interface isdn IF_ISDN_S02 route call dest-table RT_DIGIT_COLL call-reroute accept no call-waiting network-type user isdn-date-time
interface sip IF_SIP_DEFAULT bind context sip-gateway sip route call dest-table RT_FROM_NET remote 192.168.20.1 local 192.168.20.1
service hunt-group HG_TO_USR 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 destination-out-of-order unavailable drop user-busy route call 1 dest-interface IF_ISDN_S01 route call 2 dest-interface IF_ISDN_S02
context cs switch no shutdown
context sip-gateway sip
interface GW_SIP_WAN bind interface IF_WAN context router port 5060
context sip-gateway sip bind location-service LOC_DEF no shutdown
port ethernet 0 0 medium auto encapsulation ip bind interface IF_WAN router no shutdown
port ethernet 0 1 medium auto encapsulation ip bind interface IF_LAN router no shutdown
port bri 0 0 clock slave encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S00 switch
port bri 0 0 no shutdown
port bri 0 1 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S01 switch
port bri 0 1 no shutdown
port bri 0 2 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side auto encapsulation q931
q931 protocol dss1 uni-side net bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_S02 switch
port bri 0 2 no shutdown
|