Configuration Description
SmartNode used as a PSTN/ISDN and terminal gateway in a Media-Streams e-Phone enviroment.
Commande Sequence to copy, edit and paste
#----------------------------------------------------------------# # # # SN1x00 # # R3.10 # # # # e-Phone PSTN and Terminal Gateway # # Connect the PSTN to port BRI0 and the Phones to Port BRI1. # # Connect the LAN to port ETH1 and if a WAN is available # # connect it to port ETHO # # # # The configuration contains variables in brackets. # # Please read all the comments and replace the variables # # including the brackets. # # Unused lines or variables have to be commented out or deleted # # # # Date: 2005-03-01 # # Author: MZ, PATTON-INALP NETWORKS, CH-3172 Niederwangen # # WWW.PATTON.COM SUPPORT@INALP.COM # # # #----------------------------------------------------------------#
cli version 3.00 banner "WELCOME\nPLEASE LOG ON"
# Set the Domain-Name-Server IP-Addresses
dns-client server <IP-Address of primary DNS-server> dns-client server <IP-Address of secondary DNS-server> dns-client enabled dns-client cache 100 webserver port 80 language en
# Set the time server IP-Addresses
sntp-client server primary <primary time server IP-Address> port 123 version 4 sntp-client server secondary <secondary time server IP-Address> port 123 version 4 sntp-client operating-mode unicast sntp-client anycast-address 224.0.1.1 port 123 sntp-client local-port 123
# Set the System-Hostname
system hostname <hostname>
profile napt test
profile ppp default
profile tone-set default map call-progress-tone dial-tone defaultBusytone
profile voip default codec 1 g711alaw64k rx-length 20 tx-length 20
profile pstn default
profile authentication default method 1 local method 2 none
context ip router
# Set WAN-IP-Address and IP-Mask
interface IF_WAN ipaddress <global IP-Address> <global IP-Mask> icmp router-discovery
# Set LAN-IP-Address and IP-Mask
interface IF_LAN ipaddress <local IP-Address> <local IP-Mask> icmp router-discovery
# Set the default Gateway IP-Address
context ip router route 0.0.0.0 0.0.0.0 <default Gateway IP-Address> 0
context cs switch
routing-table called-e164 RT_CDPN_FROM_TERMINAL route T dest-interface IF_SIP_EPHONE MT_ADD_PREF
routing-table called-e164 RT_CDPN_2_SIP route default dest-interface IF_SIP_EPHONE MT_CDPN_TRUNC
routing-table called-e164 RT_CDPN_2_ISDN route default dest-interface IF_SO_TERMINAL route 5* dest-interface IF_S0_PSTN MT_REM_PREF
mapping-table called-e164 to called-e164 MT_CDPN_ADD_PREF map 0(.%) to 5*\1
mapping-table called-e164 to called-e164 MT_CDPN_REM_PREF map 5*(.%) to \1
# Each dot within the brackets refers to one digit. # The number of dot within the brackets depends on your mumbering plan
mapping-table called-e164 to called-e164 MT_CDPN_TRUNC map .%(...) to \1
interface isdn IF_SO_TERMINAL route call dest-table RT_CDPN_FROM_TERMINAL isdn-date-time
interface isdn IF_S0_PSTN route call dest-table RT_CDPN_2_SIP use profile pstn default
interface sip IF_SIP_EPHONE bind gateway sip route call dest-table RT_CDPN_2_ISDN early-disconnect address-translation incoming-call called-e164 to-header
gateway sip sip
# If the addresses are defined as an URL, # one or two domanin name servers have to be configured. # (See top of the configuration file.)
# set SIP server addresses
domain <URL or IP-ADDRESS of the domain> default-server <URL or IP-ADDRESS of the default server> 5060 loose-router registrar <URL or IP-ADDRESS of the default server> 5060
registration-lifetime 120 user 5* display-name PstnGateway phone-context 5*
# Define the terminal user settings
user <phone number of phone 1> display-name "<phone number and/or name of phone 1>" phone-context "" user <phone number of phone 2> display-name "<phone number and/or name of phone 2>" phone-context "" user <phone number of phone x> display-name "<phone number and/or name of phone x>" phone-context ""
transport tcp bind interface IF_LAN router no shutdown
port ethernet 0 0 medium 10 half encapsulation ip bind interface IF_WAN router no shutdown
port ethernet 0 1 medium 10 half encapsulation ip bind interface IF_LAN router no shutdown
port bri 0 0 clock auto encapsulation q921
q921 permanent-layer2
# set the ISDN Layer2 protocol
protocol <pp|pmp>
uni-side user encapsulation q931
q931 protocol dss1 uni-side user encapsulation cc-isdn bind interface IF_SO_PSTN switch
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_SO_TERMINAL switch
port bri 0 1 no shutdown
|