Re: How can I check if a prompt file exists?
David Sugar <[email protected]>
| Newsgroups | gmane.comp.gnu.bayonne.devel |
|---|---|
| Organization | GNU Telephony |
| Message-ID | <[email protected]> |
I should add the -file (and -dir) checks only test for files and directories in the "var" filepath, and NOT in the voice library. Hence you really should have a /var/lib/bayonne/doctors/drxx.au and then do a test for -file doctors/drxx.au [email protected] wrote: > Hi everyone. Is there any function in ccScript that lets me check for the > existence of an audio file? > I want my code to do something like this: > > if FileExists("dr34.au") # file contains the name of doctor n° 34. > then > play TheNameOfTheDoctorIs.au > play dr34.au > else > play DoctorDoesntExist.au > endif > > Thank you all > Roberto from Mendoza, Argentina > > > > _______________________________________________ > Bayonne-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bayonne-devel > _______________________________________________ Bayonne-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bayonne-devel
dyfet.vcf
(text/x-vcard, 187 B)
begin:vcard fn:David Sugar n:Sugar;David org:GNU Telephony adr:;;;;;;USA email;internet:[email protected] x-mozilla-html:FALSE url:http://www.gnutelephony.org version:2.1 end:vcard