For example what is callid , longestholdid , agentavail , agentunavail etc.
Where are you getting these from. I cannot find them in the Asterisk source code.
These are comes under qs_queuestats table
To my knowledge sangoma dosent provide a definition set for their MySQL tables.