List current channels

Hi all,
I try to study source code of Asterisk, I want to know what is the list all current channels of PBX, what should I do?
Best regards,
Thuan T. Nguyen

Look at the implementation of core show channels.

Please note that this is an end user forum. For developer support there are mailing lists and IRC channels.