Knowledgebase

 
 
Knowledgebase Article
Knowledgebase > Unified Communications > SmartNode > SmartWare


PSTN and Terminal Gateway for e-Phone applications
Article Id #: 175

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   [email protected]                     #
#                                                                #
#----------------------------------------------------------------#

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

User Rating
This answer was helpful This answer was not helpful (8780 vote(s)) 
User Comments  Add a Comment )

 
 
Products
Unified Communications
> VoIP Adapters
> Fax Adapters
> VoIP Gateways
> VoIP Routers
> VoIP IADs - Integrated Access Devices
> Enterprise Session Border Controllers
> Media Gateways
> SS7 Gateways
> Secure End Points (SIP Phones)
> VoIP Public Address & Mass Notification
Software and Cloud
> Virtual SBC | Virtualized SBC
> Virtual Access Router
> VPN Server
> IPv6 IPv4 Converter
> Intelligent Edge Orchestration
> NFV & SDN
Networking & Access
> Ethernet Extenders
> Industrial Switches
> Industrial Ethernet
> Unmanaged Industrial Ethernet Switches
> Managed Industrial Ethernet Switches
> Industrial PoE Switches
> PoE Extenders
> Industrial Network Solutions
> xDSL Products | DSL Modems, DSL VoIP, DSL Router Modems
> Routers
> Dial-Up Access

Sunset Products
 
Datacom Industrial Connectivity
> Industrial PoE Products
> Ethernet Over Fiber
> Line Drivers / Short Range Modems
> Wireline Analog Modems
> Pro AV Live & Media Broadcast Systems
> Fiber Serial DataCom (RS-232/422/530/188C)
> Fiber Telecom (T1/E1/PRI, Analog & ISDN)
> Multiplexers & Sharing Devices
> SFP (Small Form Pluggable) Modules and Kits
> Fiber Alarming, Notification, Relay & Control
> Other Network Extenders
> Defense/Security Fiber Communications
> Baluns
> Surge Protectors & Opto-Isolators
> DataTaps, Testers, Adapters, Rack Kits
> Interface Converters
> Fiber Rack & Enclosure Systems
> Fiber Repeaters & Wavelength Division Multiplexers (WDM)
> Waveguide RF Filters
Media Transport
> Artel Racks & Chassis Infrastructure
> Video Over IP Transport
> Video Over Fiber Transport
> Video, Audio & Data Over Fiber Transport
> Video & Audio Over Fiber Transport
> Ethernet Over Fiber Transport
> Serial DataComm Over Fiber Transport
> Video, Fiber Testers & Splitters
> Wave Division Multiplexers
> Ethernet Switches
> SFP Modules and Kits
 
Sales: [email protected] / +1 301 975 1000
Support: [email protected] / +1 301 975 1007
Join Our Email List
Have Us Contact You
or
Login Connect With Us
X Linkedin Facebook Youtube
 
     Patton LLC Copyright © 2022 All Rights Reserved.

|  Sitemap  |   Legal  |   Privacy Policy  |   Disclaimer  |    X  Facebook  YouTube  LinkedIn  RSS