Call Couter in Asterisk

you have to connect with the database and select from database and count the number that can display that in joolma.