SN49XX PRI template for SIP Trunking Cisco Call Manager, with authentication
Posted by , Last modified by Daniel Lizaola on 14 December 2017 04:44 PM

Configuration Description

This example includes a basic configuration for the SmartNode SN49XX/ISDN for use as a PRI gateway in combination with a Cisco Call Manager. The configuration contains variables in brackets <>. Please Replace the variables including the brackets. Unused lines or variables have to be commented out or deleted

This configuration note gives an overview about configuring the SN49XX/ISDN with Cisco Unified Communications Manager (CUCM).

Commande Sequence to copy, edit and paste

#----------------------------------------------------------------#
# Cisco Call Manager                                             #
#                                                                #
# This example includes a basic configuration for the SmartNode  #
# 49XX/ISDN in combination with a Cisco Call Manager with        #
# authentication and registration                                #
# This example can be used for other SmartNodes too. The only    #
# thing which needs to be adjusted, are the ports and interfaces #
# as far as required.                                            #
#                                                                #
# Author: Olivier Gaudet                                         #
# Patton-Inalp Neworks                                           #
# CH-3172 Niederwangen                                           #
# www.patton.com; support@patton.com                             #
#                                                                #
# Date: 17/11/2011                                               #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
clock local default-offset +00:00
dns-client server <Primary_DNS_Server_If_you_use_hostnames>
dns-client server <Secondary_DNS_Server_If_you_use_hostnames>
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4

system

  ic voice 0
 
system
  clock-source 1 e1t1 0 0
  clock-source 1 e1t1 0 1
  clock-source 1 e1t1 0 2
  clock-source 1 e1t1 0 3

profile ppp default

profile tone-set default

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

profile pstn default

profile sip default
  no autonomous-transitioning

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface LAN
    ipaddress <YOUR_IP_LAN_SIDE> <YOUR_NETWORK_MASK>
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 <YOUR_DEFAULT_GATEWAY> 0

context cs switch
  digit-collection timeout 3

  routing-table called-e164 RT_FROM_PSTN
    route default dest-interface IF_CISCO_CM

  routing-table called-e164 RT_FROM_CISCO
    route default dest-service HUNT_PSTN

  interface isdn IF_ISDN_00
    route call dest-table RT_FROM_PSTN
   
  interface isdn IF_ISDN_01
    route call dest-table RT_FROM_PSTN

  interface isdn IF_ISDN_02
    route call dest-table RT_FROM_PSTN
 
  interface isdn IF_ISDN_03
    route call dest-table RT_FROM_PSTN   
   
  interface sip IF_CISCO_CM
    bind context sip-gateway CISCO_GW
    route call dest-table RT_FROM_CISCO
    remote <YOUR_CALL_MANAGER_IP> 5060
   
  service hunt-group HUNT_PSTN
    timeout 3
    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_00
    route call 2 dest-interface IF_ISDN_01
    route call 3 dest-interface IF_ISDN_02
    route call 3 dest-interface IF_ISDN_03
   
context cs switch
  no shutdown
 
authentication-service AUTH_SVC
  username <Username_SIP> password <Password_SIP>

location-service LOCATION_SVC
  domain 1 <YOUR_CALL_MANAGER_IP>

  identity-group default

    authentication outbound
      authenticate 1 authentication-service AUTH_SVC username <Username_SIP>

    registration outbound
      register auto
     
context sip-gateway CISCO_GW

  interface IF_sip_interface_GW
    bind interface LAN context router port 5060

context sip-gateway CISCO_GW
  bind location-service LOCATION_SVC
  no shutdown

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

port e1t1 0 0
  port-type e1
  clock auto
  encapsulation q921

  q921
    permanent-layer2
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_00 switch

port e1t1 0 1
  no shutdown

port e1t1 0 1
  port-type e1
  clock auto
  encapsulation q921

  q921
    permanent-layer2
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_01 switch

port e1t1 0 1
  no shutdown

port e1t1 0 2
  port-type e1
  clock auto
  encapsulation q921

  q921
    permanent-layer2
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_02 switch

port e1t1 0 2
  no shutdown

port e1t1 0 3
  port-type e1
  clock auto
  encapsulation q921

  q921
    permanent-layer2
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_03 switch

port e1t1 0 3
  no shutdown

(8748 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).