[Asterisk-Users] AGI - No audio
Bruce Marler
bmarler at newwaycommunications.com
Tue Jul 6 23:43:09 MST 2004
All,
I am currently working with the AGI interface using PHP, I have it working
to execute commands that do not require prompts to be played, but when I
execute an AGI command to play a prompt or stream a prompt all i get is
silence (although I can see in the log where it says the correct name for
the prompt to be played).
I have looked through the wiki and googled extensively, so if something is
out there i obviously searched incorrectly....
Here is a sample script (although with much of the meat cut out that is not
relevant to the issue). Please advise if something is missing or if this is
a known issue and I need to do something different.
Just some notes on the config, I am using CVS load from 06/04/2004 and have
the same problem whether it be from a SIP call or Zap call. I also have a
Digium 1 T1 card running PRI.
Here is sample code, this happens with or without the php agi module:
#!/usr/bin/php -q
<?php
require "phpagi.php";
$agi = new AGI();
$agi->agi_exec("ANSWER");
.......
$MODERATORSTATUS=$agi->agi_exec("DATABASE GET 1000 Moderator");
-----> Here is where it breaks, does not play prompt
$FIRSTCONFCODE=$agi->agi_exec("GET DATA $CONFPROMPT 3000 60");
$ACTUALCONFCODE = $agi->arr2str($FIRSTCONFCODE);
.......
-----> Once again breaks here, does not play prompt
$agi->agi_exec("STREAM FILE therearecurrently");
$agi->agi_exec("EXEC MEETMECOUNT 1000");
$agi->agi_exec("STREAM FILE intheconference");
$agi->agi_exec("EXEC MEETME 1000");
....
}
More information about the asterisk-users
mailing list