FreeSWITCH SIP Trunk Creation
From TBwiki
Revision as of 03:23, 13 April 2020 by Serdar Civici (Talk | contribs)
Introduction
This document provides instructions on how to add a SIP Trunk to FreeSWITCH Server to work with the ProSBC. Please visit the following link for more details about Creating a SIP Trunk in FreeSWITCH Server
FreeSWITCH SIP Trunk Configuration
To configure FreeSWITCH server to work with ProSBC SIP trunk the following changes are required:
1. We will use prsbc.telcobridges.com FQDN as a ProSBC server. You can set anything you want. Or you can use ProSBC IP address. Add /etc/freeswitch/sip_profiles/external/prosbc.xml file:
<include> <gateway name="prosbc"> <!-- To send calls to prosbc: --> <param name="proxy" value="prosbc.telcobridges.com"/> <!-- Registration is not required for FreeSWITCH on Static IP address --> <param name="register" value="false" /> <param name="username" value=""/> <param name="password" value=""/> </gateway> </include>
2. To send outbound calls to ProSBC SIP Trunk create /etc/freeswitch/dialplan/default/prosbc.xml file:
<include> <extension name="prosbc_outbound"> <!-- The following line detects outbound calls with a 9 as a dropped prefix --> <!-- The line after sends the 8-15 digit numbers to the ProSBC gateway --> <condition field="destination_number" expression="^9(\d{8,15})$"> <action application="bridge" data="sofia/gateway/prosbc/$1"/> </condition> </extension> </include>