SN46XX IP-PBX Gateway, SIP Trunk to ISDN PSTN
Posted by Markus Zeier, Last modified by Daniel Lizaola on 22 November 2017 01:37 PM
SN46XX SIP to ISDN Trunk Gateway configuration without SIP registration. The ISDN PSTN may be connected to Port BRI 0/0 to 0/X.
Copy the content below this introduction and save it to a text file for future upload to the SmartNode.

#----------------------------------------------------------------#
#                                                                #
# SN46XX/3BIS/UI                                                 #
# R5.X                                                           #
# 2011-06-15                                                     #
# IP-PBX Gateway, SIP Trunk to ISDN PSTN                         #
# Default configuration                                          #
# Author: MZ; Rev;0                                              #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
clock local default-offset +01:00
clock local dst-rule DST_SUMMER +02:00 from 02:00 mar last sunday until 03:00 oct last sunday
dns-client server 8.8.8.8
dns-client cache 100
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary swisstime.ee.ethz.ch port 123 version 4
sntp-client poll-interval 600
system hostname TRUNK_GATEWAY


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

profile napt NAPT_LAN

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  codec 3 g726-32k rx-length 20 tx-length 20
  fax transmission 1 relay t38-udp
  fax redundancy low-speed 2 high-speed 1
  fax bypass-method nse
  modem transmission 1 bypass g711alaw64k
  modem bypass-method nse

profile dhcp-server DHCP_MGT
  network 192.168.100.0 255.255.255.0
  include 1 192.168.100.100 192.168.100.110
  lease 1 days
  default-router 1 192.168.100.1
  domain-name-server 1 192.168.100.1

context ip router

  interface IF_IP_LAN
    ipaddress dhcp
   
  interface IF_IP_MGT
    ipaddress 192.168.100.1 255.255.255.0

context ip router
  dhcp-server use profile DHCP_MGT

context cs switch
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT_CDPN_SIP
    route default dest-interface IF_SIP_TRUNK MAP_NL

  mapping-table called-e164 to called-e164 MAP_NL
    map .%(.)$ to \1

  interface isdn IF_ISDN_S00
    route call dest-table RT_CDPN_SIP

  interface isdn IF_ISDN_S01
    route call dest-table RT_CDPN_SIP

  interface isdn IF_ISDN_S02
    route call dest-table RT_CDPN_SIP

  interface isdn IF_ISDN_S03
    route call dest-table RT_CDPN_SIP

  interface isdn IF_ISDN_S04
    route call dest-table RT_CDPN_SIP

  interface sip IF_SIP_TRUNK
    bind context sip-gateway SIP_GW
    route call dest-service HG_PSTN_TRUNK

  service hunt-group HG_PSTN_TRUNK
    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_S00
    route call 2 dest-interface IF_ISDN_S01
    route call 3 dest-interface IF_ISDN_S02
    route call 3 dest-interface IF_ISDN_S03
    route call 3 dest-interface IF_ISDN_S04

context cs switch
  no shutdown

context sip-gateway SIP_GW

  interface IF_SIP_GW
    bind interface IF_IP_LAN context router port 5060

context sip-gateway SIP_GW
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface IF_IP_LAN router
  no shutdown

port ethernet 0 1
  medium auto
  encapsulation ip
  bind interface IF_IP_MGT router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_ISDN_S00 switch

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_ISDN_S01 switch

port bri 0 1
  no shutdown

port bri 0 2
  clock auto
  power-feed
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_ISDN_S02 switch

port bri 0 2
  no shutdown

port bri 0 3
  clock auto
  power-feed
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_ISDN_S03 switch

port bri 0 3
  no shutdown

port bri 0 4
  clock auto
  power-feed
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_ISDN_S04 switch

port bri 0 4
  no shutdown

(1981 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).