cat /etc/systemd/system/goip.service
We should start goip service after mysql and we should be sure that it will autorestart on crash.
Continue reading “Goip systemd service”Notes from sysadmin work. Yet another sysadm blog
cat /etc/systemd/system/goip.service
We should start goip service after mysql and we should be sure that it will autorestart on crash.
Continue reading “Goip systemd service”Idea: make a queue of calls in which agents will register themselves. A man came to work, dialed a secret combination, “signed up,” and he is all in line and ready to receive calls. Let’s make it happen.
Continue reading “Asterisk & Self Registration Queue”Hey.
Recently I got a task: SIP/100 should accept two calls at the same time and if first line “busy” caller should hear “Operator busy. Please wait”.
I tried to solve that with queue but queue cant announce “OP busy” because it was not busy (2-nd line call).
So I solved that task in next way:
Continue reading “Asterisk Device state INUSE”Hey, just another config draft from me. In that article we will enable fail2ban jail for asterisk on UDP/5060 via iptables.
In /etc/sysconfig/iptables we should allow UDP/5060 for all (if you want to enable only for your subnet why you need fail2ban? Just allow 192.168.1.0/24 and don’t read that article).
Continue reading “Working fail2ban for Asterisk (security log)”Ok. Short article. We already have Asterisk 16.1, lets update to 16.2
systemctl stop asterisk cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz tar -zxvf asterisk-16-current.tar.gz cd asterisk-16.2.1/ ./configure --with-pjproject-bundled --with-crypto --with-ssl=ssl --with-srtp --with-jansson-bundled make menuselect #should find out how to save settings make && make install && make config && ldconfig chown asterisk.asterisk /var/run/asterisk && chown -R asterisk.asterisk /etc/asterisk && chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk && chown -R asterisk.asterisk /usr/lib/asterisk
Installation requires: php <7. Just because or Chinese friends use mysql_ and not mysqli_ or PDO stuff.
cd /tmp wget http://118.142.51.162/update/goip_install-v1.25.tar.gz tar xvfz goip_install-v1.2* cd goip_install ./goip_install.shContinue reading “Installing goip sms server on Centos x64.”
Lets add blacklist feature to our Asterisk. We will use AstDB (CFIM/blacklist).
First of all lets add ability to add and remove numbers to our blacklist.
Open /etc/asterisk/extensions.conf via your favorite editor (nano, huh?)