freeswitch--学习笔记1

1.配置freeswitch接入码配置

配置文件路径/usr/local/freeswitch/conf/dialplan/default.xml,具体如下:

<extension name="speakdemo">
<condition field="destination_number" expression="^9999$">
<action application="lua" data="speakworknumber.lua"/>
</condition>
</extension>

2.流程文件存放路径

/usr/local/freeswitch/scripts

3.声音文件的存放路径(目前为全路径待定)。暂时放在:

/usr/local/freeswitch/sounds

4.添加技能,坐席,坐席与技能绑定配置等 

/usr/local/freeswitch/conf/autoload_configs/callcenter.conf.xml 

扫描二维码关注公众号,回复: 1984039 查看本文章


<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="1000@default" type="callback" contact="[leg_timeout=10]user/1000" status="Available" max-no-answer="3" wrap-up-time="10" reject-delay-time="10" busy-delay-time="60" />
<agent name="1009@default" type="callback" contact="[leg_timeout=10]user/1009" 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"/>
<tier agent="1009@default" queue="support@default" level="1" position="1"/>
</tiers>

猜你喜欢

转载自www.cnblogs.com/wsry-fxy/p/9282743.html