if (bridged) {
<snip>
/* Set UUID of the Agent channel */
sql = switch_mprintf("UPDATE agents SET uuid = '%q', last_bridge_start = '%" SWITCH_TIME_T_FMT "', calls_answered = calls_answered + 1, no_answer_count = 0"
" WHERE name = '%q' AND instance_id = '%q'",
agent_uuid, local_epoch_time_now(NULL),
h->agent_name, h->agent_system);
if (cc_agent_str2status(value) == CC_AGENT_STATUS_AVAILABLE) {
sql = switch_mprintf("UPDATE agents SET status = '%q', last_status_change = '%" SWITCH_TIME_T_FMT "', talk_time = 0, calls_answered = 0, no_answer_count = 0"
nope my agent has not logged out, the next answered calls refreshes the counterMaybe it goes back to zero because your agent has logged out? so the system does not have a need to keep the missed call count visible?
hi.... @hfoster can you elaborate where can i find this? Missed calls for the day is under extension summary or via a CDR query.You can see in the source code for the mod_callcenter that it resets that number on the agent returning back to the available state:
C:if (cc_agent_str2status(value) == CC_AGENT_STATUS_AVAILABLE) { sql = switch_mprintf("UPDATE agents SET status = '%q', last_status_change = '%" SWITCH_TIME_T_FMT "', talk_time = 0, calls_answered = 0, no_answer_count = 0"
It's not designed as a CDR statistic, it's to facilitate kicking a member of of the queue when they are idle for a set number of rings. Missed calls for the day is under extension summary or via a CDR query.
oh ok... this... I wanted something in the Call Center as it would be real time.Status -> Extension Summary
Or for an advanced query. Applications -> Call Detail Records, set status to Missed, direction to Inbound, Destination to the necessary extension and a Date Range you desire.