Tag: Asterisk

A2billing Install Guide

a2billing-callflow-outbound

This guide will show you how to install A2Billing v2.2 on CentOS v7. It is assumed that you already have Asterisk and/or Freepbx installed (if not – install it first using this guide). It is also assumed that you have compiled Asterisk Realtime driver module (res_config_mysql) by selecting it in Asterisk Menuselect before compiling Asterisk.

Continue reading

Asterisk Freepbx Install Guide

This guide covers Asterisk installation from source on CentOS 7. Freepbx 13 with Asterisk 13 will be installed on CentOS 7. You have to do the installation as root user or with sudo.

Continue reading

Asterisk packages installation on CentOS 7

Officially now Asterisk packages repository is gone. Asterisk installation manual gone as well. If you use Asterisk on CentOS or RHEL, you want to be using RPM packages, not messing around with building source tarballs on each of the machines you maintain. I use Asterisk on CentOS, both on CentOS 6 and more recently on …

Continue reading

Fail2ban installation and configuration on CentOS

In this article I’ll describe how to protect Asterisk from hacking attempts with Fail2ban in CentOS Linux. Fail2Ban is a standard Linux tool used to scan log files and then block IP’s found in those log files using iptables. Fail2ban depends completely on the application (in this case Asterisk) to detect any intrusion/failure and log …

Continue reading

How to generate a FAX compatible multi-page TIFF from a PDF

This is an excellent question, as a reliable answer is amazingly hard to find on the Internet. Most advice works for some PDF files, but not for others. The following commands appear to work OK for any PDF file. If you can find PDF files for which these commands fail, please report this. Ghostscript is …

Continue reading

Asterisk dynamic routing with MySQL database

For the next task we will need Asterisk dynamic routing using MySQL: some company has technical department that should provide emergency services on non-working hours. Based on time and date conditions, a call should be routed to a shared department’s extension (technicians) or be sent to a man on duty on non-working time and weekends. …

Continue reading

Asterisk Function ODBC cannot be read

While trying to execute ODBC function in Asterisk dialplan error is thrown: [Oct 27 14:20:21] ERROR[4601]: pbx.c:3380 ast_func_read: Function ODBC_INSERT cannot be read — Executing [XXXXXXXXX@internal:5] Set(“SIP/out-0000001a”, “ins=”) in new stack func_odbc.conf looks like this:

and my extensions.conf is:

All variables are correct, ODBC is also configured correctly (read from DB statements work).

Continue reading

Skype for Business, Asterisk and SIP REFER

Skype-For-Business-Asterisk-SIP-Refer

If you don’t use VoIP gateway that “officially” supported by Microsoft and Skype for Business you may experience troubles in some cases as those devices may not interpret correctly SIP Refer messages sent by Skype for Business Mediation Server. The problem I’ve experienced in my environment was that when you activate “Call me at” feature …

Continue reading

Configure logrotate for Asterisk logfiles on CentOS

logrotate is an utility specially designed for ease rotation of large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large. Normally, logrotate is run as a daily cron job. By default it lacks the …

Continue reading

Understanding Asterisk call files

Asterisk PBX

Asterisk call files are text files with a certain structure that tell Asterisk to initiate a call when moved to /var/spool/asterisk/outgoing directory. You can use them in order to initiate calls without an extension or bypass the dialplan for troubleshooting purposes. They can be scheduled on any time and date you want and used for …

Continue reading

Load more