freeswitch callcenter
发布日期:2021-09-16 04:36:15 浏览次数:17 分类:技术文章

本文共 2380 字,大约阅读时间需要 7 分钟。

编译安装freeswitch时需要开启mod_callcenter、mod_fifo的编译,之后在安装完成之后在conf/autoload_configs/modules.conf.xml中去掉该模块相关行的注释。

配置方法,编辑conf/autoload_configs/callcenter.conf.xml

<configuration name="callcenter.conf" description="CallCenter">

  <settings>
    <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
    <!--<param name="dbname" value="/dev/shm/callcenter.db"/>-->
  </settings>
 
<queues>
    <queue name="support@default">
      <param name="strategy" value="longest-idle-agent"/>
      <param name="moh-sound" value="$${hold_music}"/>
      <!--<param name="record-template" value="$${recordings_dir}/${strftime(%Y-%m-%d-%H-%M-%S)}.${destination_number}.${caller_id_number}.${uuid}.wav"/>-->
      <param name="time-base-score" value="system"/>
      <param name="max-wait-time" value="0"/>
      <param name="max-wait-time-with-no-agent" value="0"/>
      <param name="max-wait-time-with-no-agent-time-reached" value="5"/>
      <param name="tier-rules-apply" value="false"/>
      <param name="tier-rule-wait-second" value="300"/>
      <param name="tier-rule-wait-multiply-level" value="true"/>
      <param name="tier-rule-no-agent-no-wait" value="false"/>
      <param name="discard-abandoned-after" value="60"/>
      <param name="abandoned-resume-allowed" value="false"/>
    </queue>
</queues>
 
  <agents>
       <agent name="1001@$${domain}" type="callback" contact="[call_timeout=10]user/1001@$${domain}" status="Available" max-no-answer="3" wrap-up-time="10" reject-delay-time="10" busy-delay-time="60" />
       <agent name="1002@$${domain}" type="callback" contact="[call_timeout=10]user/1002@$${domain}" status="Available" max-no-answer="3" wrap-up-time="10" reject-delay-time="10" busy-delay-time="60" />
  </agents>
 
  <tiers>
    <!-- If no level or position is provided, they will default to 1.  You should do this to keep db value on restart. -->
       <tier agent="1001@$${domain}" queue="support@default" level="1" position="1"/>
       <tier agent="1002@$${domain}" queue="support@default" level="1" position="1"/>
  </tiers>
</configuration> 

其中domain是freeswitch的服务器ip地址,这种方法是配置静态的坐席,就是在配置文件中写死的,如果不符合项目中的要求,我们也可以用命令的方式动态添加坐席和梯队,但是queue是要固定的在配置文件中写好的。

动态添加agent和梯队:

新增agent

更新agent状态

将agent添加到梯队

agent、queue、tier配置好之后,需要配置拨号计划,添加:

 <extension name="Callcenter Example">

       <condition field="destination_number" expression="^7000$">
           <action application="answer"/>
           <action application="callcenter" data="support@default"/>
       </condition>
    </extension>

这样登录注册一个分机之后,拨打7000,就进入了callcenter,如果有agent在梯队中,就会转呼到这个agent上面

转载地址:https://blog.csdn.net/wlg9527/article/details/106247831 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Freeswitch挂断原因汇总
下一篇:freeswitch 之ESL开发

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2024年04月08日 01时09分43秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

app运行提示Unable to Initialize Unity Engine 2019-04-27
spring boot 与 Ant Design of Vue 实现修改按钮(十七) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除按钮(十八) 2019-04-27
spring boot 与 Ant Design of Vue 实现角色管理布局以及角色的列表(十九) 2019-04-27
spring boot 与 Ant Design of Vue 实现新增角色(二十) 2019-04-27
spring boot 与 Ant Design of Vue 实现修改角色(二十一) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除角色(补二十一) 2019-04-27
spring boot 与 Ant Design of Vue 实现组织管理布局的实现(二十二) 2019-04-27
spring boot 与 Ant Design of Vue 实现左侧组织树(二十三) 2019-04-27
spring boot 与 Ant Design of Vue 实现新增组织(二十四) 2019-04-27
spring boot 与 Ant Design of Vue 实现修改组织(二十五) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除组织(二十六) 2019-04-27
spring boot 与 Ant Design of Vue 实现获取用户列表(二十七) 2019-04-27
spring boot 与 Ant Design of Vue 实现修改用户(二十九) 2019-04-27
spring boot 与 Ant Design of Vue 实现删除用户(三十) 2019-04-27
spring boot 与 Ant Design of Vue 鉴权体系登录的实现(三十一) 2019-04-27
spring boot 与 Ant Design of Vue 鉴权体系获取用户信息的实现(三十二) 2019-04-27
Druid连接池实现自定义场景的多数据库的连接 2019-04-27
CentOs7命令行(静默)的方式安装oracle数据库 2019-04-27
基于VMware安装CentOs7的镜像 2019-04-27