asterisk

Simultaneous calls from CDR

I need to come up with an analysis of simultaneus events, when having only starttime and duration of each event. Details I've a standard CDR call detail record, that contains among others: calldate (timedate of each call start duration (int, seconds of call duration) channel (a string) What I need to come up with is some sort of an...

What is the best way to get started using Asterisk?

I'm interested in learning more about Asterisk (open source PBX) so I thought I would try building a "hobby" system for my home. Just play around with getting a juiced up voicemail system going for my family. That is, until I found out that a TDM11B kit from Digium costs over $500(!) if I want to get an FXO/FXS card with echo cancellat...

Advice on buidling an Interactive Voice Response (IVR) system using Asterisk

What are some good resources that i can start with? I don't have any hardware yet, What advice can you give me if i want to start development/testing without hardware? ...

MySQL, Asterisk Dialplans and call forwarding

How do I get Asterisk to forward incoming calls based on matching the incoming call number with a number to forward to? Both numbers are stored in a MySQL database. ...

Asterisk AGI framework for IVR; Adhearsion alternative?

I am trying to get started writing scalable, telecom-grade applications with Asterisk and Ruby. I had originally intended to use the Adhearsion framework for this, but it does not have the required maturity and its documentation is severely lacking. AsteriskRuby seems to be a good alternative, as it's well documented and appears to be ...

Custom IVR action in Asterisk

Can you someone please point in me in a direction, sample code or an online resource to accomplish the following: Requirement: I would like to write a simple IVR menu option that will run a script (Bash or Python). For example, phone the Asterisk machine and request to restart a service on another Linux box. The 'other Linux box' detai...

setup an IVR with Asterisk

Hey there! I need to setup a simple IVR system for a friend's company that will let the caller navigate through the menue by pressing phone keys (kind of like a bus schedule....."for today's schedule press '1', for tomorrow's schedule press '2' and so on). It is solely an information system, i.e. no navigation route will end up with a r...

Show asterisk in validation control but show error message in summary.

I'd like a way to both show an asterisk by an invalid field and show a verbose message in a validation summary. However, setting Display to "NONE" in the validation control suppresses any message that would appear next to the field to validate. Is there a way to get this kind of hybrid function? ...

Asterisk TDM410

Hello, This is not a programming question per se. I am trying to build a system which consists of the following: User calls system using regular land line Some processing is done by asterisk Call is forwarded to an external number (another landline/mobile phone) Now I would like atleast 2 simultaneous lines on which the user can cal...

Problems with IRQs when connecting two digium card in and asterisk box

I have two Digium Wildcard TDM800P with 8 FXO ports each. When I connect both at the same time IRQ misses start showing up making my computer unresponsive and unusable. One card works fine but I need all 16 FXO ports to work to receive calls from my Telco. Is there a way for the cards to communicate with each other so they don't genera...

Music on hold over IAX2 routes

I have trouble setting up MOH over IAX routes over everything else PRI, FXS and SIP its working fine. The problem its that I have the institutional MOH set up in the location A. When someone calls from A to B this happens, if A puts B on hold hears default asterisk MOH no the designated class, also if during the same call B puts her on...

How can I get the extension entered by user in a Perl AGI script?

Hello, I'm new to Asterisk AGI programming. Im trying to create a simple IVR, using asterisk-perl, where a user can enter any extension from 1 to 4. Here is my code so far: use Asterisk::AGI; $AGI = new Asterisk::AGI; for($i = 0 ; $i < 2 ; $i++) { $AGI->exec('Playback','welcome'); $AGI->exec('WaitExten','5|m'); } Now, I ...

Seek Help concerning IVR Menu in Asterisk

Hello everyone, I am writing an IVR menu and I need to allow my users to press 0 anytime during the communication to exit. The following is how I do it: exten => 0,1,Playback(good-bye) exten => 0,2,Playback(beep) exten => 0,3,Hangup However, by doing so, when the user presses zero while some file is being played back or some other ope...

Asterisk Dialplan (extensions.conf) Applications

Hello everyone, i am developing an application that shall allow users to access their mail boxes using their phones. I developped an IVR menu of which users will make use to retrieve their mails. More specifically I write an AGI in perl to retrieve the mails. The issue is that the AGI execution takes quite a long time.To this end, I nee...

Asterisk Manager Api events

Hello all I am using Elastix along with the Astmanproxy server to run our call center desktop app. This app gathers info such as callerid, number dialed, etc. to help our agents get customer information among other things. This app changes it's background color upon certain events(like green when the agent answers the call). I use the ...

How can I let a user hang up a call by pressing 0 in Asterisk?

hello everyone, I am writing an Perl AGI script where I convert a text into an audio file and play back this audio file using the following: $AGI->exec("Background", "$filename"); I want the user to be able to press 0 to hang up the call. That is, I need to make the AGI listen for digits entered by the user and act accordingly. A kin...

How can I load balance FastAGI?

I am writing multiple AGIs using Perl that will be called from the Asterisk dialplan. I expect to receive numerous similtaneous calls so I need a way to load balance them. I have been advised to use FastAGI instead of AGI. The problem is that my AGIs will be distributed over many servers not just one, and I need that my entry point Aster...

Astersik load balancing through fastagis

Thank you chochos for the reply. I am using softphones in my case so I do not know if your solution would be applicable in my case. Also how do you define groups and how do you associate channels to these groups in Asterisk? ...

Is my use of XMLin killing my remote Asterisk AGI script?

Hi, I'm facing a strange problem while using XML::Simple module of Perl. I am writing an Asterisk AGI script in Perl where I am calling a function someSub() which uses curl to fetch XML from a CGI page into a variable $xmlstream. I then use XMLin on $xmlstream. The code is something as shown below: $xmlstream = someSub() ; #uses curl...

How to to download MP3 file from AGI script written in Perl?

I am trying to download an MP3 file from an AGI script written in Perl, however the file does not get downloaded. The strange thing is that if I try to download the same file from a plain Perl script it gets downloaded. Here's my AGI code: use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $AGI->answer(); s...