I once heard that somebody made an answering machine program with java, hooked it up to thier modem and had a free digital answering machine with unlimited record time, and many more functions than any stand-alone machine on the market. Has anybody ever heard of this, is the code posted online for it, is it even possible? If this is possible, and not to complicated, I am thinking of doing it myself (provided that it isnt already out there for free). And if I do do it myself anybody out there wana help me with it (I dont know if I could do it on my own)/ have any good ideas to implement/ kinda do an open source thing with it? Any comments or help greatly appreciated.-Dan
I have not done much of the work the JTAPI but i am sure that your problem can be easily solved using this. Actually i have made the same project using Visual Project and i want to remake it in Java with added features. But I am not doing this currenly cause java is open source and i can make the project commercialise.
Thanks guys, -James I followed that linked and searched around and found an answering machine program already written, but I don't fully understand it. The things I would like to know are: 1)How many rings (if any) before it picks up?) 2)How does it know what modem to use (does it auto-detect)? 3)I don't understand the controling for loop with int i.
I know you didn't write this yourself, but maybe you can understand and explain it to me better, thanks for the help -Dan
I'll give your questions a shot (disclaimer, I am by no means a jtapi expert )
1) Hard to say, certainly no indications from the code, but if I were to take a guess, it looks like it picks up immediately (maybe if you dig deeper, there is a props file or attribute you can set somewhere to determine how many rinsgs before a pick up)
2) I would assume some sort of autodetection, kind of like the java.net.* classes, they seem to autodetect your NIC.
3) Looks like the entity Terminal can fire a whole bunch of telephony related events. The class MachineCallObserver is doing something sensible with these events, and in the for loop, it's just determining which type of event to act on, be it: "answer phone", "start playing recorded greeting", "record message" etc.
Hey that was it, thanks so much! but now I have a different problem. It has to do with the packages and importing them. I really don't know how that works too well (I know that I really should though) and need help with that. When I try to compile, it says "package does not exist" How do I get it to find those packages and get my code to compile?