FreeSWITCH
网络电话基础
线路对接方式
FreeSWITCH安装使用
FreeSWITCH配置
FreeSWITCH用户
FreeSWITCH问题
通道变量参数
IMS对接-JS
SIP协议
SIP流程
配置呼出呼入(IMS)
配置呼出呼入(内部用户)
测试工具(sipexer)
拨号规则
FXO与FXS
压测工具(sipp)
Zoiper软电话
FreeSwitch问题
本文档使用MrDoc发布
返回首页
-
+
配置呼出呼入(内部用户)
2022年8月13日 08:04
admin
#配置用户文件 ####/opt/freeswitch/conf/directory/default/目录 vim 1234.xml #内容: <include> <user id="1234"> <params> <param name="password" value="$${default_password}"/> <!--此处密码为conf/vars.xml中的default_password--> <param name="vm-password" value="1234"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1234"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="bao"/> <!--此处为用户名称--> <variable name="effective_caller_id_number" value="1234"/> <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> --- ##拨号计划配置 ####freeswitch/conf/dialplan/default.xml添加 <extension name="extension-1234"> <condition field="destination_number" expression="^1234$"> <action application="set" data="dialed_extension=$1"/> <action application="export" data="sip_auto_answer=true"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> </condition> </extension> --- ##测试验证 --- ####查看用户注册情况 sofia status profile internal reg --- ####进入freeswitch前台,模拟拨打 originate user/1234 &echo ####看用户1234是否收到电话,而且能听到回声 --- ####使用用户1234拨打另外的内部用户 originate user/1234 1000 ####看用户1000是否收到电话,而且两方通话正常
分享到: