[Freeswitch-users] how-to catch errors in session streamFile

Jason Moran jmoran at secureachsystems.com
Fri Jul 8 19:35:29 MSD 2011


Once in a while I pass a bad file name or some other bad thing happens
with session.streamFile. If I have the console up I can see an error
such as 

[ERR] mod_sndfile.c:194 Error Opening File [the_file_path_and_name]
[System error : No such file or directory.]

 

However, session.streamFile returns false whether it gets an error or
successfully plays the file. Is there any other way to capture success
or capture that an error happened?

 

-Jason Moran

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110708/62f60cd9/attachment.html 


More information about the FreeSWITCH-users mailing list