<div dir="ltr"><div><div>If this use useful to any one else. <br><br></div>Made a change in <br>mod_callcenter.c  <br>Changed Line umber 914<br><br>>From <br>sql = switch_mprintf(&quot;UPDATE agents SET status = &#39;%q&#39;, last_status_change = &#39;%&quot; SWITCH_TIME_T_FMT &quot;&#39;, talk_time = 0, calls_answered = 0, no_answer_count = 0&quot;<br><br>To <br>sql = switch_mprintf(&quot;UPDATE agents SET status = &#39;%q&#39;, last_status_change = &#39;%&quot; SWITCH_TIME_T_FMT &quot;&#39;&quot;<br><br></div>Recompile the module and not, Changing Status to Available does not reset everything. <br><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 21, 2017 at 6:10 PM, Jai Rangi <span dir="ltr">&lt;<a href="mailto:jprangi@gmail.com" target="_blank">jprangi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Any one? <br></div>Is this a bug? I can open a bug report, that its resetting  &quot;calls_answered|talk_time&quot;  only when the agent change the status to Available. <br></div><div><br>Or is there a solid argument that this is how it should be. <br><br></div><div>Thank you,<br><br></div>-Jai <br><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 1:47 AM, Alexandr Popov <span dir="ltr">&lt;<a href="mailto:alexandr.popov@iqoption.com" target="_blank">alexandr.popov@iqoption.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">yeah this counts needs only for max_no_answer behavior </div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3015531102424958805h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3015531102424958805h5"><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|wra<wbr>p_up_time|reject_delay_time|bu<wbr>sy_delay_time|no_answer_delay_<wbr>time|last_bridge_start|last_<wbr>bridge_end|last_offered_call|<wbr>last_status_change|no_answer_<wbr>count|calls_answered|talk_<wbr>time|ready_time<br>101@domain|single_box||callbac<wbr>k|[call_timeout=30]user/130@do<wbr>main|Available|Waiting|0|0|0|<wbr>0|0|0|0|1489009000|1488960061|<wbr>1|0|0|0<br>102@domain|single_box||callbac<wbr>k|[call_timeout=30]user/111@jd<wbr>omain|Available|Waiting|0|0|60<wbr>|60|0|1489009008|1489009016|14<wbr>89009000|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_n<wbr>ame} &#39;On Break&#39;)}&quot;)<br><br>101@domain|single_box||callbac<wbr>k|[call_timeout=30]user/101@do<wbr>main|Available|Waiting|0|0|0|<wbr>0|0|0|0|1489009000|1488960061|<wbr>1|0|0|0<br>102@domain|single_box||callbac<wbr>k|[call_timeout=30]user/101@do<wbr>main|On Break|Waiting|0|0|60|60|0|1489<wbr>009008|1489009016|1489009000|1<wbr>489009163|<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_n<wbr>ame} &#39;Available (On Demand)&#39;)}&quot;) <br><br>101@domain|single_box||callbac<wbr>k|[call_timeout=30]user/101@do<wbr>main|Available|Waiting|0|0|0|<wbr>0|0|0|0|1489009000|1488960061|<wbr>1|0|0|0<br>102@domain|single_box||callbac<wbr>k|[call_timeout=30]user/102@do<wbr>main|Available (On Demand)|Waiting|0|0|60|60|0|14<wbr>89009008|1489009016|1489009000<wbr>|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_n<wbr>ame} &#39;Available&#39;)}&quot;)<br><br>101@domain|single_box||callbac<wbr>k|[call_timeout=30]user/101@do<wbr>main|Available|Waiting|0|0|0|<wbr>0|0|0|0|1489009000|1488960061|<wbr>1|0|0|0<br>102@domain|single_box||callbac<wbr>k|[call_timeout=30]user/102@do<wbr>main|Available|Waiting|0|0|60|<wbr>60|0|1489009008|1489009016|148<wbr>9009000|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></div></div>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>