[Asterisk-Users] $AGI->stream_file
Victor Cartes
vcartes-ast at conexion.com.py
Tue Nov 2 08:08:19 MST 2004
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" <mister.roy at gmail.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
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
> <vcartes-ast at conexion.com.py> 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
> 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