Filter Logs with Grep : linux Command Grep

grep linux command

Filter Logs with Grep : linux Command Grep Let’s understand the use of grep is to extract useful information from system logs: grep -Eoc “^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}.* 200” /srv/www/example.com/logs/access.log   In this command, grep filters an Apache access log for all lines that begin with an IP address, followed by a number of characters, a space and then the … Read more

SQL CASE

mysql 5.7

SQL CASE The CASE statement goes through conditions and return a value when the first condition is met (like an IF-THEN-ELSE statement). So, once a condition is true, it will stop reading and return the result. If no conditions are true, it returns the value in the ELSE clause. If there is no ELSE part … Read more

Sample IVR to say IP address using CURL in Asterisk

asterisk

Sample IVR to say IP address using CURL in Asterisk Installing the cURL Module Installing cURL is easy. If it was not on your system when you last compiled Asterisk, after installing it you’ll need to recompile Asterisk so that it can locate the cURL dependencies and compile the func_curl.so module. On CentOS: $ sudo … Read more

asterisk CURL function

asterisk

asterisk CURL function Asterisk’s ability to retrieve and store data to realtime backends is most commonly associated with relational databases. One of the lesser-known realtime backends available in Asterisk is cURL. Using this realtime backend makes Asterisk use HTTP GET and POST requests in order to retrieve data from and store data to an HTTP server. … Read more

Asterisk Internal Database

asterisk

Asterisk Internal Database Asterisk comes with a database that is used internally and made available for Asterisk programmers and administrators to use as they see fit. Asterisk versions up to 1.8 used the Berkeley DB, and in version 10 the project moved to the SQLite3 database What is the Purpose of the internal database in Asterisk The database really … Read more

SPEECH RECOGNITION WITH GOOGLE CLOUD API ON ASTERISK 15

asterisk

SPEECH RECOGNITION WITH GOOGLE CLOUD API ON ASTERISK 15 In this article, we will try to explain the implementation of Google Speech Recognition with asterisk 15.  We will start from installation of Asterisk 15.   The first step we must to do, is install the Development Packages : # yum -y groupinstall ‘Development Tools’ The next … Read more

Asterisk file and directory structure

asterisk

Asterisk file and directory structure The directories used by Asterisk can be configured in the asterisk.conf configuration file. Here we’ll describe what each directory is used for, and what sub-directories Asterisk will place in each by default. Below each heading you can also see the correlating configuration line in asterisk.conf. Asterisk Configuration Files astetcdir => /etc/asterisk This location … Read more

Rename database in MySQL

mysql 5.7

From phpMyAdmin, select the database you want to select. In the tabs there’s one called Operations, go to the rename section. That’s all. It does, as many suggested, create a new database with the new name, dump all tables of the old database into the new database and drop the old database. Other method: Create … Read more

PJSIP installation in asterisk 13 is now easier

install asterisk 13

PJSIP installation in asterisk 13 is now easier   Asterisk 13.8.0 will come with a new option for enabling PJSIP functionality. This functionality is called bundling and comes courtesy of a community member, George Joseph, who you can also thank for such PJSIP additions as wizards for configuration and the PJSIP_HEADER dialplan function. Before we talk … Read more

Application Modules in Asterisk

install asterisk 13

Application Modules in Asterisk Dialplan applications are used in extensions.conf to define the various actions that can be applied to a call. The Dial() application, for example, is responsible for making outgoing connections to external resources and is arguably the most important dialplan application. Name Purpose Popularity/Status app_adsiprog Loads Analog Display Services Interface (ADSI) scripts into compatible analog phones … Read more