Calls taken by agent is reset on every login

When the agent login to asterisk, QueueMemberEvent shows the exact number of calls taken by this agent. However, when the agent logoff and login again, this number is reset to 0.

Is that the correct behavior? if so, then how can i get the total number of calls taken by the agent per day?

Thanks.

I dont know if its this is the correct behavior, but assuming it is you will need to keep a track using a DB with and the time stamp,

usually you could parse the queue log file

asterisk is not intended to maintain data over a long time

maybe by pausing the agent vs logging out will help you