agi

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 ...

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 ...

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...

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...

How to write code for AGI (Asterisk Gateway Interface) in C

Please tell me related websites for that code. ...

How can I do a fastAgi to use with Asterisk in Perl

Hi! I am trying to do an IVR using FAstAGI to say information from my database to my clients. I done AGI doing this but I need now run this from another server, windows server, but I dont know how can I do this. I checked the Asterisk::fastagi module but it is so confused and I dont understand anything. I did a few AGI perl scripts with...

Asterisk AGI (Perl script) - Sometimes all keys are ignored by the script

I am new to Asterisk (VoIP) and am rather new to UNIX/Perl. I'm taking this over from a co-worker that left the company, so I didn't set this up in the first place, I just need to make some changes. I'm having a problem where I use get_data() to get the user's keypad entry, but the keys are just ignored and the get_data() function just ...

What is the most up to date Python asterisk AGI framework for asterisk?

I have done some AGI development in the past with PERL and PHP, but my current project is using Python. I have found the frameworks listed here: http://www.voip-info.org/wiki/view/Asterisk+AGI , but they are all pretty old and do not seem kept up to date. I'd like to know if there are any others out there specifically for asterisk 1.6....