Questions tagged [agi]

The Asterisk Gateway Interface (AGI) is a CGI-like protocol for executing external programs within Asterisk dialplan.

The Asterisk Gateway Interface (AGI) is a CGI-like protocol for executing external programs within Asterisk dialplan.

The programs are called with the AGI dialplan command and then exchange a series of AGI protocol commands with the Asterisk server on STDIN and STDOUT.

207 questions
7
votes
4 answers

Set waiting tone for asterisk agi function processing

I am using asterisk with normal PHP AGI following this link the problem is that my PHP AGI takes 5 seconds to execute .I just want to set some waiting tone for the user to wait until the AGI is been processing. On the same link I found…
codegasmer
  • 1,462
  • 1
  • 15
  • 47
6
votes
2 answers

Asterisk Java AGI: utils.c write() returned error: Broken pipe

I have written a hello world Asterisk AGI script using Java. The script runs as expected and plays the hello world sound file, but the asterisk console is giving an error though: ERROR[31058]: utils.c:1164 ast_carefulwrite: write() returned error:…
Jason
  • 406
  • 1
  • 5
  • 16
5
votes
1 answer

Asterisk AGI - Originate a call using php agi

Is anybody knows , how we can Originate an external number call using PHP AGI script ?
bizzr3
  • 1,925
  • 4
  • 24
  • 37
4
votes
2 answers

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…
Ketema
  • 6,108
  • 3
  • 21
  • 24
4
votes
1 answer

Asterisk - executing agi script if call is not answerd?

Here is context CH1 which i want to call from .call file [CH1] exten=>9367,1,Playback(welcome); same => n,Agi(agi://localhost/openlock.agi) same => n,Background(CH1_WAVE1) same => n,Hangup() my .call file look like this Channel:…
n j
  • 444
  • 1
  • 6
  • 15
4
votes
5 answers

Asterisk Server Pass Variable from Dialplan to AGI Script

My Dialplan is like this [dial-plan] exten => s,1,Answer() exten => s,n,Noop(exten = ${EXTEN} exten => s,n,Macro(dumpvars) exten => s,n,Macro(record-enable) exten => s,n,AGI(success.php) exten => i,1,Noop(REASON = ${REASON}) exten =>…
Miqdad Ali
  • 6,129
  • 7
  • 31
  • 50
3
votes
2 answers

asterisk agi (php) file debugging

does anyone know the steps required to debug the agi secript (a2billing.php) of asterisk . I am able to remote debug php cli if i call it form the linux console. but if it runs from within asterisk , it does not work. any idea how to debug it ?
Shrouk Khan
  • 1,440
  • 6
  • 27
  • 53
3
votes
2 answers

Asterisk AGI: How to get or set the value of a global variable?

I'm using Asterisk 1.8 with PHP for AGI scripting. EDIT: I'm struggling with setting and obtaining the values of global variables from within an AGI PHP script. I can set channel variables but not global variables. Using PHPAGI…
J. Volkya
  • 993
  • 3
  • 14
  • 33
3
votes
4 answers

PHPAGI: Exec format error

Encountering a problem when running phpagi: -- Executing [123@DLPN_C:1] AGI("SIP/1000-00000001", "hello_world.php") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/hello_world.php hello_world.php: Failed to execute…
AWippler
  • 417
  • 3
  • 9
  • 16
3
votes
1 answer

SIP call is rejected by asterisk

I am using Asterisk and Adhearsion. I have created ahn application and done following things : Added dialplan.rb to root directory of project. Contents : adhearsion { play 'hello-world' hangup } Contents of config/adhearsion.rb : ... ## #…
vedarthk
  • 1,253
  • 1
  • 14
  • 34
3
votes
1 answer

converting words to numbers in Asterisk dialplan

I Spent the last 3 weeks trying to get this to work. I want to do voice dialing from asterisk using googletts.agi script available on github. It works but the problem is googletts sometimes return a word instead of a digit in the "utterance"…
3
votes
2 answers

asterisk agi call failed then next

I'm trying to get my php-agi script to dial the next command if the first one is busy or fail in anyway. The way I set it up now won't just work, it just return busy and then died, or if it work, it would send two dial commands. Here's what I…
thevoipman
  • 1,773
  • 2
  • 17
  • 44
2
votes
1 answer

Asterisk Video Playback (mp4/3gp)

I'm trying to play a video file during a call with asterisk 1.4 for a couple of days now without success. I'm able to make video calls to other users using codec h263 and h264 but I'm not able to play my own mp4 or 3gp files. Whenever I chose these…
Pedro Lobito
  • 94,083
  • 31
  • 258
  • 268
2
votes
2 answers

How to execute a dialplan by asterisk's AMI API?

Couldn't find a specific answer for this. I'm a newbie to asterisk and AMI. I need to auto generate calls using asterisk and pass parameters to an AGI program. Using a call file seems to generate the call first which is not wanted. So, how do I use…
Luchman
  • 51
  • 1
  • 7
2
votes
1 answer

perl call to ruby script using backticks returns nothing

Ok, so I have a ruby script that grabs some data from FM Server and returns a tuple. I had to do this because there's no good perl FM module that I'm aware of. [test.pl] $ret = `ruby /root/rfm-query.rb $cid`; @extens = split(/,/, $ret, 2); print…
cstrouse
  • 288
  • 1
  • 3
  • 17
1
2 3
13 14