FreeSBC Configuration Files for SIP Trunking Scenario

From TBwiki
Revision as of 09:50, 9 May 2019 by Luc Morissette (Talk | contribs)
Jump to: navigation, search


Introduction

FreeSBC Configuration Files for SIP Trunking Scenario Tutorial provides you with a scenario-based approach to configuring of FreeSbc systems, using sample configuration files. Complete general installation configuration steps, before you begin configuring your specific application.

Prerequisites

FreeSBC devices must be installed as described in their respective installation guides.

Typical SIP Trunking Sample without NAT

SIP-Trunk-sample-config.png

Typical SIP Trunking Sample with NAT

SIP-Trunk-sample-config-NAT.png

Modifying configuration file

You can download sample configuration for SIP Trunking scenario from below;

SIP Trunking Sample Configuration without NAT
SIP Trunking Sample Configuration with NAT

  • Open the json file with a text editor
  • Replace following parameters in the file
    • [tbsbc] with the hostname that you gave on installation stage
    • [WAN_00_IP] and [LAN_00_IP] with IP addresses
    • [WAN_00_Subnet] and [LAN_00_Subnet] with IP subnets
    • [WAN_00_Gateway] and [LAN_00_Gateway] with Gateway IP addresses
    • [WAN_00] and [LAN_00] with currently configured IP interfaces (for example voip0 and voip1)
    • [ITSP_Proxy_IP] with SIP Trunk Service Provider IP address (2 addresses in the file)
    • [Local_Proxy_IP] with Local Proxy IP address (2 addresses in the file)
  • If you downloaded Remote Office/Workers Sample Configuration with NAT file please replace the following parameter too
    • [NAT_IP_Address] with your External IP (Public IP of the NAT device)
  • Save the file

Uploading and activating the sample configuration

  • You need to use an SFTP client to upload the configuration file to FreeSBC
  • After upload the file use following commands from CLI
  • For SIP Trunking Sample Configuration without NAT
 tbconfig -u root -p root -C /configurations SIP_Trunk_main_config.json name="main_config"
 tbconfig -u root -p root -U /systems/system_1/target_configuration="main_config"
  • For SIP Trunking Sample Configuration with NAT
 tbconfig -u root -p root -C /configurations SIP_Trunk_main_config_nat.json name="main_config" -u root -p root
 tbconfig -u root -p root -U /systems/system_1/target_configuration="main_config"
Personal tools