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
0
votes
2 answers

Hang up codes asterisk

I am using asterisk for making outbound PSTN calls. We are using BSNL PRI Line, and dahdi. Recently we are facing some problems with the call hang ups, actually we have 30 channels but when we use more than 15 channels some calls are abnormally…
Ravikiran Reddy
  • 87
  • 4
  • 15
0
votes
1 answer

how to use OriginateAction class in asterisk java to originate a call to a PSTN number

I am new to asterisk, I am trying to originate a call from java application. I found OriginateAction is the class to originate a call to SIP or PSTN number, I tried to use this class but could not find any way how it helps me. Can any one suggest me…
Ravikiran Reddy
  • 87
  • 4
  • 15
0
votes
1 answer

How to make a call from manager api methog originate

I am trying to make a call to a PSTN number using dahdi, but I am unable to originate it through originate command please tell me how to use this method in asterisk-java.
Ravikiran Reddy
  • 87
  • 4
  • 15
0
votes
1 answer

communication between two channels in asterisk

I am new to asterisk, My task is to establish communication between two applications.I have done it successfully on PRI line both the applications are communicating with each other on different channels. Now I need to control both the…
Ravikiran Reddy
  • 87
  • 4
  • 15
0
votes
1 answer

Asterisk AGI escape digit

How can we send escape digits programmatically to the playing file. Say, I played a file which is 10 seconds length, but in 5 seconds I want to exit or abort the playing file. NOTE: I used Asterisk.Net Library for the AGI.
DLende
  • 5,162
  • 1
  • 17
  • 25
0
votes
1 answer

Asterisk Perl AGI won’t continue

I can get the call running the AGI, but I am not able to continue running the extensions.conf dial plan while my Perl script runs its loop. So I need away to run this AGI in the background when the call is dialed. The part of my AGI that is screwing…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
0
votes
2 answers

asterisk agi loop not working

I am trying to have my php script loop 10 times when a call is made, but for some reason it only executes once and then it hangup/dies/exit. Any kind of insight I can get on this is greatly appreciated. for ($i=1; $i<=10;…
thevoipman
  • 1,773
  • 2
  • 17
  • 44
0
votes
1 answer

phpagi script randomly stops

For some reason phpagi script randomly stop's in the middle. This only happens once every 20-50 calls. I was able to notice several such 'fails' realtime in asterisk CLI. No error's were displayed. Script sent several verbose messages until just…
k4h
  • 117
  • 3
  • 11
0
votes
2 answers

Passing Variable from Asterisk Dialplan to AGI perl script

I am trying to pass a variable from the Asterisk Dialplan to a perl script using the AGI. I am now to this and am very confused at to how exactly this works. Right now in my dialplan I have…
Cheesegraterr
  • 517
  • 3
  • 14
  • 26
0
votes
1 answer

AsteriskNOW and AGI Scripting

I'm currently trying to write my first AGI script in PHP to use on my AsteriskNOW server. All the tutorials i'm trying are not working, and i'm wondering if it may have to do with using AsteriskNOW instead of just Asterisk? Also, where would I find…
0
votes
1 answer

Asterisk AGI Encoding

I’m using a publically available AGI Script that wraps Google’s Speech Recognition API for converting speech to text in Asterisk. Basically, the script passes an audio file do Google and returns the text recognized from the audio. This is working…
Spencer Müller Diniz
  • 1,318
  • 2
  • 14
  • 19
0
votes
1 answer

asterisk agi dial with DTMF also LIMIT

am trying to do DTMF also limiting the call duration, however, I can't get both to work, it's either one or the other in the dial command. Please help me. $agi->exec("DIAL","SIP/gateway/18009993355,30,D(1234),L(100000)")
thevoipman
  • 1,773
  • 2
  • 17
  • 44
0
votes
1 answer

Recorded files lost when user hangs up in Asterisk

I have one voice application in which I want to save a recorded sound file. My code is: $record_file= $dir_path . "recordfile_".$file_count; $this->obj_agi->exec("Record","$record_file.wav,5,$maxsecs"); Whenever I hang up during recording, the…
Bhavik Patel
  • 613
  • 3
  • 11
  • 28
0
votes
2 answers

Asterisk system ignore some DTMF digits when it called by PABX phone

I am using Asterisk E1 card on CentOS 6.2. When I call on my asterisk system using a simple pstn or by a mobile phone, the call perfectly run. But when the same number has called by a PABX phone, the asterisk system ignored some digits. I am using…
Code Breaker
  • 499
  • 1
  • 4
  • 19
0
votes
1 answer

(Asterisk PBX) How to control program written in C from asterisk agi in features.conf

How to control programs written in C from asterisk AGI-application in features.conf? I want to control my program by pushing keys on the telephone (dtmf-tones). I was reading about using pipes for passing on standard I/O. My first idea was: $…