• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java answering machine with a modem

 
Dan Maples
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks James, you've helped me a lot!
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem, and keep us up to date on how it goes.

James.
 
Dan Maples1
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like it should be

instead of
 
Dan Maples1
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic