[Asterisk-Users] AGI - No audio
Jason Penton
j.penton at ru.ac.za
Tue Jul 6 23:49:19 MST 2004
Try using $AGI->stream_file("filename")
There are built-in AGI commands - you don't have to use exec for all
commands.
Hope this helps
Jason
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of
> Bruce Marler
> Sent: 07 July 2004 08:43 AM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] AGI - No audio
>
> 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");
>
> ....
> }
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
More information about the asterisk-users
mailing list