Asterisk is a complete PBX in software. It runs on Linux, BSD, Windows (emulated) and OS X and provides all of the features you would expect from a PBX and more. Asterisk does voice over IP in four protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware.
|clear||To clear the terminal.|
|pwd||To see our current directory.|
|cd /directory Name/||To go to another directory.|
|cd /etc/asterisk/||Folder we do all configuration.|
|Ls||Show file list.|
|Nano||Text editor and for file creation in linux.|
|Nano sip.conf||To modify sip configuration.|
|Ctrl + o||For saving.|
|Ctrl + x||Exit|
|Ps aux | grep asterisk||Show the list of program running and filter word asterisk.|
|Asterisk –c||To go to console. (Ctrl + c to exit)|
|Asterist –r||To go to console.|
|reload||To reload asterisk. Command should be in console.|
|Core stop now||Stop asterisk from running. Command should be in console.|
|Asterisk –rvvvvv||Debug information|
|Sip show peers||To show peering|
|asterisk -rx ‘sip show peers’ | grep -a Telnovo||Show peering|
## File Option
Asterisk it’s self is a program and it has to be running.
Exit/Quit command on asterisk sometime kill or stop the program from running.
#Ps aux | grep asterisk
Note: Asterisk should have it’s own line.
## Sip.conf file
The Sip.conf file that we define our client who is connecting to our voice over IP server and this can be soft phone or hard phone.
In this file we configure what client user and password.
## Soft Phone
An application running on your devices (Mobile/Computer). You can use program like X-lite or eyebeam which is a soft phone and have it connect to your VoIP server.
## Hard Phone
Physical Phone such as IP Phone (Polycom,Avaya,Alcatel,Cisco)
Extensions configuration file it’s a call processor, What it’s going to do is when a user dials a number this extensions file will determine what will have when number.