First install the Mod_callcenter module using the #make Mod_callcenter-install and then load the module to the FreeSWITCH console
freeswitch> load Mod_callcenter in Conf/autoload_configs/modules.conf.xml to remove comments from the related lines in the module.
Here are the configuration methods:
Modify in 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= "[email protected]" >
<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= "/>"
<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= "/>"
<param name= "abandoned-resume-allowed" value= "false"/>
</queue>
</queues>
<agents>
<agent name= "[Email Protected]$${domain}" type= "callback" contact= "[Call_timeout=10]user/[email protected]$${ Domain} "status=" Available "max-no-answer=" 3 "wrap-up-time=" ten "reject-delay-time=" Busy-delay-time= "/>"
<agent name= "[Email Protected]$${domain}" type= "callback" contact= "[Call_timeout=10]user/[email protected]$${ Domain} "status=" Available "max-no-answer=" 3 "wrap-up-time=" ten "reject-delay-time=" Busy-delay-time= "/>"
</agents>
<tiers>
<!--If No level or position is provided, they would default to 1. You should the Keep DB value on restart. -
<tier agent= "[Email Protected]$${domain}" queue= "Supp[email protected]" level= "1" position= "1"/>
<tier agent= "[Email Protected]$${domain}" queue= "[email protected]" level= "1" position= "1"/>
</tiers>
</configuration>
Image:
Then configure the dial plan:
<extension name= "Callcenter Example" >
<condition field= "Destination_number" expression= "^0$" >
<action application= "Answer"/>
<action application= "Callcenter" data= "[email protected]"/>
</condition>
</extension>
Configuration of the call center static agent