Skip to main content

Posts

Alma 9 Vicidial Selfsign Webrtc

I am going to provide step by step guide to integrate, enable and configure the viciphone(a webrtc phone) in vicidial (also applicable to any vicidial based system) using the Self Signed SSL Certificate ,ie without a public-ip and FQDN or accessing the vicidial with internal LAN IP. 1️⃣ Install OpenSSL (if not installed) sudo dnf install -y openssl 2️⃣ Generate a Private Key openssl genpkey -algorithm RSA -out selfsigned.key -pkeyopt rsa_keygen_bits:2048 3️⃣ Create a Certificate Signing Request (CSR) openssl req -new -key selfsigned.key -out selfsigned.csr It will prompt you for details like: Country Name (e.g., IN ) State or Province (e.g., Gujarat ) Locality (City) Organization Name Common Name (Domain, e.g., example.com or your server IP) Email Address You can use localhost or an IP address if needed. 4️⃣ Generate a Self-Signed Certificate openssl x509 -req -days 365 -in selfsigned.csr -signkey selfsigned.key -out selfsigned.crt -days 365 → Valid for 1 year (Adjust as needed) ...
Recent posts

GSWAN STATIC ROUTE ADD

GSWAN STATIC ROUTE ADD  sudo ip route add 10.0.0.0/8 via 10.0.XX.XXX(STATIC IP ADDRESS OF SEVER) dev enpXXX Replace enpXXX with your NIC name #GSWAN route @reboot sleep 10 && /usr/sbin/ip route add 10.0.0.0/8 via 10.0.XX.XXX(STATIC IP ADDRESS OF SEVER) dev enpXXX Replace enpXXX with your NIC name

Install the No-IP client (Dynamic Update Client) on AlmaLinux 9

 Install the No-IP client (Dynamic Update Client) on AlmaLinux 9 1. Install Required Packages First, install the necessary packages to compile the client from source. sudo dnf install gcc make wget tar 2. Download the No-IP DUC (Dynamic Update Client) Download the latest version of the No-IP DUC. cd /opt wget https://www.noip.com/client/linux/noip-duc-linux.tar.gz 3. Extract the Downloaded File Extract the downloaded tarball. tar -zxvf noip-duc-linux.tar.gz cd noip-2.1.9-1/ 4. Compile the Client Run the following commands to compile the client. sudo make install 5. Configure the No-IP Client After installation, you’ll be prompted to enter your No-IP account credentials (email and password) and choose the hostname(s) to update. If not, you can manually run the configuration: sudo /usr/local/bin/noip2 -C 6. Start the No-IP Client To start the client: sudo /usr/local/bin/noip2 7. Verify Installation To confirm that the No-IP DUC is running, use: sudo /usr/local/bin/noip2 -S 8. Set Up...

BSNL Incoming DID Dialplan

  [from-trunk] ; Try to capture DID if provided directly exten => _X.,1,NoOp(Incoming call with DID: ${EXTEN} and Caller ID: ${CALLERID(num)})  same => n,Set(realDID=${EXTEN})  same => n,Set(CALLERID_INFO=${CALLERID(num)})  same => n,NoOp(Direct DID: ${realDID}, Caller ID: ${CALLERID_INFO})  same => n,Dial(SIP/GATEWAY/${EXTEN})  same => n,Hangup() ; Fallback if no DID is provided (calls to 's' extension) exten => s,1,NoOp(Fallback - No DID provided, attempting header extraction)  same => n,Set(CALLERID_INFO=${CALLERID(num)})  ; Extract the DID from the To header and strip any additional information  same => n,Set(PJSIP_HEADER=${SIP_HEADER(To)})  same => n,Set(realDID=${CUT(CUT(PJSIP_HEADER,@,1),:,2)})  same => n,ExecIf($["${realDID}" = ""]?Set(realDID=UNKNOWN))  same => n,NoOp(Extracted DID: ${realDID}, Caller ID: ${CALLERID_INFO})  same => n,Dial(SIP/GATEWAY/${realDID})  same =...

Upgrade OpenSuSE from Leap 15.5 to 15.6

  Step 1 – Change existing repo’s  files="$(zypper lr -u | awk -F'|' '$4 ~ /Yes/ { gsub (" ", "", $2); r=" / etc / zypp / repos.d / "$2".repo"; print r }')" for f in $files do echo "Backup of $f saved to /root/ before patching it up ..." cp -f "$f" / root / sed -i 's+/leap/15.5+/leap/$releasever+' "$f" sed -i 's+15.5+15.6+' "$f" sed -i 's+15.5+15.6+' "$f" done Step 2 – Update and reboot zypper --releasever=15.6 ref "May be get error in vicidial repo so rollback perticular repo to old one. zypper --releasever=15.6 dup reboot Make backup of  mod_php7.conf to php7.conf or the dynportal and audiostore conf files will cause apache to have errors. You can do so with the following command: cp /etc/apache2/conf.d/mod_php7.conf /etc/apache2/conf.d/php7.conf  varify.:- cat /etc/os-release NAME="openSUSE Leap" VERSION=...

VC APP Installation

  Run Below steps for VC installation cd /usr/src/ https://github.com/manish23k/Voicelogger-App-With-Ast-1.8-.git #install php-intl required for CI 4.3 yum install php-intl cd /usr/src/ Voicelogger-App-With-Ast-1.8 unzip  Voicelogger_NEW.zip cd  Voicelogger_NEW mysql create database voicecatch; use voicecatch; source voicecatch_14-08-2024.sql; ADD CRON ACCESS TO VOICECATCH mysql GRANT SELECT,CREATE,ALTER,INSERT,UPDATE,DELETE,LOCK TABLES on voicecatch.* TO cron@'%' IDENTIFIED BY '1234';  GRANT SELECT,CREATE,ALTER,INSERT,UPDATE,DELETE,LOCK TABLES on voicecatch.* TO cron@localhost IDENTIFIED BY '1234';  GRANT RELOAD ON  .  TO cron@'%'; GRANT RELOAD ON  .  TO cron@localhost;  flush privileges; SET GLOBAL connect_timeout=60; exit; #Copy Voicelogger App to html cd /usr/src/ Voicelogger-App-With-Ast-1.8 mv  Voicelogger_NEW voicelogger mv voicelogger /var/www/html #Copy test.php to /var/www/html Add below line into cron if not there #P...

Vicidial Scratch installation Alma -9

Step 1 – Download the dependencies   hostnamectl set-hostname xxxxxx.xxxxx.xxx ### Use YOUR SubDomain vi /etc/hosts ##Change domain name for actual server ip (xxx.xxx.xxx.xxx   complete domain name    subdomain only) timedatectl set-timezone Asia/Kolkata yum check-update yum update -y yum -y install epel-release yum update -y yum install git -y yum install -y kernel* #Disable SELINUX sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config     reboot Step 2 – Run the Script cd /usr/src/ git clone https://github.com/manish23k/vicidial-install-scripts cd vicidial-install-scripts chmod +x alma-rocky9-ast16.sh ./alma-rocky9-ast16.sh Or the Asterisk 18 version: chmod +x alma-rocky9-ast18.sh ./alma-rocky9-ast18.sh

Vicidial Access forbidden! on recording links

 nano  /etc/apache2/confid/vicirecord.conf Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/" <Directory "/var/spool/asterisk/monitorDONE">     Options Indexes MultiViews     AllowOverride None     Order allow,deny     Allow from all         <files *.mp3>                 Forcetype application/forcedownload         </files> </Directory> chmod 755 /var/spool/asterisk systemctl restart apache2 Check its working or not. http://SERVERIP/RECORDINGS

MariaDB 10 configuration for ViciBox /etc/my.cnf

Here is my.cnf config example. # MariaDB 10 configuration for ViciBox # HW Spec: 8-Core 2+Ghz, 24-GB RAM, RAID-1 SSD under /srv/mysql/data #Here data mounted on seprate SSD drive which have Higher IO # The following options will be passed to all MariaDB clients [client] # password = your_password # port = 3306 # socket = /var/run/mysql/mysql.sock [mysqld] log_bin=/var/lib/mysql/mysql-bin relay_log=/var/lib/mysql/mysql-relay-bin binlog_format=mixed binlog_direct_non_transactional_updates=1 datadir = /srv/mysql/data server-id = 1 slave-skip-errors = 1032,1690,1062 slave_parallel_threads=20 slave-parallel-mode=optimistic slave_parallel_max_queued=5242880 port = 3306 socket = /var/run/mysql/mysql.sock sql_mode=NO_ENGINE_SUBSTITUTION skip-external-locking skip-name-resolve #no-auto-rehash connect_timeout=60 long_query_time=3 slow-query-log=1 slow-query-log-file=/var/lib/mysql/mysqld-slow.log log-slow-verbosity=query_plan,explain max_connections=2000 key_buffer_size = 8G max_all...

How to configure Airtel SIP trunk

register => +917949031XXX@gj.ims.airtel.in:XXXXXne#1:+917949031XXX@gj.ims.airtel.in@10.5.110.101/+917949031XXX [AirtelSIP] disallow=all allow=all type=friend dtmfmode=rfc2833 qualify=yes nat=force_rport,comedia insecure=invite,port host=gj.ims.airtel.in username=+917949031XXX@gj.ims.airtel.in secret=XXXXX#1 fromdomain=gj.ims.airtel.in defaultexpirey=120 canreinvite=no context=trunkinbound maxexpiry=600 progressinband=yes exten => _65X.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _65X.,n,SipAddHeader(P-Preferred-Identity: <sip:+917949031XXX@gj.ims.airtel.in>) exten => _65X.,n,Progress() exten => _65X.,n,Dial(SIP/${EXTEN:2}@AirtelSIP,,tTo) exten => _65X.,n,Hangup() for custom callerid  ;;;;USE CALLER IN HEADER as AIRTEL REQUIRED CID IN HEADER exten => _67X.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _67X.,n,Set(CALLERID(num)=+${CALLERID(num)}) exten => _67X.,n,SipAddHeader(P-Preferred-Identity:<sip:+${CALLERID(num)}@mu.ims.airtel.in>) exten...