Posted: Sun Jan 02, 2005 8:43 am Post subject: [Asterisk-bsd] Streaming files with AGI
I whipped up a quick AGI script to begin implementing *69-like services.
Whenever it starts playing audio files, it will randomly hangup with
the following message on the console:
file.c:1065 ast_waitstream_full: Wait failed (No such file or directory)
I can play messages using the Playback() and Background() applications
in the dial plan fine, but not using AGI's STREAM FILE. Any ideas? I'm
running FreeBSD 5.2.1 (GENERIC).
conf2.agi looks up the number of folks in the conference, and sets $USERS.
Then SayDigits handles the rest.
PS: I also had irregular results reading agi_extension and agi_dnid , so I
instead opted to pass $EXTEN as an arg of conf2.agi .
--Ben
On Sun, 2 Jan 2005, Aaron J. Angel wrote:
Quote:
I whipped up a quick AGI script to begin implementing *69-like services.
Whenever it starts playing audio files, it will randomly hangup with
the following message on the console:
=20
file.c:1065 ast_waitstream_full: Wait failed (No such file or directory)
=20
I can play messages using the Playback() and Background() applications
in the dial plan fine, but not using AGI's STREAM FILE. Any ideas? I'm
running FreeBSD 5.2.1 (GENERIC).
=20
--=20
Aaron J. Angel <thatoneguy@aaronjangel.us>
Web: www.aaronjangel.us
=20
=D7=99=D7=A8=D7=95=D7=A9=D7=9C=D7=9D =D7=94=D7=A8=D7=99=D7=9D =D7=A1=D7=
=91=D7=99=D7=91 =D7=9C=D7=94 =D7=95=D7=99=D7=94=D7=95=D7=94 =D7=A1=D7=91=D7=
Well that's a kludge. It still doesn't solve the problem that it
sometimes fails when I'm attempting to STREAM FILE, so using SayDigits
isn't going to help me. Not to mention I have more to do after
streaming the files, and I'd rather not write some sort of two-part
script when the script should be able to handle the whole thing (isn't
this supposed to be "advanced"?) I suppose I could try using EXECUTE...
Posted: Sun Jan 02, 2005 2:00 pm Post subject: [Asterisk-bsd] Streaming files with AGI
On Sun, Jan 02, 2005 at 03:56:36PM -0600, Aaron J. Angel wrote:
Quote:
Ben Kirkpatrick wrote:
> I saw this on FreeBSD5.2.1/UltraSparc with Asterisk1.0.2 as well.
>The quick fix was to pass your variables out of the shell.
>
> I wanted to say the number of people in a Conference before entering:
>
>exten => _49..,7,AGI(conf2.agi,${EXTEN})
>exten => _49..,8,SayDigits(${USERS})
Well that's a kludge. It still doesn't solve the problem that it
sometimes fails when I'm attempting to STREAM FILE, so using SayDigits
isn't going to help me. Not to mention I have more to do after
streaming the files, and I'd rather not write some sort of two-part
script when the script should be able to handle the whole thing (isn't
this supposed to be "advanced"?) I suppose I could try using EXECUTE...
Posted: Sun Jan 02, 2005 2:37 pm Post subject: [Asterisk-bsd] Streaming files with AGI
Jolan Luff wrote:
Quote:
On Sun, Jan 02, 2005 at 03:56:36PM -0600, Aaron J. Angel wrote:
>Well that's a kludge. It still doesn't solve the problem that it
>sometimes fails when I'm attempting to STREAM FILE, so using SayDigits
>isn't going to help me. Not to mention I have more to do after
>streaming the files, and I'd rather not write some sort of two-part
>script when the script should be able to handle the whole thing (isn't
>this supposed to be "advanced"?) I suppose I could try using EXECUTE...
the stream file / saydigits bug is fixed in CVS.
Is there a bug id for it? I couldn't find anything on bugs.digium.com.
And when was it fixed? I'm running a recently checkout of the asterisk
sources (a day old perhaps?).
Posted: Sun Jan 02, 2005 9:48 pm Post subject: [Asterisk-bsd] Streaming files with AGI
On 03/01/2005 00:43 Aaron J. Angel said the following:
Quote:
I whipped up a quick AGI script to begin implementing *69-like services.
Whenever it starts playing audio files, it will randomly hangup with
the following message on the console:
file.c:1065 ast_waitstream_full: Wait failed (No such file or directory)
I can play messages using the Playback() and Background() applications
in the dial plan fine, but not using AGI's STREAM FILE. Any ideas? I'm
running FreeBSD 5.2.1 (GENERIC).
try the following attached patch to see if it fixes this. this patch only
fixes it for the english language version of the function. search the list
archives for another patch of mine which fixes it for all versions.
--
Regards, /\_/\ "All dogs go to heaven."
dinesh@alphaque.com (0 0) http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do |
| for b in clients employers associates relatives neighbours pets; do |
| echo "The opinions here in no way reflect the opinions of my $a $b." |
| done; done |
+=========================================================================+
-------------- next part --------------
--- say.c.orig Wed Sep 29 17:01:53 2004
+++ say.c Wed Sep 29 16:55:15 2004
@@ -579,7 +579,7 @@
}
if (!res) {
if(!ast_streamfile(chan, fn, language)) {
- if (audiofd && ctrlfd)
+ if (audiofd>-1 && ctrlfd>-1)
res = ast_waitstream_full(chan, ints, audiofd, ctrlfd);
else
res = ast_waitstream(chan, ints);
Posted: Mon Jan 03, 2005 5:11 am Post subject: [Asterisk-bsd] Streaming files with AGI
Dinesh Nair wrote:
Quote:
On 03/01/2005 00:43 Aaron J. Angel said the following:
> file.c:1065 ast_waitstream_full: Wait failed (No such file or directory)
>
try the following attached patch to see if it fixes this. this patch
only fixes it for the english language version of the function. search
the list archives for another patch of mine which fixes it for all
versions.
This patch wasn't necessary; it was already in CVS when I checked it
out. I suppose whatever was fixed was recent enough because I checked
it out a day later and the problem's gone now.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum