Tag: Asterisk

odbc_log: Unable to retrieve database handle. CDR failed.

I correctly configured ODBC connection on Asterisk server to MSSQL database in Always On cluster. The working configuration was as follows: Be sociable 🙂 Share!

Continue reading

Asterisk crashes on res_odbc.so load

asterisk-invalid-pointer

While loading res_odbc.so Asterisk crashes with “invalid pointer” error like in the backtrace below: Loading res_odbc.so. Be sociable 🙂 Share!

Continue reading

Parse JSON in Asterisk: how to install res_json

res_json-Makefile

If you need to talk to external API and parse JSON in Asterisk dialplan you will need res_json installed. Unfortunately it’s not bundled in Asterisk installation yet but here is how you can install res_json in Asterisk: Be sociable 🙂 Share!

Continue reading

Calculate Difference between two Time Values in Asterisk Dialplan

For calculating the difference between two times in Asterisk dialplan, the time values should be converted to an epoch value first. This  can be done using the asterisk function STRFTIME. Use the below dialplan to convert current time to an epoch value Set(time=${STRFTIME(${EPOCH},,%s)}) Be sociable 🙂 Share!

Continue reading

A2Billing wholesale: fake ring and incorrect billing

A2Billing-dial-parameters

Often in A2billing wholesale setup one might find that A2Billing starts billing for calls too early (before the call is  answered). Another frequently asked question is “fake ring”. Let’s go through each of issues. Be sociable 🙂 Share!

Continue reading

FreePBX error gui_hidden has a deprecated constructor

freepbx

Having fresh manual installation of FreePBX 14 on CentOS 7 and when access GUI for the first time it throws the following error: Methods with the same name as their class will not be constructors in a future version of PHP; gui_hidden has a deprecated constructor. In Apache’s error log file I found the following: …

Continue reading

Asterisk Phone Inventory / Useragent List

I need to find out whether all Cisco phones in organization use the latest firmware. As SPA series phones show firmware version in “Useragent” string it would be great to display all useragents in Asterisk. In order to get this string from all Asterisk peers we need to go through each peer and display the …

Continue reading

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. Be sociable 🙂 Share!

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

Load more