| 知乎专栏 |
freeswitch提供了测试号码
号码 说明 9664 保持音乐 9196 echo,回音测试 9195 echo,回音测试,延迟5秒 9197 milliwatte extension,铃音生成 9198 TGML 铃音生成示例 5000 示例IVR4000听取语音信箱 33xx 电话会议,48K(其中xx可为00-99,下同) 32xx 电话会议,32K 31xx 电话会议,16K 30xx 电话会议,8K 2000-2002 呼叫组 1000-1019 默认分机号
1000-1019 测试账号位置
[root@netkiller ~]# ls /etc/freeswitch/directory/default/ 1000.xml 1002.xml 1004.xml 1006.xml 1008.xml 1010.xml 1012.xml 1014.xml 1016.xml 1018.xml brian.xml example.com.xml 1001.xml 1003.xml 1005.xml 1007.xml 1009.xml 1011.xml 1013.xml 1015.xml 1017.xml 1019.xml default.xml skinny-example.xml
用户配置文件
[root@netkiller ~]# cat /etc/freeswitch/directory/default/1000.xml
<include>
<user id="1000">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="1000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1000"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1000"/>
<variable name="effective_caller_id_number" value="1000"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>
账号密码在 /etc/freeswitch/vars.xml 配置文件中
<X-PRE-PROCESS cmd="set" data="default_password=eFyS2wcZo1zKZ3KG"/>
用下面方法查看密码
[root@netkiller ~]# cat /etc/freeswitch/vars.xml | grep default_password
YOU SHOULD CHANGE THIS default_password value if you don't want to be subject to any
<X-PRE-PROCESS cmd="set" data="default_password=eFo1zKZyS2wcZ3KG"/>