Thanks for your help. It works fine when I did it this way:

 $streamr = 1;
 while ($streamr == 1) {
  $streamr = $AGI->stream_file($SND_WRPASS, '0123');
  $AGI->verbose("$modid Stream Result: $streamr", 3);
 }



----- Original Message ----- From: "Brian Roy" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <[EMAIL PROTECTED]>
Sent: Friday, October 29, 2004 10:01 PM
Subject: Re: [Asterisk-Users] $AGI->stream_file



On Fri, 29 Oct 2004 16:59:56 -0400, Victor Cartes
<[EMAIL PROTECTED]> wrote:
Hello everybody!

I've got a problem here. I writing an AGI in Perl and when I used the
stream_file method It did not work. Then I realized that the next line has
no waited for the streamed file end, the program has just gone on.



Victor,

Make sure you get a good readparse of all the variables sent in first.
If you don't do this, you could get some wacky behavior.

i.e. something to the effect of....

my %stuff = $AGI->ReadParse;

That will fill the array stuff will all of the call variables.

Hope this helps,

-Chuji
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to