Experts Exchange > Programming > Prog Languages > Java > What is the java provider string for the microsoft tapi interface
What is the java provider string for the microsoft tapi interface?
Java Programming Language Question
Asked by: richardsimnett2005-06-25Solved by: RupeshBHello,
I'm writing a TAPI application, that just needs to interface the Microsoft TAPI interface, dial a number, and collect the connection status. I have most of the code written, but cannot for the life of me figure out how to bring the whole thing together for testing, because I cant seem to find any documentation on the provider string for the microsoft tapi interface.
Here is a snippet of code from my program. Can someone please tell me what the correct provider string is? Correct Answer is worth 500 points.
//initialize the JTAPI Core
//init the provider
Provider mProvider;
try
{
mProvider=Provider.createProvider("telephony:connectionstring"); //ie. SUNWxtl:/aleka.eng:400/isdn/isdn0
}
catch(Exception e)
{
}
Thanks,
RIkc
- ID: 21470963
- Topic
-
Java Programming Language
- Comments
- 8
- Collapse question
Verified Answer
by:RupeshBPosted on 2005-06-26 at 04:47:22ID: 14303279
please do the following steps
1) make sure that the os is microsoft
2) download the mstapi.zip file from the xtapi site http://xtapi.sourceforge.net/
3) unzip the file and copy the xtapi.dll file to c:\windows\system32
4) copy the mstapi.jar file to you class path may be jre/lib.ext
5) now the code goes like this
JtapiPeer peer = JtapiPeerFactory.getJtapiPeer("net.xtapi.XJtapiPeer");
/*
Provider provider =peer.getProvider("")
may also work
*/
Provider provider=peer.getProvider("MSTAPI");
Unlimited Free Access
for 30 Days
Expert Comments (8)
Expert Comment
CEHJ2005-06-26 at 02:33:20ID: 14303101
Firstly, are you certain you've *got* a provider?
Assisted Answer
CEHJ2005-06-26 at 03:03:08ID: 14303150
Secondly, if i were forced to make a guess, i'd say that Microsoft TAPI is not compatible with JTapi. This on the other hand could be of use:
http://xtapi.sourceforge.net/
Verified Answer
RupeshB2005-06-26 at 04:47:22ID: 14303279
please do the following steps
1) make sure that the os is microsoft
2) download the mstapi.zip file from the xtapi site http://xtapi.sourceforge.net/
3) unzip the file and copy the xtapi.dll file to c:\windows\system32
4) copy the mstapi.jar file to you class path may be jre/lib.ext
5) now the code goes like this
JtapiPeer peer = JtapiPeerFactory.getJtapiPeer("net.xtapi.XJtapiPeer");
/*
Provider provider =peer.getProvider("")
may also work
*/
Provider provider=peer.getProvider("MSTAPI");
Expert Comment
CEHJ2005-06-26 at 05:13:07ID: 14303339
>> please do the following steps
This is interesting. My guess as to what is going on here is as follows:
Microsoft TAPI is not compatible with JTapi. The former exposes a COM interface, which is bridged by xtapi.dll so that the latter can access the services of the former
Author Comment
richardsimnett2005-06-26 at 12:36:53ID: 14304686
CEHJ,
Yes Im sure there is a provider, all installs of windows has its own TAPI interface. In this case (for testing purposes) I simply want to interact with a voice/fax modem on the pc. I need to be able to do the following: make a call, and using the Call Control Specification determine the state of teh connection. ie... Connected:Busy, Connected: Wrong #, Connected:Active. Once I have the connection state of the call the program simply disconnects, and moves on to the next number. The program is simply a phone # verifier.
Ideally, This app (on a real telephony system) will control multiple telephone lines in this matter. But for my proofing all I need to do is make it work for one instance.
Thanks,
Rick
Expert Comment
CEHJ2005-06-26 at 12:57:34ID: 14304748
>>Yes Im sure there is a provider, all installs of windows has its own TAPI interface
Yes, you have a Windows provider, but probably not a Java one. My interpretation of the above is that xtapi provides a Java adapter to that Windows provider
Author Comment
richardsimnett2005-06-26 at 13:00:48ID: 14304757
CEHJ,
Yeah thats what I got from it too. Ill know tomorrow when I start toying with the xtapi... Im currently using jtapi 1.3, so I've got to swap it all over.
Expert Comment
objects2005-06-27 at 02:33:15ID: 14306815
sounds like it would be worth you having a look at:
http://gjtapi.sourceforge.net/
Related Questions
- How resolve a problem with JasperReports
- how to pass checkbox values to action class when user click multiple checkboxes in struts
- Samsung Kies Air says I need Java to download multiple files but I already have Java 7 update 51
- Is there a way to check if a file exists with javascript or jquery?
- Source code for a simple java programming calculator.
See More Java Programming Language Solutions
Related Articles
- Profiling Java 8 with Java Flight Recorder and Java Mission Control in Eclipse
- String concatenation in Java: syntactic sugar versus efficiency
- Customizing line separator behavior in Java
- Why trying to improve efficiency by reading Java bytecode might not be the best idea
- Improving the little things in Java code
See More Java Programming Language Articles
201501-LO-Qu-027
Related Questions
- How resolve a problem with JasperReports
- how to pass checkbox values to action class when user click multiple checkboxes in struts
- Samsung Kies Air says I need Java to download multiple files but I already have Java 7 update 51
- Is there a way to check if a file exists with javascript or jquery?
- Source code for a simple java programming calculator.
- How must the POST request in Java'a HttpURLConnection object be formulated in order to successf…
- handshake failure in Https Connection