add new method for xivo-stats #4790
Merge branch '4790_stats'