I will give an example of setting up SIP Trunk in Asterisk, that is, Asterisk will be in the role of a SIP client.
From the provider Ukrtelecom received data: number, password and address of the telephony server (sip.ukrtel.net).
SIP number was taken to make multi-channel not an ordinary city number, by forwarding in case of busy lines.
I will configure on a Linux server with a real IP without using NAT, as well as on another with NAT (in the second case, you need to change nat=no to nat=yes and comment out canreinvite).
Category Archives: Asterisk
Installing Asterisk on Ubuntu Server
I will give an example of a quick installation of Asterisk on Ubuntu Server.
I will install it on versions 14.04 LTS and 16.04 LTS.
Configuring GOIP4 with Asterisk

On the test, I set up a Chinese GSM GOIP4 gateway with an Asterisk server as a trunk.
Continue reading “Configuring GOIP4 with Asterisk”Asterisk commands
I will describe the possible Asterisk commands that can be entered after connecting to the console:
Continue reading “Asterisk commands”Monitoring Asterisk in Zabbix
We will monitor Asterisk through Zabbix agent, for this we install it on the same machine as Asterisk.
Continue reading “Monitoring Asterisk in Zabbix”Frequent messages “Remote UNIX connection” in Asterisk
I noticed once in the Asterisk console that the following messages are often displayed:
Continue reading “Frequent messages “Remote UNIX connection” in Asterisk”— Remote UNIX connection
— Remote UNIX connection disconnected
— Remote UNIX connection
— Remote UNIX connection disconnected
— Remote UNIX connection
— Remote UNIX connection disconnected
…
Notice “Call from X to extension X rejected because extension not found in context X”
Once I was asked by a client to see why he could not get through to one of the numbers.
I opened the asterisk console:
How to configure Asterisk AMI
Asterisk Managment Interface (AMI) – a powerful API interface for Asterisk, allows you to manage, execute commands, receive notifications about events in real time, etc.
Continue reading “How to configure Asterisk AMI”IPTables rules for Asterisk AMI
Suppose the default “iptables -P INPUT ACCEPT” for all connections (and if DROP, which is very desirable, then we do not use all the DROP rules below, we only perform ACCEPT).
Since Asterisk AMI usually works on TCP port 5038, in order to open it we will execute:
Continue reading “IPTables rules for Asterisk AMI”Increase the volume of calls in Asterisk
To increase the call volume during calls, you need to add a couple of lines (on which you need to increase the volume) in the /etc/asterisk/extensions.conf file, at the beginning of each dialplan:
Continue reading “Increase the volume of calls in Asterisk”