Runing Asterisk command from bash script -shell script

bash: #!/bin/sh asterisk -rx ‘command’ if you want to see the result of a command in a file: asterisk -rx ‘command’ > /some_dir/some_file.txt Perl: #!/usr/bin/perl system qq(asterisk -rx ‘command’)

webrtc implementation asterisk : Webphone

webrtc implementation on asterisk

webrtc implementation on asterisk with Webphone What is WebRTC WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.The mission of WebRTC is to enable rich, high-quality RTC applications to be developed for the … Read more

Install Asterisk 13 and PJSIP on CentOS 6

install asterisk 13

Install Asterisk 13 and PJSIP on CentOS 6+ 64 bit Step 1 – Setup the environment The first step is to install the dependencies required to build the PJSIP libraries and Asterisk 13. Using the CentOS yum package manager we’ll update all currently installed packages to their latest version and then install some of the … Read more

Asterisk dialplan function GotoIf : Asterisk command gotoif

asterisk dialplan command gotoif

The GotoIf( ) Application GotoIf( ) uses a special syntax, often called the conditional syntax: GotoIf(expression?destination1:destination2) If the expression evaluates to true, the caller is sent to the first destination. If the expression evaluates to false, the caller is sent to the second destination. So, what is true and what is false? An empty string … Read more

installation and configuration of fail2ban on CentOS 6

fail2ban

What is Fail2Ban Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-force attacks Fail2ban is a daemon that can be run on your server to dynamically block clients that fail to authenticate correctly with your services repeatedly. Written in the Python programming language. Fail2ban is a free and open source framework. … Read more

asterisk 13 installation with libpri and dahdi on centos 7

install asterisk 13

Asterisk 13 installation with libpri and dahdi on centos 7 Installation Process Step 1: Disable SELINUX permanently. Please note do not start any installation while selinux still enabled. To know how to disable SELinux  Disable SELinux in Linux Disable SELinux in Linux Step 2: Update operating system yum update -y reboot Step 3: Download source code … Read more

call conference asterisk – n-way call HOWTO

A conference bridge allows a group of people to participate in phone call.  The most common form of bridge allows participants dial into a virtual meeting room from their own phone.  Meeting rooms can hold dozens or even hundreds of participants.  This is in contrast to three-way calling, a standard feature of most phone systems … Read more

SIP Trunk configuration – IP Based authentication and Password based authentication

There are two types of authentications 1. IP based authentication 2.Username and Password based authentication For IP Based Authentication You need to do the following changes in the sip.conf [siptrunk] type=friend fromuser=X.X.X.X ( your asterisk server ip ) which will send traffic to the service provider host=X.X.X.X ( service provider ip ) canreinvite=no qualify=no dtmfmode=RFC2833 … Read more

Click to Dial or php API to dial from asterisk

copy the below code to a file (click2call.php)  to the webdirectory. executes as  :  http://ipaddress/click2call.php??exten=SIP/100&number=9899338979

Shell Script to copy files in a folder

A shell script to find all the files in the given path recursively and then copying them in the target folder #!/bin/sh ################################################################# # A shell script to go through a directory recursively and copy # ################################################################# # this is full path to the folder from where the files need to be copied. path=”/home/Music/” # … Read more