While configuring SIP/PJSIP in Asterisk you may notice that Asterisk responds with 404 Not Found to the OPTIONS request. To demonstrate the behavior let’s have a look at this PJSIP debug log example:
Tag: Asterisk
Feb 10 2020
Vicidial backup and restore guide
Suppose you need to migrate or duplicate Vicidial data (campaigns, leads, phones and so on) from one Vicibox server to another. In case two Vicidial boxes of the same versions the process will be simpler. In case the source server has older Vicibox version than the destination one you will have to perform additional steps …
Feb 10 2020
Vicidial: There is a time synchronization problem with your system, please tell your system administrator
There is a time synchronization problem with your system, please tell your system administrator In case you have this error upon installation or upgrade your Vicibox/Vicidial check the following: Using timedatectl utility make sure server’s timezone is set correctly and server’s date/time is correct. Set proper timezone if needed. Get a list of timezones:
1 |
timedatectl list-timezones |
…
May 08 2019
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:
Apr 17 2019
Asterisk crashes on res_odbc.so load
While loading res_odbc.so Asterisk crashes with “invalid pointer” error like in the backtrace below: Loading res_odbc.so.
Mar 30 2019
Parse JSON in Asterisk: how to install res_json
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:
Mar 30 2019
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)})
Mar 20 2019
A2Billing wholesale: fake ring and incorrect billing
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.
Feb 28 2019
FreePBX error gui_hidden has a deprecated constructor
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: …
Jul 02 2018
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 …