Example Configuration
The following is a list of phone providers that have been successfully tested with the FreeSWITCH software.
Please note that you should stick with adding these phone providers under the {FreeSWITCH installation}/conf/directory/default location. This means creating an XML file per specified phone provider under the conf/directory/default/ directory. Alternatively, you can also add the provider of your choice under the {FreeSWITCH installation}/conf/sip_profiles directory. The recommendation is to stick with using the "conf/directory/default" location. When in doubt copy the examples found in the source code under freeswitch/conf/directory/default/. The sample file is named "provider.com.xml". NOTE: the file is named "example.com.xml" on newer releases of FreeSWITCH.
Provider Configuration Pages
When adding a provider to this list within the wiki please observe these guidelines:
-
include a generic configuration
-
no marketing information
-
keep them alphabetically listed
A through E |
F through H |
I through P |
Q through Z |
|
|
|
|
Note: If you are looking for an example with different destinations for the registration proxy and outbound proxy, see the example configuration for Peopleline.
Gateway Overview
As an example we will add a trunk to vitelity.com. PLEASE NOTE THAT THIS IS AN EXAMPLE. REPLACE WITH YOUR OWN CONFIGS FOR YOUR PROVIDER (see table below).
Vitelity.com uses different proxies for inbound and outbound calls, so we need to add two gateways (they can be in the same file). One for outbound and one for inbound. Many providers (Vitelity included) allow you to make outbound calls via the registration proxy for inbound calls and so you really only *need* to setup one gateway. Before we start that we'll need to know a couple different pieces of info:
- username
- password (also called secret)
- outbound server
- inbound server
sudo vim /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include>
<gateway name="vitelity-outbound">
<param name="username" value="****yourusername"/>
<param name="password" value="****yourpassword"/>
<param name="realm" value="vitel-outbound"/>
<param name="proxy" value="****outboundurl"/>
<param name="register" value="false"/>
</gateway>
<gateway name="vitelity-inbound">
<param name="username" value="****yourusername"/>
<param name="password" value="****yourpassword"/>
<param name="realm" value="vitel-inbound"/>
<param name="extension" value="1000"/>
<param name="proxy" value="****inboundurl"/>
<param name="register-proxy" value="****inboundurl"/>
</gateway>
</include>
Keeping Connections Alive
You can use the following parameter in your configuration to force FreeSWITCH to re-register with your provider at certain intervals. This may be helpful for NAT issues by keeping the connection state open through your internal firewall.
<param name="expire-seconds" value="60"/>
You can also set FreeSWITCH to ping your gateway at intervals.
<param name="ping" value="30" />
See Also
<!--
NewPP limit report
Preprocessor node count: 33/1000000
Post-expand include size: 854/2097152 bytes
Template argument size: 699/2097152 bytes
Expensive parser function count: 0/100
--><!-- Saved in parser cache with key wiki:pcache:idhash:1952-0!1!0!!en!2!edit=0 and timestamp 20101127015348 -->
分享到:
相关推荐
SIP Call Flow Examples,SIP Call Flow Examples
type-provider-examples, Scala的基于宏的类型提供程序( 示例) Scala 类型提供程序示例 这个库包含 type Burmako和 Travis Brown在 2014标量会议页面中讨论的类型提供程序实例。 这个对话不是记录,但是我们的幻灯片...
No module named ‘tensorflow.examples.tutorials解决方法,没有examples的解决资源
com.sun.jna.examples
FPGA Prototyping Using Verilog Examples will provide you with a hands-on introduction to Verilog synthesis and FPGA programming through a “learn by doing” approach. By following the clear, easy-to-...
从maven中得到的jna.jar里面没有examples的类(坑了我)。所以找到了一个examples包下面不是空的jna.jar.
需要学习dl4j,无从下手,就想着先看看官网的examples,于是,下载了examples程序,结果无法运行,总是出错,如下: 查看一周的错误,也没有成功,马上就要放弃了,结果今天在论坛一大牛指导下,终于成功跑起,下面...
NULL 博文链接:https://thinktothings.iteye.com/blog/854588
Probability: Theory and Examples,by Durrent,概率论专业经典教材。答案很少见,特意贡献~~~ 教材电子版已更新至第四版,可以在Durrent‘s homepage下载~!
ExtAspNet.Examples ExtAspNet.Examples ExtAspNet.Examples ExtAspNet.Examples ExtAspNet.Examples ExtAspNet.Examples ExtAspNet.Examples
unix 例子 unix的一些examples
ExtJS examples 例子 示例
官方ffmpeg 3.02 下的 examples代码
Kinect v2 Examples with MS-SDK 2.21
Gossip of Algorithm Examples
GEF-examples-3.0.1.zipGEF-examples-3.0.1.zipGEF-examples-3.0.1.zip
hadoop-mapreduce-examples-2.7.1.jar
spring-data-jpa-examples
ECharts官方提供了一个离线版文档以及示例 [Examples of ECharts] 从github下得 echarts-examples-gh-pages.zip 及 echarts3-docs-master.zip echarts-doc-offline-gh-pages.zip