[Asterisk-bsd] Streaming files with AGI

Dinesh Nair dinesh at alphaque.com
Sun Jan 2 23:40:20 CST 2005



On 03/01/2005 00:43 Aaron J. Angel said the following:
> 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 at 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);


More information about the Asterisk-BSD mailing list