Email : inbox [at] sysadmin.lk
Linkedin : https://www.linkedin.com/in/prabatht
Facebook : https://www.facebook.com/prabath.hinoize
Related Articles
Securing Asterisk IP-PBX with Fail2Ban
What is Fail2Ban? Any service that is exposed to the internet is susceptible to attacks from malicious parties. If your service requires authentication, illegitimate users and bots will attempt to break into your system by repeatedly trying to authenticate using different credentials. A common example of this is with SSH, which will be the subject […]
Useful MySQL Commands
Database with size SELECT table_schema “DB Name”, Round(Sum(data_length + index_length) / 1024 / 1024, 1) “DB Size in MB” FROM information_schema.tables GROUP BY table_schema; Create a database. mysql> create database [databasename]; List all databases on the server. mysql> show databases; Switch to a database. mysql> use [db name]; To see all the tables in the […]
Connect 2 Asterisk servers with IAX2 Trunk
Server 1 configurations [usa-IAX] host=10.0.0.1 username=panadura secret=RMoBaNvjZO type=peer qualify=yes context=from-trunk-iax2-usa-IAX [usa-IAX_user] secret=RMoBaNvjZO type=user context=from-internal Server 2 Configurations [panadura-IAX] host=10.0.0.1 username=panadura secret=RMoBaNvjZO type=peer qualify=yes context=from-trunk-iax2-panadura-IAX [panadura-IAX_user] secret=RMoBaNvjZO type=user context=from-internal