FXO To SIP TRUNK (with HUNT) Full configuration
Posted by , Last modified by Daniel Lizaola on 14 December 2017 04:51 PM

Configuration Description

The following will take calls in the FXO port, and send it out sip. It will also take calls in SIP and then hunt across all the FXO ports to find a open port This config also contains the USA tonesets, you can change that as needed for local tones. Finally, if you choose to use DNS names in the SIP interfaces or in the SIP gateway, you will need to specify a DNS server for any config to work.

 

Commande Sequence to copy, edit and paste

#----------------------------------------------------------------#
#                                                                #
# SN4114/JO/EUI                                                  #
# R5.X                                                           #
#     Config description above on Config library page            #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.41.20 port 123 version 4

system

  ic voice 0
    low-bitrate-codec g729

profile ppp default

profile call-progress-tone US_Dialtone
play 0 350 -13 440 -13

profile call-progress-tone US_Alertingtone
play 2000 440 -19 480 -19
pause 4000

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

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_Busytone
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

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface eth0
    ipaddress dhcp
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context cs switch
  digit-collection timeout 2

  interface sip IF_SIP
    bind context sip-gateway GW_SIP
    route call dest-service FXO-HUNT-OUT
# Set below the server IP address
    remote <remote IP>

  interface fxo IF_FXO_00
    route call dest-interface IF_SIP
    use profile tone-set US

  interface fxo IF_FXO_01
    route call dest-interface IF_SIP
    use profile tone-set US

  interface fxo IF_FXO_02
    route call dest-interface IF_SIP
    use profile tone-set US

  interface fxo IF_FXO_03
    route call dest-interface IF_SIP
    use profile tone-set US

  service hunt-group FXO-HUNT-OUT
    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
    drop-cause user-busy
    route call 1 dest-interface IF_FXO_00
    route call 2 dest-interface IF_FXO_01
    route call 3 dest-interface IF_FXO_02
    route call 4 dest-interface IF_FXO_03

context sip-gateway GW_SIP

  interface IF_GWSIP
    bind interface eth0 context router port 5060

context sip-gateway GW_SIP
  no shutdown

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

port fxo 0 0
  use profile fxo us
  caller-id format bell
  encapsulation cc-fxo
  bind interface IF_FXO_00 switch
  no shutdown

port fxo 0 1
  use profile fxo us
  caller-id format bell
  encapsulation cc-fxo
  bind interface IF_FXO_01 switch
  no shutdown

port fxo 0 2
  use profile fxo us
  caller-id format bell
  encapsulation cc-fxo
  bind interface IF_FXO_02 switch
  no shutdown

port fxo 0 3
  use profile fxo us
  caller-id format bell
  encapsulation cc-fxo
  bind interface IF_FXO_03 switch
  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).