<div dir="ltr">yeah this counts needs only for max_no_answer behavior </div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-08 23:52 GMT+02:00 Jai Rangi <span dir="ltr">&lt;<a href="mailto:jprangi@gmail.com" target="_blank">jprangi@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br>We are using call center module. We noticed one thing, if the agent change status to not available or on break and  then after a while come back to change the status to available. His stats (num of calls answered or talk_time) reset to 0. <br><br></div>Example,<br><br>callcenter_config queue list agents sales@domain<br>name|system|uuid|type|contact|<wbr>status|state|max_no_answer|<wbr>wrap_up_time|reject_delay_<wbr>time|busy_delay_time|no_<wbr>answer_delay_time|last_bridge_<wbr>start|last_bridge_end|last_<wbr>offered_call|last_status_<wbr>change|no_answer_count|calls_<wbr>answered|talk_time|ready_time<br>101@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/130@domain|Available|<wbr>Waiting|0|0|0|0|0|0|0|<wbr>1489009000|1488960061|1|0|0|0<br>102@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/111@jdomain|Available|<wbr>Waiting|0|0|60|60|0|<wbr>1489009008|1489009016|<wbr>1489009000|1488960061<b>|0|1|8|0</b><br><div>   <br></div><div>Here I see 102, had one call for 8 seconds, <br></div><div>Change the agent status to break. <br>session:execute(&quot;set&quot;, &quot;res=${callcenter_config(agent set status ${caller_id_number}@${domain_<wbr>name} &#39;On Break&#39;)}&quot;)<br><br>101@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/101@domain|Available|<wbr>Waiting|0|0|0|0|0|0|0|<wbr>1489009000|1488960061|1|0|0|0<br>102@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/101@domain|On Break|Waiting|0|0|60|60|0|<wbr>1489009008|1489009016|<wbr>1489009000|1489009163|<b>0|1|8|0</b><br></div><div><br></div><div>Change the agent state to Available On Demand, stats are still there. <br>session:execute(&quot;set&quot;, &quot;res=${callcenter_config(agent set status ${caller_id_number}@${domain_<wbr>name} &#39;Available (On Demand)&#39;)}&quot;) <br><br>101@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/101@domain|Available|<wbr>Waiting|0|0|0|0|0|0|0|<wbr>1489009000|1488960061|1|0|0|0<br>102@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/102@domain|Available (On Demand)|Waiting|0|0|60|60|0|<wbr>1489009008|1489009016|<wbr>1489009000|1489009252|<b>0|1|8|0</b><br><br></div><div>Now changing to Available and stats are reset ed to 0,0, <br>session:execute(&quot;set&quot;, &quot;res=${callcenter_config(agent set status ${caller_id_number}@${domain_<wbr>name} &#39;Available&#39;)}&quot;)<br><br>101@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/101@domain|Available|<wbr>Waiting|0|0|0|0|0|0|0|<wbr>1489009000|1488960061|1|0|0|0<br>102@domain|single_box||<wbr>callback|[call_timeout=30]<wbr>user/102@domain|Available|<wbr>Waiting|0|0|60|60|0|<wbr>1489009008|1489009016|<wbr>1489009000|1489009415|0|0|0|0<br><br></div><div>Is there way to control this behavior. So basically we can to control the call stats. <br><br></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>