This sounds so very wrong on many levels.
- JSP doing something else but displaying data: horrible application design.
- J2EE accessing telephony hardware: I guess it's not specified and not portable. But look at the Telephony API (JTAPI)
- invoking a modem on a server: shouldn't the server already be connected to the network?