#----------------------------------------------------------------# # # # Template for SN4638/5BIS/UI to use with Aastra 800 # # Use with firmware R5.1 or higher # # # # This template routes two specific telephone numbers (DIDs) to # # separate fax gateways, in order to not send them through the # # IP PBX # # # # This template uses dhcp to retrieve an IP address. Comments in # # the file indicate what to change (Start with '#') # # # # See the SmartWare Software Configuration guide for command # # details (http://www.patton.com/manuals/SCG-r52.pdf) # # # # Use either one of the two Ethernet interfaces; use BRI # # ports 0/0 to 0/3 in ascending order for this template # # # #----------------------------------------------------------------# cli version 3.20 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 clock-source 3 bri 0 2 clock-source 4 bri 0 3 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 codec 3 g729 rx-length 20 tx-length 20 fax transmission 1 relay t38-udp profile pstn default profile sip default profile aaa default method 1 local method 2 none context ip router interface IF_IP_WAN # replace 'dhcp' with your fix IP if needed, e.g. "ipaddress 172.16.1.20 255.255.0.0" ipaddress dhcp tcp adjust-mss rx mtu tcp adjust-mss tx mtu interface IF_IP_LAN ipaddress dhcp tcp adjust-mss rx mtu tcp adjust-mss tx mtu context ip router # uncomment the following line if you need to add routing table entries # route 0.0.0.0 0.0.0.0 172.16.1.1 context cs switch national-prefix 0 international-prefix 00 # 'T' in the following routing table specifies "digit collection". The time for collection can be adjusted replacing 'T' wih 'T2' for 2 seconds. # The table picks calls to numbers 695378912 and 695378913 and sends them to individual destinations (fax gateways), while sending all remaining calls to Aastra800 routing-table called-e164 RT_ISDN_TO_SIP route 695378912 dest-interface IF_SIP_FAX_1 route 695378913 dest-interface IF_SIP_FAX_2 route T dest-interface IF_SIP routing-table calling-e164 RT_SIP_TO_ISDN route default dest-service SV_HUNT_PSTN MP_Unknown-Subscriber mapping-table calling-e164 to calling-type-of-number MP_Unknown-Subscriber map default to subscriber interface isdn IF_ISDN_0 route call dest-table RT_ISDN_TO_SIP interface isdn IF_ISDN_1 route call dest-table RT_ISDN_TO_SIP interface isdn IF_ISDN_2 route call dest-table RT_ISDN_TO_SIP interface isdn IF_ISDN_3 route call dest-table RT_ISDN_TO_SIP interface sip IF_SIP bind context sip-gateway GW_SIP route call dest-table RT_SIP_TO_ISDN # This is the IP of your Aastra800. Replace with domain name if DNS server is available remote 172.16.1.40 interface sip IF_SIP_FAX_1 bind context sip-gateway GW_SIP route call dest-table RT_SIP_TO_ISDN # This is the IP address of the fax adapter. Replace with domain name if DNS server is available remote 172.16.1.62 interface sip IF_SIP_FAX_2 bind context sip-gateway GW_SIP route call dest-table RT_SIP_TO_ISDN # This is the IP address of the fax adapter. Replace with domain name if DNS server is available remote 172.16.1.63 service hunt-group SV_HUNT_PSTN 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_0 route call 2 dest-interface IF_ISDN_1 route call 3 dest-interface IF_ISDN_2 route call 4 dest-interface IF_ISDN_3 context cs switch no shutdown # The parameters realm, username and password have to match your Aastra800 configuration authentication-service AUTH_AASTRA800 realm 1 smartnode-gw username 6953789 password myPassword # The parameters domain, username, identity (=username) below have to match your Aastra800 configuration location-service LS_AASTRA800 domain 1 smartnode-gw identity-group default authentication inbound authenticate 1 authentication-service AUTH_AASTRA800 username 6953789 identity 6953789 authentication inbound authenticate 1 authentication-service AUTH_AASTRA800 username 6953789 registration inbound context sip-gateway GW_SIP interface LAN bind interface IF_IP_LAN context router port 5060 interface WAN bind interface IF_IP_WAN context router port 5060 context sip-gateway GW_SIP bind location-service LS_AASTRA800 no shutdown port ethernet 0 0 medium auto encapsulation ip bind interface IF_IP_WAN router no shutdown port ethernet 0 1 medium auto 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 port bri 0 2 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_2 switch 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 user bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_3 switch 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 user bchan-number-order ascending encapsulation cc-isdn port bri 0 4 shutdown