FreeSwitch那些坑之CallCenter
Posted cash
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FreeSwitch那些坑之CallCenter相关的知识,希望对你有一定的参考价值。
安装环境:CenterOS 7.8
FreeSwitch版本:1.10.12
编译安装完后,打开了CallCenter模块,无论怎么样队列中的话机都不响。。。
显示队列中有可用座席,就是不转。
这是默认示例:
<agents> <!--<agent name="1000@default" type="callback" contact="[leg_timeout=10]user/1000@default" 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="1000@default" queue="support@default" level="1" position="1"/> --> </tiers>
错误提示:
You must define a domain called in your directory and add a user with the id="" attributeand you must configure your device to use the proper domain in its authentication credentials.
2020-06-02 18:35:27.566659 [DEBUG] sofia.c:10349 verifying acl "domains" for ip/port 192.168.0.7:0.
2020-06-02 18:35:27.566659 [DEBUG] switch_core_state_machine.c:604 (sofia/internal/18612345678@192.168.0.86:5060) State NEW
2020-06-02 18:35:27.566659 [DEBUG] sofia.c:2434 detaching session 743ea424-7ba3-4150-8e9f-96a20d7151c9
2020-06-02 18:35:27.607167 [DEBUG] sofia.c:2544 Re-attaching to session 743ea424-7ba3-4150-8e9f-96a20d7151c9
2020-06-02 18:35:27.607167 [DEBUG] sofia.c:10255 sofia/internal/18612345678@192.168.0.86:5060 receiving invite from 192.168.0.7:5060 version: 1.10.2 -release 64bit
2020-06-02 18:35:27.607167 [DEBUG] sofia.c:10349 verifying acl "domains" for ip/port 192.168.0.7:0.
2020-06-02 18:35:27.607167 [WARNING] sofia_reg.c:2929 Can‘t find user [@192.168.0.86] from 192.168.0.7
You must define a domain called ‘192.168.0.86‘ in your directory and add a user with the id="" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2020-06-02 18:35:27.607167 [NOTICE] sofia.c:2432 Hangup sofia/internal/18612345678@192.168.0.86:5060 [CS_NEW] [CALL_REJECTED]
2020-06-02 18:35:27.626754 [DEBUG] sofia.c:1548 Channel is already hungup.
根据错误提示,更改配置文件为如下:
<agents> <agent name="1000@$${domain}" type="callback" contact="[leg_timeout=10]user/1000@$${domain}" status="Available" max-no-answer="300" wrap-up-time="10" reject-delay-time="10" busy-delay-time="6" /> <agent name="1000@$${domain}" type="callback" contact="[leg_timeout=10]user/1000@$${domain}" status="Available" max-no-answer="300" wrap-up-time="10" reject-delay-time="10" busy-delay-time="6" /> <agent name="1001@$${domain}" type="callback" contact="[leg_timeout=10]user/1001@$${domain}" status="Available" max-no-answer="300" wrap-up-time="10" reject-delay-time="10" busy-delay-time="6" /> <agent name="1002@$${domain}" type="callback" contact="[leg_timeout=10]user/1002@$${domain}" status="Available" max-no-answer="300" wrap-up-time="10" reject-delay-time="10" busy-delay-time="6" /> <agent name="1003@$${domain}" type="callback" contact="[leg_timeout=10]user/1003@$${domain}" status="Available" max-no-answer="300" wrap-up-time="10" reject-delay-time="10" busy-delay-time="6" /> <agent name="1004@$${domain}" type="callback" contact="[leg_timeout=10]user/1004@$${domain}" status="Available" max-no-answer="300" wrap-up-time="10" reject-delay-time="10" busy-delay-time="6" /> </agents> <tiers> <!-- If no level or position is provided, they will $${domain} to 1. You should do this to keep db value on restart. --> <tier agent="1000@$${domain}" queue="support@default" level="1" position="1"/> <tier agent="1001@$${domain}" queue="support@default" level="1" position="1"/> <tier agent="1002@$${domain}" queue="support@default" level="1" position="1"/> <tier agent="1003@$${domain}" queue="support@default" level="1" position="1"/> <tier agent="1004@$${domain}" queue="support@default" level="1" position="1"/> </tiers>
这个时候,只要有1000-1004里面的分机注册进来,就能够正常振铃了。
以上是关于FreeSwitch那些坑之CallCenter的主要内容,如果未能解决你的问题,请参考以下文章