FreeSWITCH用户配置

FreeSWITCH用户配置

概述:

FreeSWITCH默认设置了20个用户(1000~1019),如果需要配置更多的用户,只需要简单的执行以下三步

1)在conf/directory/default/中增加一个配置文件。

2)修改拨号计划(Dialplan)使其他用户可以呼叫新增加的用户。

3)重新加载生效。

举列:

添加一个用户Jack,分机号1234,。

cd conf/directory/default目录下,将1000.xml复制到 1234.xml中,打开1234.xml,将所有1000都改为1234,并把effec-tive_caller_id_name的 值改为Jack,然后存盘退出,命令如下:

<include>
  <user id="1234">
    <params>
      <param name="password" value="$${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="Jack"/>
      <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>

修改拨号方案

打开conf/dialplan/default.xml,修改拨号方案

 <condition field="destination_number" expression="^(10[01][0-9])$">

===>

 <condition field="destination_number" expression="^(10[01][0-9]|1234)$">

执行命令

freeswitch@asr> reloadxml
+OK [Success]

原文地址:https://www.cnblogs.com/damizhou/p/14127528.html