Skip to content

Instantly share code, notes, and snippets.

View shahriarhasib's full-sized avatar

Shahriar Kabir shahriarhasib

  • IP Telephony Industry
  • Bangladesh
  • 23:34 (UTC +06:00)
View GitHub Profile
@shahriarhasib
shahriarhasib / zabbix-agent-configuration
Last active February 3, 2025 18:30
Configaring Zabbix Agent
#Download zabbix agent on the server want to be monitored
#Select OS version and follow the steps from here: https://www.zabbix.com/download
zagentdconf=' /etc/zabbix/zabbix_agentd.conf'
zserver=IP_Of_Zabbix_Server
zserveractive=IP_Of_Zabbix_Server
#Update Server= and ServerActive= value by IP_Of_Zabbix_Server in /etc/zabbix/zabbix_agentd.conf:
[general]
; General configuration section for Asterisk settings (usually empty in custom dial plans).
[globals]
;audiolocation=/home/shahriar/lab
;audiolocation=/var/lib/asterisk/sounds/en/lab
;DHAKA_TZ=Asia/Dhaka
; Global variables can be defined here, but they are currently commented out.
[ISD]
@shahriarhasib
shahriarhasib / AdbCommands
Created November 28, 2024 06:09 — forked from Pulimet/AdbCommands
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@shahriarhasib
shahriarhasib / asterisk-cert-on-ubuntu
Last active December 5, 2024 08:11
Installing Asterisk Cert on Ubuntu
#Updateing aptitude
sudo apt update -y
sudo apt upgrade -y
sudo apt install build-essential libxml2-dev libncurses5-dev libsqlite3-dev uuid-dev libjansson-dev libssl-dev libedit-dev libxml2-utils xmlstarlet
#Go to the directory where you want to download the files:
cd /usr/local/src
#Download the file usding wget
#Source: https://downloads.asterisk.org/pub/telephony/
@shahriarhasib
shahriarhasib / AGI-with-PHP-Using-Git
Last active January 29, 2025 20:30
Asterisk Gateway Interface (AGI) with PHP
## Resources:
## Asterisk 20.6.0, PHP 8.3.6 (cli)
## https://phpagi.sourceforge.net/
## https://github.com/welltime/phpagi
## Direct Download Link: https://altushost-swe.dl.sourceforge.net/project/phpagi/phpagi/2.20/phpagi-2.20.tgz?viasf=1
##Download and Install PHPAGI
#Install PHP and Required Extensions
sudo apt install -y php php-cli php-pear php-xml
@shahriarhasib
shahriarhasib / cdr-using-mysql-via-odbc.txt
Last active January 29, 2025 20:08
Asterisk CDR in database | via ODBC | MySQL
## Configuring Asterisk CDR to update into database with MySQL via Open Database Connectivity (ODBC)
## Resources:
## Ubuntu 24.04 LTS, Asterisk 20.6.0
## Last update: 2024.08.21
##At once to install:
apt install mysql-server php libapache2-mod-php php-mysql php-curl php-gd php-json php-zip apache2 phpmyadmin asterisk-mysql
# Response 'No' for asterisk files replacement during these installation, this will preserve your current asterisk configurations.
#Loging to web:
@shahriarhasib
shahriarhasib / cdr-using-mysql-phpmyadmin.txt
Last active August 21, 2024 07:54
Asterisk CDR into database | MySQL | PHPMyAdmin
## Configuring Asterisk CDR to update into database with MySQL and using phpmyadmin for web access to the databases.
## Resources:
## Ubuntu 24.04 LTS, Asterisk 20.6.0
## Last update: 2024.08.21
##At once to install:
apt install mysql-server php libapache2-mod-php php-mysql php-curl php-gd php-json php-zip apache2 phpmyadmin asterisk-mysql
apt install asterisk-mysql
#Or Indiviually for understanding: