VoIP

SN4554 configuration example R4.2

SmartNode 4554 patton configuration Example R4.2

The following script can be used to configure SN4554 R4.2 firmware to be used with asterisk.
It manages 2 BRI ISDN ports, through 2 SIP accounts that permit asterisk to select the BRI port to route the call to.


cli version 3.20
gui type basic
administrator admin password D2F2A1lO9/8= encrypted
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.0.1 port 123 version 4

system

ic voice 0
low-bitrate-codec g729

system
clock-source 1 bri 0 0
clock-source 2 bri 0 1

profile napt NAPT_WAN

profile ppp default

profile call-progress-tone IT_Dialtone
play 1 200 425 -12
pause 2 200
play 3 600 425 -12
pause 4 1000

profile call-progress-tone IT_Alertingtone
play 1 1000 425 -12
pause 2 4000

profile call-progress-tone IT_Busytone
play 1 500 425 -12
pause 2 500

profile tone-set default

profile tone-set IT
map call-progress-tone dial-tone IT_Dialtone
map call-progress-tone ringback-tone IT_Alertingtone
map call-progress-tone busy-tone IT_Busytone
map call-progress-tone release-tone IT_Busytone
map call-progress-tone congestion-tone IT_Busytone

profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20

profile voip VOIP
codec 1 g729 rx-length 20 tx-length 20
codec 2 g711alaw64k rx-length 20 tx-length 20
codec 3 g711ulaw64k rx-length 20 tx-length 20
dejitter-mode static
dejitter-max-delay 120

profile pstn default

profile sip default

profile aaa default
method 1 local
method 2 none

context ip router

interface IF_IP_WAN
ipaddress dhcp
use profile napt NAPT_WAN
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu

context cs switch
no digit-collection timeout
no digit-collection terminating-char
national-prefix 0
international-prefix 00

routing-table called-e164 uscente
route default dest-interface IF_S0_00

routing-table called-e164 entrante
route default dest-interface IF_SIP_SERVICE

interface isdn IF_S0_00
route call dest-interface IF_SIP_SERVICE
use profile tone-set IT
caller-name

interface isdn IF_S0_01
route call dest-interface IF_SIP_SERVICE
use profile tone-set IT

interface sip IF_SIP_SERVICE
bind gateway GW_SIP1
service default
route call dest-interface IF_S0_00
address-translation incoming-call calling-e164 from-header
address-translation incoming-call calling-name from-header
address-translation incoming-call called-e164 to-header
address-translation incoming-call called-uri to-header
early-connect
early-disconnect
use profile voip VOIP

interface sip IF_SIP_SERVICE_BIS
bind gateway GW_SIP2
service default
route call dest-interface IF_S0_01
address-translation incoming-call calling-e164 from-header
address-translation incoming-call calling-name from-header
address-translation incoming-call called-e164 to-header
address-translation incoming-call called-uri to-header
early-connect
early-disconnect
use profile voip VOIP

service hunt-group SER_HG_PSTN_FALLBACK
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_SERVICE

context cs switch
no shutdown

gateway sip GW_SIP1
bind interface IF_IP_WAN router

service default
domain 192.168.0.1
defaultserver manual 192.168.0.1 5060 loose-router
registration manual 192.168.0.1 5060 use-default-server
user 100 authenticate password D2F2A1lO9/8= encrypted register
session-timer 3600

gateway sip GW_SIP1
no shutdown

gateway sip GW_SIP2
call-signaling-port 5062
bind interface IF_IP_WAN router

service default
domain 192.168.0.1
defaultserver manual 192.168.0.1 5060 loose-router
registration manual 192.168.0.1 5060 use-default-server
user 101 authenticate password D2F2A1lO9/8= encrypted register
session-timer 3600

gateway sip GW_SIP2
no shutdown

port ethernet 0 0
bind interface IF_IP_WAN router
no shutdown

port bri 0 0
clock auto
encapsulation q921

q921
protocol ptmp
uni-side auto
encapsulation q931

q931
protocol dss1
uni-side user
bchan-number-order descending
encapsulation cc-isdn
bind interface IF_S0_00 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 descending
encapsulation cc-isdn
bind interface IF_S0_01 switch

port bri 0 1
no shutdown


Note: improvements and comments to this configuration script are welcome!

Other documentation


Created by: mesfet, Last modification: Wed 29 of Apr, 2009 (12:32 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+