<div dir="ltr">Hi Users,<br><div>I have a switch where people are calling and they press 1 to get transferred to client's DID.</div><div>I need to have stats for live total calls on my switch along with calls that are transferred(realtime stats).</div><div>I am doing following commands to get the live total calls.(basically increasing variable ${CampaignId}_live on getting call and on hangup i decrement that variable).</div><div><font color="#ff0000"><action application="set" data="ignore=${memcache(increment ${CampaignId}_live 1)}"/><br><action application="set" data="api_hangup_hook=memcache decrement ${CampaignId}_live 1"/></font><br></div><div><br></div><div>I am doing this while i transfer the calls to client's number(basically increasing variable ${CampaignId}_transfer on when somebody presses transfer button and on hangup i decrement that variable).</div><div><font color="#ff0000"><action application="bridge" data="{api_hangup_hook='memcache decrement ${CampaignId}_transfer 1 both',ignore='${memcache(increment ${CampaignId}_transfer 1)}'transfer_trigger=1}sofia/external/${TransferTo}"/></font><br></div><div><font color="#ff0000"><br></font></div><div><font color="#000000">Now i have live calls stats coming correctly.</font></div><div><font color="#000000">But in case of transfer calls, when i have low number of calls(like 3-4 calls) it works good, but when i have 50-60 calls the stats are not presented correctly(it does not increase/decrease memcache variable).</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Can someone guide me how to do this in a better way?, or what mistake i am making in doing it.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Regards</font></div><div><font color="#000000">Abbasi</font></div></div>