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

Asterisk: customised log using agi

Is there anyway to get customized log in asterisk by using agi, log file with csv format will contains only those informations : -date of the call -Caller id -Called number
Samiou
  • 1
  • 1
-1
votes
3 answers

failed to execute a php script in AGI asterisk, No such file or directory

i am using AGI(Asterisk Gateway Interface) for run php script from dial plan my dialplan look like exten =>2600,1,Playback(hello-world) same =>n,AGI(agiscript.php) same =>n,Hangup() agiscript.php is look like `#!/usr/bin/php -q…
user0946076422
  • 85
  • 1
  • 12
-1
votes
1 answer

Retrieving status from Asterisk using PHP

today I am again in need of assistance regarding my problem. I have this code which sends sms through asterisk using the CLI command. Forgive me if you were to find some error in my code. I just started learning php 2 days ago. I need help as to how…
-1
votes
1 answer

file_get_contents not working on Asterisk Now

I install Asterisk now 6.12 32 bit, and run code php like this: file_get_contents not working :( ,but i can run code php on…
-1
votes
1 answer

Asterisk Answer and Disconnect detection without Tenor gateway

I have configured Tenor Aft400 device on my company and i can detect call answering and disconnecting module in itself without any problem. But the problems comes where i have some analog lines and want to use them without any tenor device on my…
OnlyMAJ
  • 819
  • 8
  • 21
-1
votes
3 answers

Asterisk - Detect answer via sip trunk

I have a SIp trunk and I want to make an outgoing call to a external analog number and play a message when the other side answers it. The problem is that the message be played as soon as it finish dialing the number, without waiting to answer.…
Gonzalo
  • 2,866
  • 7
  • 27
  • 42
-1
votes
1 answer

Unable to request channel Iax2/3002 while calling to asterisk server

I am trying to make a call to asterisk server from my AGI. My AGI is basically a java code which uses Asterisk-java.jar library for communication with asterisk server. I opened up the connection with asterisk server and ran some commands on it and I…
Muhammad Salman Farooq
  • 1,325
  • 9
  • 26
  • 54
-2
votes
1 answer

google speech is not working in asterisk ivr

In asterisk i am using speech recognition from google cloud like this given below : [inboundtest] exten = 111,1,Answer() same=n,agi(googletts.agi,"Say something in English, when done press the pound key.",en) …
-2
votes
2 answers

Run php script for each call in FreePBX

I want to run a php script before each call in freepbx. also i need destination gateway ip and did. this is the first time that I try to do this function and I don't have any idea for this.
-2
votes
1 answer

How to check and restrict concurrent calls on a number in asterisk php agi?

We have a portal where client sets maximum concurrent call forwarding on a number. First calls come to our IP, we then forward that calls to some numbers(set by client for it). We have to make sure, the forwarded calls are less than or equal to the…
Anup_Tripathi
  • 2,817
  • 3
  • 26
  • 37
-2
votes
1 answer

Answer call from php with AGI and AMI

Just I need to write exten => 116,2,AGI(agi:async) in dialplan???? I did know that I should write an agi file in folder /usr/bin Sorry but I have never create an AGI Thanks Asterisk ami/agi - not able to answer call
-3
votes
2 answers

Outgoing call while incoming call waits before connection

A call (A) arrives on Asterisk. It is picked up by our dialplan and routed to the php file whose mission is to manage the call. The call is put on hold with the MusicOnHold function. So far it's ok. The objective is during this wait, to make an…
BenC
  • 3
  • 2
1 2 3
13
14