Below i am going to document some simple and very useful commands for asterisk. These commands will help you gather important information that can help you diagnose an asterisk based system.
First enter the asterisk console:
asterisk -vvvvvvvvvr
Global Commands
Show the entre asterisk dial plan
dialplan show
SIP Commands
Viewing all sip peer status
sip show peers
Viewing all users
sip show users
reload sip modules
sip reload
reload all asterisk modules
reload
IAX Commands
Show IAX users
iax2 show users
Show IAX Peers
iax2 show peers
Manager AMI Commands
Show which users are connected via the AMI (Asterisk Manager Interface)
manager show connected