Perhaps the most important skill required to troubleshoot is reading the log files. Like other Linux services, asterisk writes the logs in /var/log/asterisk
To enable a full log you should edit the /etc/asterisk/logger.conf and uncomment the full line. Afterwards you must run this command to apply changes:
# asterisk -rx “logger reload”
Here are examples of tracing in logs:
- cat /var/log/asterisk/full | grep ERROR
- cat /var/log/asterisk/full.1 | grep 9878 | grep “some text”
- cat /var/log/asterisk/full|grep “user-callerid: “|grep 9899 > /var/log/asterisk/9899.log
- cat /var/log/asterisk/full.1| grep “” > 9864.log
- tail /var/log/asterisk/full | tee log_exmpl.txt
To check the system performance under linux you can use the “top” command.
Note: It is useful for monitoring the system performance.
Many Users who likes to work as root and but in TeamViewer 5 there is restriction for Running as root.
Whenever you are trying to run TeamViewer as root from Terminal, You will get message like below:
TeamViewer must not be executed as root!
By Following very few steps you will be able to run TeamViewer as root.
If you want to test your extension from Asterisk CLI you can use the “originate” command:
Example: asterisk -rx “originate SIP/1007 application Playback hello-world”
After this 1007 will ring and hello-world will be played.
In many occasions it happens that the users (especially managers) would like to divert their extensions to their mobile phone numbers. To do this we can simply use the follow-me for the extension and add the phone number as the second priority followed by #.
Note: you must take into account the outbound route dial pattern and use the same pattern in follow me.
As can be seen above, if extension 1007 doesn’t answer for more than 25 sec (about 5 rings) the call will be diverted to 0123334455.
this post will give a good understanding:
Here is the link to a post for Linux system administration commands and tools:
FreeNAS is a free Network-attached storage (NAS) server. It supports following protocols:
=> CIFS (Samba) – Mac / UNIX / Windows can use CIFS to store files