Posts

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() ***********************************************...

Assembly in Dot Net C#

Assembly  --------------------  Assembly is the final output after  twice-compilation of all C# codes.  W.r.t Program Access, assemlies can be  classified into 2 - types.  • Private Assembly  • Shared Assembly.  Private Assembly  ---------------------  The default assembly created is 'private assembly'.  A private assembly is limited to one application only.  The private assembly should be kept at \Bin folder  of an ASP.NET application.  Shared Assembly  ---------------------  A shared Assembly is usable by all applications  within the system.  All shared assemblies are LISTED in GAC ['Jack']   - Global Assembly Cache  GAC Folder is:   C:\Windows\assembly\  A 'private assembly' can be made 'shared assembly'.  How To Make a Private Assembly - Shared  -----------------------------------------------------  Only a 'Strong Named Private As...

Reflection in Dot Net

GET ASSEMBLY(Currently executing OR With Location) INFORMATION   Add following NameSpace using System.Reflection;   Now write code in code file as per your requirement.           string strFile_URL_Path = string.Empty;         string strFilePath = string.Empty;         string strVersionNo = string.Empty;         string strAssemblyName = string.Empty;         string strCultureInfo = string.Empty;         //Find Information Of Executing Assembly         Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;       //GET VERSION NO         strVersionNo = v.ToString();         strCultureInfo =...

Asterisk Drivers

The ztdummy Driver In Asterisk, certain applications and features require a timing device in order to operate (Asterisk won’t even compile them if no timing device is found). All Digium PCI hardware provides a 1-kHz timing interface. If you lack the PCI hardware required to provide timing, the ztdummy driver can be used as a timing device. On Linux 2.4 kernel– based distributions, ztdummy must use the clocking provided by the UHCI USB controller. The driver looks to see that the usb-uhci module is loaded and that the kernel version is at least 2.4.5. Older kernel versions are incompatible with ztdummy. On a 2.6 kernel–based distribution, ztdummy does not require the use of the USB controller. (As of v2.6.0, the kernel now provides 1-kHz timing with which the driver can interface; thus, the USB controller hardware requirement is no longer necessary.) The default Makefile configuration does not create ztdummy. To compile ztdummy, you must remove a comment marker from the Mak...

PUZZLES & PROG in C++

// ***************************************** //             "Guess the number" // Briefing: //  The computer generates a random number //  between 1 and MAX_RANGE. The user must //  guess the number. Each time the user //  makes an attempt the computer tells if //  the number is greater or less than. // ***************************************** #include <iostream.h> #include <stdlib.h> #include <time.h> // Define the greatest possible value: #define MAX_RANGE 100 main () {   int counter=0;   long value,input;   srand ( time (NULL) );         // Initialize random generator   value = rand()%MAX_RANGE+1;    // Get random between 1 and MAX_RANGE   cout << "\nInsert a value between 1 and " << MAX_RANGE << " : ";   do {     cin >> input;  ...

Command Line Argument n C

First Programme The program execution begins by executing the function main (). #include <stdio.h> main(){   printf("Amber \n"); }   OUTPUT: Amber   C LANGUAGE KEY WORD auto         double      int           struct break       else          long         switch case         enum       register     typedef char         extern      return       union const       float        short         unsigned continue   for ...