IP Technology Distribution
972.831.1600

Configure Patton FXS for Broadvox SIP trunk - Application 1

Application 1: Authentication, single DID and multiple ports in hunt group

This document applies to Patton FXS gateways configured to hand-off SIP trunks to legacy analog PBXs.

In this scenario we have a two port FXS SN4112 unit in which all the incoming calls from Broadvox SIP trunk will be routed to the first available FXS port. If you want to configure a 4 port Patton gateway just uncomment the definitions for FXS ports 3 and 4. Following the same logic you can easily create the configuration file for an Patton with any number of FXS ports.

You need to have a Registration type of account from Broadvox , the BTN/telephone number, the password and server address as provided by Broadvox:

PHONE_NUMBER
PASSWORD
PROVIDER_SERVER_IP_ADDRESS_OR_FQDN

Copy the configuration below to a text file, modify highlighted red text, and import to the Patton unit using the Web GUI.

#file start#
#----------------------------------------------------------------#                                            #
# configuration file                                             #
# Modify before loading                                         #
#----------------------------------------------------------------#
cli version 3.20
dns-client server DNS_SERVER_Address   (i.e. 8.8.8.8)
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4

system

  ic voice 0
    low-bitrate-codec g729

profile napt NAPT

profile ppp default

profile call-progress-tone US_Dialtone
  play 1 1000 350 -13 440 -13

profile call-progress-tone US_Alertingtone
  play 1 1000 440 -19 480 -19
  pause 2 3000

profile call-progress-tone US_Busytone
  play 1 500 480 -24 620 -24
  pause 2 500

profile call-progress-tone US_Releasetone
  play 1 250 480 -24 620 -24
  pause 2 250

profile tone-set default
profile tone-set US
  map call-progress-tone dial-tone US_Dialtone
  map call-progress-tone ringback-tone US_Alertingtone
  map call-progress-tone busy-tone US_Busytone
  map call-progress-tone release-tone US_Releasetone
  map call-progress-tone congestion-tone US_Busytone

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  codec 3 g729 rx-length 30 tx-length 30
  fax transmission 1 relay t38-udp

profile pstn default

profile ringing-cadence default
  play 1 1000
  pause 2 4000

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_LAN
    ipaddress IP_ADDRESS SUBNET_MASK (i.e. 192.168.0.50 255.255.255.0 )
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 DEFAULT_GATEWAY (i.e 192.168.0.254) 0
# notice the "0" at the end of previous line, it is required
context cs switch
  digit-collection timeout 3
  address-completion timeout 3

  routing-table called-e164 IN
    route .T dest-service hunt_in

  routing-table called-e164 FXS_to_SIP
    route .T dest-interface IF_SIP_0

  interface sip IF_SIP_0
    bind context sip-gateway GW_SIP_0
    route call dest-table IN
    remote PROVIDER_SERVER_IP_ADDRESS_OR_FQDN  (i.e. 208.93.224.229)
    early-connect
    early-disconnect

  interface fxs IF_FXS_0
    route call dest-table FXS_to_SIP
    subscriber-number PHONE_NUMBER (i.e 4795555555 )
    use profile tone-set US

  interface fxs IF_FXS_1
    route call dest-table FXS_to_SIP
    subscriber-number PHONE_NUMBER (i.e 4795555555 )
    use profile tone-set US
#if your gateways has more ports add them here

#interface fxs IF_FXS_2
#    route call dest-table FXS_to_SIP
#    subscriber-number PHONE_NUMBER (i.e 4795555555)
#    use profile tone-set US

#interface fxs IF_FXS_3
#    route call dest-table FXS_to_SIP
#    subscriber-number PHONE_NUMBER (i.e 4795555555 )
#    use profile tone-set US

  service hunt-group hunt_in
    cyclic
    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_FXS_0
    route call 2 dest-interface IF_FXS_1
#if your gateways has more ports add them here
#   route call 3 dest-interface IF_FXS_2
#   route call 4 dest-interface IF_FXS_3
  context cs switch
  no shutdown

authentication-service SOFTSWITCH_EXT
  username PHONE_NUMBER (i.e 4795554520 ) password PASSWORD ( i.e 2kz4Ed5Ea1)

location-service LS_SN
  domain 1 PROVIDER_SERVER_IP_ADDRESS_OR_FQDN  (i.e. 208.93.224.229)
  identity-group IDENT-GROUP

    authentication outbound
      authenticate 1 authentication-service SOFTSWITCH_EXT

    registration outbound
      registrar PROVIDER_SERVER_IP_ADDRESS_OR_FQDN  (i.e. 208.93.224.229)
      register auto

  identity PHONE_NUMBER (i.e 4795554520 ) inherits IDENT-GROUP

    registration outbound

context sip-gateway GW_SIP_0

  interface LAN
    bind interface IF_IP_LAN context router port 5060

context sip-gateway GW_SIP_0
  bind location-service LS_SN
  no shutdown

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

port fxs 0 0
  use profile fxs us
  encapsulation cc-fxs
  bind interface IF_FXS_0 switch
  no shutdown

port fxs 0 1
  use profile fxs us
  encapsulation cc-fxs
  bind interface IF_FXS_1 switch
  no shutdown

#if your gateways has more ports add them here
#
#port fxs 0 2
#  use profile fxs us
#  encapsulation cc-fxs
#  bind interface IF_FXS_1 switch
#  no shutdown

#port fxs 0 3
#  use profile fxs us
#  encapsulation cc-fxs
#  bind interface IF_FXS_1 switch
#  no shutdown

#file end#

If you have problems or have a more custom scenario please contact ABP Technology support.

Henry
Share Now Share on Facebook Share on LinkedIn Share on Twitter Share on google+