Posts

Showing posts from February, 2013

Directories in Asterisk on Linux

Directories Used by Asterisk Asterisk uses several directories on a Linux system to manage the various aspects of the system, such as voicemail recordings, voice prompts, and configuration files. This section discusses the necessary directories, all of which are created during installation and configured in the asterisk.conf file. /etc/asterisk/ The /etc/asterisk/ directory contains the Asterisk configuration files. One file, however— zaptel.conf—is located in the /etc/ directory. The Zaptel hardware was originally designed by Jim Dixon of the Zapata Telephony Group as a way of bringing reasonable and affordable computer telephony equipment to the world. Asterisk makes use of this hardware, but any other software can also make use of the Zaptel hardware and drivers. Consequently, the zaptel.conf configuration file is not directly located in the /etc/asterisk/ directory. /usr/lib/asterisk/modules/ The /usr/lib/asterisk/modules/ directory contains all the Asterisk loadab

Conferencing with Asterisk

Conferencing with MeetMe( ) Last but not least, let’s cover setting up an audio conference bridge with the MeetMe( ) application.* This application allows multiple callers to converse together, as if they were all in the same physical location. Some of the main features include: • The ability to create password-protected conferences • Conference administration (mute conference, lock conference, kick participants) • The option of muting all but one participant (useful for company announcements, broadcasts, etc.) • Static or dynamic conference creation Let’s walk through setting up a basic conference room. The configuration options for the MeetMe conferencing system are found in meetme.conf. Inside the configuration file, you define conference rooms and optional numeric passwords. (If a password is defined here, it will be required to enter all conferences using that room.) For our example, let’s set up a conference room at extension 600. First, we’ll set up the conferenc

Asterisk PBX With Linux

To obtain the latest stable source code via wget, enter the following commands on the terminal # cd /usr/src/ # wget -–passive-ftp ftp.digium.com/pub/asterisk/asterisk-1.*.tar.gz # wget -–passive-ftp ftp.digium.com/pub/asterisk/asterisk-sounds-*.tar.gz # wget -–passive-ftp ftp.digium.com/pub/zaptel/zaptel-*.tar.gz # wget -–passive-ftp ftp.digium.com/pub/libpri/libpri-*.tar.gz Extracting the Source Code # cd /usr/src/ # tar zxvf zaptel-*.tar.gz # tar zxvf libpri-*.tar.gz # tar zxvf asterisk-*.tar.gz # tar zxvf asterisk-sounds*.tar.gz Obtaining Asterisk Source Code from CVS • Export the CVSROOT path: # cd /usr/src/ # export CVSROOT=:pserver:anoncvs:anoncvs@cvs.digium.com:/usr/cvsroot • Download HEAD from CVS: # cvs checkout zaptel libpri asterisk • Download STABLE 1.0 from CVS: # cvs checkout –r v1-0 zaptel libpri asterisk • Download STABLE 1.2 from CVS: # cvs checkout –r v1-2 zaptel libpri asterisk • Download optional modules from CVS: # cvs checkout asteri

Dialplans in Asterisk on Linux

These Dialplan very usefull only for beginners These dial plan must be write in short lines but i am writing here for bigenners.Because in initial we don't know short cuts by which we can make short dialplan for same recquirement... **************************************** ***CHECK FOR NO OF ATTEMPTS FOR A******* ******PERTICULAR PHONE NO*************** **************************************** [sharjeel] exten=>_X.,1,Answer() exten=>_X.,2,Read(var,english_prompt/enterphoneno,10) exten=>_X.,3,Set(count=${DB(test/${var})}) exten=>_X.,4,GotoIf($[${ISNULL(${count})}]?:7) exten=>_X.,5,Set(DB(test/${var})=1) exten=>_X.,6,GoTo(3) exten=>_X.,7,GotoIf($[${count}<3]?:12) exten=>_X.,8,SayDigits(${count}) exten=>_X.,9,Set(count=$[${count}+1]) exten=>_X.,10,Set(DB(test/${var})=${count}) exten=>_X.,11,GoTo(13) exten=>_X.,12,Playback(english_prompt/invalid) exten=>_X.,13,Hangup() ***********************************************