Configuration Descritipon
Configuration for SN4638 for use with OCS. A more detailed explanation you will find on the following link.
Commande Sequence to copy, edit and paste
#----------------------------------------------------------------# # # # SN4638/5BIS/UI # # R5.X # # # # OCS sampe configuration # # Author: Thomas Tlapak # # Patton-Inalp Neworks # # CH-3172 Niederwangen # # www.patton.com; support@patton.com # # # # Date: 5/11/2010 # # # #----------------------------------------------------------------#
cli version 3.20 administrator administrator password abersogeheim! encrypted clock local offset +01:00 dns-relay webserver port 80 language en sntp-client sntp-client server primary 193.84.178.254 port 123 version 4 system hostname patton-tb
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 clock-source 5 bri 0 4
profile napt NAPT_WAN
profile ppp default
profile tone-set default
profile voip default codec 1 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression codec 2 g711ulaw64k rx-length 20 tx-length 20 no-silence-suppression rtp traffic-class local-default
profile pstn default
profile sip default
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 2 hours 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 WAN ipaddress dhcp use profile napt NAPT_WAN tcp adjust-mss rx mtu tcp adjust-mss tx mtu
interface IF_IP_LAN ipaddress 192.168.1.1 255.255.255.0
context ip router # Set below the default gateway IP address route 0.0.0.0 0.0.0.0 <default gateway IP> 0
context cs switch
routing-table called-e164 RT_FROM_PSTN route .T dest-interface IF_SIP_OCS
routing-table calling-e164 RT_TO_PSTN_OCS route .T dest-service SER_HUNT_PSTN
interface isdn IF_TE_00 route call dest-table RT_FROM_PSTN
interface isdn IF_TE_01 route call dest-table RT_FROM_PSTN
interface isdn IF_TE_02 route call dest-table RT_FROM_PSTN
interface isdn IF_TE_03 route call dest-table RT_FROM_PSTN
interface isdn IF_TE_04 route call dest-table RT_FROM_PSTN
interface sip IF_SIP_OCS bind context sip-gateway GW_OCS route call dest-table RT_TO_PSTN_OCS # Enter below the OCS server IP remote <Domain or IP> early-connect early-disconnect
service hunt-group SER_HUNT_PSTN cyclic timeout 6 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_TE_00 route call 2 dest-interface IF_TE_01 route call 3 dest-interface IF_TE_02 route call 4 dest-interface IF_TE_03 route call 5 dest-interface IF_TE_04
context cs switch no shutdown
location-service SER_OCS domain 1 <Domain or IP> <Port>
identity-group default
call outbound preferred-transport-protocol tcp
context sip-gateway GW_OCS
interface IF_IP_LAN bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_OCS bind location-service SER_OCS 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 IF_IP_LAN router no shutdown
port bri 0 0 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side user encapsulation q931
q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_TE_00 switch
port bri 0 0 no shutdown
port bri 0 1 clock auto encapsulation q921
q921 permanent-layer2 protocol pp uni-side user encapsulation q931
q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_TE_01 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 user bchan-number-order ascending encapsulation cc-isdn bind interface IF_TE_02 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 user bchan-number-order ascending encapsulation cc-isdn bind interface IF_TE_03 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 user bchan-number-order ascending encapsulation cc-isdn bind interface IF_TE_04 switch
port bri 0 4 no shutdown
|