Questions tagged [phpagi]

phpagi is a set of PHP classes for use in developing applications with the Asterisk Gateway Interface.

9 questions
1
vote
3 answers

$agi->get_data causes php script to return immediately

when test.php script runs from asterisk dial plan everything works fine until execution reaches $agi->get_data('xxx', 1000, 1); statement. asterisk cli shows this log: AGI Script test.php completed, returning 0 and script finish its execution…
DAkbariSE
  • 151
  • 1
  • 13
1
vote
1 answer

How to use $agi->get_data with multiple audio files

In Playback, Background, Read we can combine audio files with &, like file1&file2. In PHPAgi instead of Read, I use $agi->get_data, but its look like accept only one file! I also tried to play audio with Background before calling get_data: …
MeTe-30
  • 2,512
  • 2
  • 21
  • 30
0
votes
1 answer

Play caller a radio stream with asterisk

I using asterisk with php scripts that use php-agi. What I need to do is to play the caller a radio stream, the stream is coming from dynamic url (It can be changed by the owner of the line). I try MOH (not so good). I try to use MP3Player…
0
votes
1 answer

$agi->get_data suddenly stop with result of "D"

In PHPAGI for reading digit from user i'm using $agi->get_data $rawInput = $agi->get_data($audio, 5000, 1); $input = $rawInput['result']; Some users didn't hit any key, but after 2-3 seconds audio playback immediately stops and…
MeTe-30
  • 2,512
  • 2
  • 21
  • 30
0
votes
1 answer

How to add event listener to call hangup PHP AGI?

I am working on a project that records how long a caller is on the line. My question is, how do you add an event listener for hangup with AMI or AGI? Currently, I am trying to use AGI's Manager class however the event is not firing when the call…
Marcello B.
  • 4,177
  • 11
  • 45
  • 65
0
votes
1 answer

add pin conformation for outgoing call in asterisk 13

i want to add pin conformation for outgoing call in asterisk 13 before i implement this dial plan with asterisk 11. now i try it with asterisk 13. asterisk 13 in call always hangup /etc/asterisk/extensions_custom.conf [from-outgoinpin] exten =>…
0
votes
2 answers

Asterisk, Ignore DTMF special characters in GET DATA

I'm using phpagi $agi->get_data to read digit from user. In some telephones, user didn't hit any key, but audio playback immediately stops and get result of "D" !! I searched a lot about it, and looks like $agi-get_dat receives DTMF data that…
MeTe-30
  • 2,512
  • 2
  • 21
  • 30
0
votes
1 answer

how to pass values from extensions to AGI script and use that values in script

extension to call php_agi exten => 8380,n,AGI(php_falup.agi,${MSISDN},${var}) php_agiscript to grep values request[agi_arg_1,agi_arg_2]; I am…
-1
votes
2 answers

Why is text2wav not working in phpagi demo

I'm just trying to run demo in PHPAGI folder available here: https://sourceforge.net/projects/phpagi/files/phpagi/2.20/ However, the text2wav is not working. When the script has to run text2wav (in dtmf.php for example), this error show: …
Florian
  • 1
  • 3