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
2
votes
1 answer

How can I write to files through an agi php?

I am creating an agi in php for asterisk, very simple, what I want to do is to save a text in a file, however, when I execute the plan dial, the agi does not save the file my asterisk version is 13.8.3, this run over ubuntu 18, my php version is…
2
votes
1 answer

Setting up handlers in pyst2 fastagi code

I am trying to create a fastagi server for executing some agi scripts. I'm using pyst2 to setup fast agi server. the script running fast agi server is as follows: #!/usr/bin/env python """ .. module:: fastagi :synopsis: FastAGI service for…
Nima Soufiloo
  • 224
  • 4
  • 18
2
votes
1 answer

Asterisk-Java AGI. DefaultAgiServer freez while startup method is running

Trying use agi to listen asterisk. But after startup method is running, my application is freezing. There is no error appears... My spring bean: @Bean(name = "agi") public DefaultAgiServer getAsteriskAgi() throws Exception { DefaultAgiServer…
Aleksei
  • 165
  • 8
2
votes
2 answers

How to set AGI variable in Python?

I have next agi script test_agi.py: This script make checking is called number is Really number or not using HLR request (API) import urllib.request import json from pyagi.pyagi import AGI agi = AGI() dst = agi.env["agi_dnid"] url =…
SergeyMoroz
  • 117
  • 3
  • 11
2
votes
0 answers

Asterisk: SIP Transfer (Refer) - Changing Headers / Caller ID of Original Caller

Basically I have been implementing a standard TRANSFER via PHP AGI (PAGI) to one of our internal PBX systems from Asterisks. The caller calls into our Asterisk application, we then do some searching and we change the caller id which works perfectly…
Warren Doyle
  • 101
  • 6
2
votes
1 answer

MeetMe in asterisk AGI

I am using asterisk 13.6.0 in my centos system. I want to use MeetMe in agi script. But when i am writing below line, it gives me errot. [Mar 3 13:08:53] WARNING[15397][C-00000013]: res_agi.c:2776 handle_exec: Could not find application…
Jayesh Dhandha
  • 1,983
  • 28
  • 50
2
votes
2 answers

Keep calling channel after called channel hangs up in Asterisk

I want to execute an AGI script for calling party after called party hangs up. For example, for doing a survey for customers I am going to run an AGI script after agent hangs up. Unfortunately, when AGI scripts runs the agi debug output says: "511:…
AmirA
  • 133
  • 2
  • 15
2
votes
1 answer

Bridging 2 calls in asterisk using asterisk v0.3.1 java library

Here is how the AGI goes: Call from AParty lands on the AGI, say firstAGI.agi AGI prompts user for input On pressing 1 I need to put this call on hold and dial the BParty using call (callfile) which lands on another AGI say secondAGI.agi SecondAGI…
viki
  • 125
  • 2
  • 10
2
votes
2 answers

Bind Asterisk to my Java program via AGI

I am trying to bind Asterisk to my java program. I followed this article (http://www.jcgonzalez.com/asterisk-handle-calls-with-java-example) to the letter. But I have an error once I call the 888 extention. It gives me the following error : Dec 12,…
ATJ
  • 136
  • 3
  • 11
2
votes
1 answer

calling FFMPEG from Perl AGI failing to execute system command

I'm trying to convert and move 2 audio files that were recorded earlier in the call using ffmpeg. The code in using is: #Convert and move the…
2
votes
1 answer

AGI-BIN:ImportError: No module named asterisk

I have installed asterisk version 1.4.44 and using Python for agi scripts. I have context "9999" than I trying to call while executing this I am getting below errors. is there any dependency to be installed to get this working? -- Launched AGI…
Hemdip
  • 410
  • 6
  • 29
2
votes
1 answer

How to call asterisk function in perl AGI script?

Is there any possibility to call the asterisk function in perl AGI script like CHANNEL function. extension.conf exten => _X.,1,NoOp(${CHANNEL(dahdi_channel)}) above NoOp will print the current call channel no. Same I need in perl AGI script.
RoCkStUnNeRs
  • 301
  • 1
  • 4
  • 9
2
votes
4 answers

Call hangup right after dial in asterisk

I am using asterisk 11 and my call hangup right after dial command and shows bellow error Retransmission timeout reached on transmission Mydial command is AGI Script Executing Application: (DIAL) Options: …
Huzoor Bux
  • 1,026
  • 4
  • 20
  • 46
2
votes
1 answer

Dynamically create extensions with Asterisk

I'm pretty new to Asterisk, and am using AsteriskNOW on CentOS. I currently can't figure out if it is even possible to dynamically create extensions. Is there dialplan code that I can write to accomplish this, or should I use an AGI?
Nolan Anderson
  • 576
  • 1
  • 6
  • 15
2
votes
2 answers

AGI script executes without error , but no results generated

I am trying to run a shell script using asterisk AGI. I have used the tutorial mentioned here http://www.shiffman.net/p5/asterisk/ My extensions.conf is as follows [default] include => clicall [clicall] exten => _X,1,Goto(s,1); exten =>…
user2143272
  • 112
  • 2
  • 8
1
2
3
13 14