aspose file tools*
The moose likes Java in General and the fly likes java answering machine with a modem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java answering machine with a modem" Watch "java answering machine with a modem" New topic
Author

java answering machine with a modem

Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
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


-Dan
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Sounds like a cool project.

Don't know much about that sort of thing myself, but I guess jtapi would be a place to start reading up on what you can do.

http://java.sun.com/products/jtapi/index.jsp
Sandeep Jindal
Ranch Hand

Joined: Aug 25, 2003
Posts: 180
Hello,

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.

Regards,
Sandeep Jindal
Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
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

heres what I found:
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
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.
Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
thanks James, you've helped me a lot!
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
No problem, and keep us up to date on how it goes.

James.
Dan Maples1
Greenhorn

Joined: Feb 28, 2005
Posts: 8
wow it sure has been a while since I was working on this. Anyway I compiled the code above and got the following two errors, can anybody help me with them?

Thanks -Dan
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1824

Looks like it should be

instead of


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Dan Maples1
Greenhorn

Joined: Feb 28, 2005
Posts: 8
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?
Dan Maples1
Greenhorn

Joined: Feb 28, 2005
Posts: 8
I think I got the package issue taken care of but now I get the following two errors:


Anybody know whats up here?

Thanks- Dan
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
Generally Java compiler error messages mean what they say.

means exactly that. All public classes must live in a file with a name that exactly matches the class name.


I have never seen that one but it looks like it is trying to find a .class file for TerminalConnection. Where does TerminalConnection come from?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java answering machine with a modem