FreeSBC Configuration Files:SIP Trunking
From TBwiki
(Difference between revisions)
(Updated user/password) |
(We also need to change the IP interface names, otherwise the interfaces will be deleted in the configuration as soon as it is activated!) |
||
Line 25: | Line 25: | ||
* Open the json file with a text editor | * Open the json file with a text editor | ||
* Replace following parameters in the file | * Replace following parameters in the file | ||
− | ** tbsbc with the hostname that you gave on installation stage | + | ** [tbsbc] with the hostname that you gave on installation stage |
− | ** WAN_00_IP and LAN_00_IP with IP addresses | + | ** [WAN_00_IP] and [LAN_00_IP] with IP addresses |
− | ** WAN_00_Subnet and LAN_00_Subnet with IP subnets | + | ** [WAN_00_Subnet] and [LAN_00_Subnet] with IP subnets |
− | ** WAN_00_Gateway and LAN_00_Gateway with Gateway IP addresses | + | ** [WAN_00_Gateway] and [LAN_00_Gateway] with Gateway IP addresses |
− | ** ITSP_Proxy_IP with SIP Trunk Service Provider IP address (2 addresses in the file) | + | ** [WAN_00] and [LAN_00] with currently configured IP interfaces (for example voip0 and voip1) |
− | ** Local_Proxy_IP with Local Proxy IP address (2 addresses in the file) | + | ** [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 | *If you downloaded Remote Office/Workers Sample Configuration with NAT file please replace the following parameter too | ||
− | **NAT_IP_Address with your External IP | + | **[NAT_IP_Address] with your External IP (Public IP of the NAT device) |
* Save the file | * Save the file | ||
Revision as of 09:50, 9 May 2019
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
Typical SIP Trunking Sample with NAT
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"