[Freeswitch-users] mod_callcenter doesn't send calls from a queue to an agent

Yungwei Chen yungwei at resolvity.com
Fri Sep 30 18:21:21 MSD 2011


Hi,

I am experimenting with mod_callcenter. And I notice that mod_callcenter doesn't send calls from a queue to an agent.
In my test, agent 1005 is registered with FS using phoner-lite.

When freeswitch is restarted, "callcenter_config queue list" returns the following:
name|strategy|moh_sound|time_base_score|tier_rules_apply|tier_rule_wait_second|tier_rule_wait_multiply_level|tier_rule_no_agent_no_wait|discard_abandoned_after|abandoned_resume_allowed|max_wait_time|max_wait_time_with_no_agent|max_wait_time_with_no_agent_time_reached|record_template
support|longest-idle-agent|local_stream://moh|system|false|300|true|false|60|false|0|0|5|
+OK

and "callcenter_config agent get status 1005" returns the following:
Available
2011-09-30 09:09:14.143579 [DEBUG] mod_callcenter.c:886 Get Info Agent 1005 status = Available

Now when I dial cc_queue from another sip client, I can hear MOH fine, but this call is not passed to agent 1005.
The following shows up in the log.
2011-09-30 09:09:23.442165 [DEBUG] mod_callcenter.c:1043 Updated Agent 1005 set state = Receiving
2011-09-30 09:09:23.442165 [DEBUG] mod_callcenter.c:1043 Updated Agent 1005 set status = Logged Out
2011-09-30 09:09:23.442165 [DEBUG] mod_callcenter.c:1043 Updated Agent 1005 set uuid =
2011-09-30 09:09:23.442165 [DEBUG] mod_callcenter.c:1654 Agent 1005 Origination Canceled : NONE
2011-09-30 09:09:23.442165 [DEBUG] mod_callcenter.c:1043 Updated Agent 1005 set state = Waiting
and "callcenter_config agent get status 1005" now returns the following:
Logged Out
2011-09-30 09:12:11.092643 [DEBUG] mod_callcenter.c:886 Get Info Agent 1005 status = Logged Out

What am I missing here? Thanks.

Here's the content of callcenter.conf.xml, in which I define a queue, an agent, and assign the agent to the queue.
<configuration name="callcenter.conf" description="CallCenter">
  <settings></settings>

  <queues>
    <queue name="support">
      <param name="strategy" value="longest-idle-agent"/>
      <param name="moh-sound" value="$${hold_music}"/>
      <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="1005" type="uuid-standby" contact="[call_timeout=10]user/1005 at 192.168.216.18" status="Available" max-no-answer="3" wrap-up-time="10" reject-delay-time="10" busy-delay-time="60" />
  </agents>
  <tiers>
    <tier agent="1005" queue="support" level="1" position="1"/>
  </tiers>
</configuration>

Here's how I send a call to the queue. This works fine.
  <extension name="sending-calls-to-queue">
      <condition field="destination_number" expression="^cc_queue$">
        <action application="answer" />
        <action application="callcenter" data="support"/>
      </condition>
  </extension>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list