How to save audio stream from Asterisk to a file via WebSocket

To save an audio stream from Asterisk to a file via WebSocket, you need to capture the audio being streamed from Asterisk and write it to an audio file format (such as WAV or PCM). Here’s a step-by-step guide to accomplish this: create web socket and save data in a text file Requirements: Asterisk: To … Read more

Webrtc with Asterisk 16 : complete configuration with SIP

Today, We will wrap up webrtc set up with Asterisk 16. We will see how to configure asterisk 16 to suport webrtc and what more packages will require. Asterisk and SIP.js were tested using the following setup: CentOS 7.2 minimal (x86_64). Asterisk 16.9.0. OpenSSL 1.0.1e-fips 11 Feb 2013 or later. A public IP address to avoid … Read more

How to install Asterisk: Asterisk installation on centos

Today, In this article we will know how to Asterisk Installation on centos 8 or a RedHat-based system. Know more about asterisk installation Installation and configuration of WebRTC with asterisk on Amazon What New in Asterisk 16 Step 1: Updating system Update your system before installing Asterisk. After updating set SELinux in permissive mode by … Read more

G.711 Codec

VoIP-Codecs

G.711 Codec G.711 is a codec that was introduced by ITU in 1972 for use in digital telephony. The codec has two variants: A-Law is being used in Europe and in international telephone links, uLaw is used in the U.S.A. and Japan. G.711 uses a logarithmic compression. It squeezes each 16-bit sample to 8 bits, thus it achieves a … Read more

Basic Call Flow – SIP

peer to peer sip flow

Basic Call Flow – SIP Key terms used in SIP: It is important to familiarize with these terms in order to understand basic SIP call flow. Here are few of them: Call flow: It’s a flow diagram of SIP messages — shows an ideal way how a media session carried over two endpoints. Its a … Read more

Convert audio files for Asterisk

vicidial goautodial support

Convert audio files for Asterisk Converting to sln format Starting from Asterisk 1.2.0, the .sln (SLINEAR) format seems to be the preferred format. To convert wav file to sln, use the following command: sox foo-in.wav -t raw -r 8000 -s -w -c 1 foo-out.sln Note that sox v14.3.0 and above (installed in Ubuntu 9.10), the … Read more

asterisk 1.4 installation with libpri and DAHDI

asterisk

asterisk 1.4 installation with libpri and DAHDI Update the system before start installation and reboot the system. yum -y update   Install MySQL yum -y install mysql-server /etc/init.d/mysqld start chkconfig mysqld on Install Pre-Install Packages yum -y install kernel-devel make bison flex gcc-c++ gcc httpd php php-cli php-mysql php-pear php-gd curl sox ncurses-devel openssl-devel mysql-devel … 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