Questions tagged [fastagi]
24 questions
3
votes
3 answers
How can I load balance FastAGI?
I am writing multiple AGIs using Perl that will be called from the Asterisk dialplan. I expect to receive numerous similtaneous calls so I need a way to load balance them. I have been advised to use FastAGI instead of AGI. The problem is that my…
Sara Ibn El Ahrache
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
Twisted / Starpy FastAgi app only handling one call properly
I am developing a FastAgi application for an Asterisk IVR implementation using Starpy and Twisted. So far, the application runs pretty well when it only has one phone call.
After a second call is established, all the successive responses from…

Hector R
- 23
- 5
1
vote
2 answers
verify phone number php asterisk
I want to make it so when a customer is signing up on my website that next to the phone number field, there is a "verify" button, where once clicked a random string of digits is created, say 5 digits long, and one the verify button is clicked a…

bbbry
- 11
- 2
1
vote
1 answer
Issue with FastAGI's get_data function always returning 1 instantly
So I've implemented fastagi however I'm having an issue with the get_data function to play an audio file, receive DTMF from the end user and have that returned. The issue I'm having is that everything seems to kick-off ok, but the audio file is not…

Christopher Dias
- 19
- 3
1
vote
1 answer
How to Convert existing Asterisk AGI scripts to FASTAGI script
I have an Asterisk server working perfectly fine in a payment environment. Now, there is need for me to separate the business logics from the Asterisk Server for efficiency, and protecting the AGI scripts for obvious reasons.
The question is, how do…

CEDOC
- 21
- 1
- 5
1
vote
1 answer
Asterisk AGI streamFile issue
I am using asterisk-java to integrate Asterisk with my AGI.
I want to know while using streamFile(filename) command is it necessary that the file lies in asterisk sound system.Cant it be in my java source folder?/src/resource/filename
I am creating…

Atul
- 81
- 1
- 9
0
votes
1 answer
asterisk fastagi pyst2 python3
I'm making a fastagi app with python3 and pyst2 library. The code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-
######################################################
import asterisk, sys
import asterisk.agi
import asterisk.manager
import…

Angel
- 1
- 1
0
votes
1 answer
What is the Asterisk Dial() Option to Call Subroutine on "Ringing" Status Received from Called Party?
I need to execute AGI scripts when following events occur:
An incoming call (it is simple just call AGI() function).
When a call is "Ringing" (I cannot figure it out!). <-- Problem, how to do this?
When a call is "Answered" (I do it using…

Chitholian
- 432
- 1
- 10
- 19
0
votes
1 answer
Asterisk-Java Unable to load Properties file
I'm developing a very simple Asterisk-Java IVR based program that greets the caller, retrieves some information from a web service, reads up the retrieved data to the caller, and finally hangs up.
What steps I followed:
Added the following line is…

Felipe La Rotta
- 343
- 3
- 13
0
votes
1 answer
Is it possible create php callback on ready input stram?
I have asterisk fast AGI application that loops in some scenario. Difference is that local launched AGI scripts asterisk drops if channel hangup.
In case of network AGI, if channel hangs, the agi script proceeding work and channel loops in wait of…

Sergey
- 81
- 9
0
votes
1 answer
How should AGI handle a HangupRequest
We recently upgraded our version of asterisk from version 1.4.26.1 -> 13.23.1. And of the changes that we noticed was that after the AMI has closed its connection it used to respond to the AGI with a "Hangup" and then closes the tcp connection. This…

John Jackson
- 23
- 7
0
votes
2 answers
run .jar file asterisk-java
I created a project wich plays simple ivr prompt, then compiled it and made a jar file. but I don't know how to run it.
I tried alternative way: placed .class files in usr/services/simpleProject/classes path and mapped it correctly then it works.…

LeXuS
- 19
- 2
- 8
0
votes
1 answer
Asterisk with FastAgi + Remote PC (Windows) PHP file
I am a newbie to asterisk and found it really interesting! I've been able to create a dial plan that works perfect, but, I am stuck on working with FastAgi. I want asterisk to run my PHP script that is placed on my windows server remote machine. I…

Fazz
- 11
- 5
0
votes
2 answers
Send Sip Message through fastagi asterisk
I am able to relay messages using dialplan. This command sends the message but I cant seem to run it using fastagi(java)
DialPlan
exten => _X.,n,MessageSend(${ACTUALTO},${MESSAGE(from)})
FastAgi
public void service(AgiRequest ar, AgiChannel ac)…

Arslan Mehboob
- 1,012
- 1
- 9
- 21