i'm using a Alcatel phone under Windows XP in combination with some Alcatel Softphone application. The OutCall Example is working but i've got problems with the InCall Example, because no event is detected (trying jdk 1.6 and 1.7 with jtapi 1.2).
The only things i changed are:
- setting getProvider(null)
- setting terminal to number 7
- commented out import myincallobserver
- a system.out.println at the beginning of the observer (which is never printed)
InCall.java:
importjavax.telephony.*;importjavax.telephony.events.*;//importMyInCallObserver;/**Createaproviderandmonitoraparticularterminalforanincomingcall.*/publicclassInCall{publicstaticfinalvoidmain(Stringargs[]){/**Createaproviderbyfirstobtainingthedefaultimplementationof*JTAPIandthenthedefaultproviderofthatimplementation.*/Providermyprovider=null;try{JtapiPeerpeer=JtapiPeerFactory.getJtapiPeer("net.xtapi.XJtapiPeer");myprovider=peer.getProvider(null);//myprovider=peer.getProvider("Serial");}catch(Exceptionexcp){System.out.println("Can't get Provider: "+excp.toString());System.exit(0);}/**Gettheterminalwewishtomonitorandaddacallobservertothat*Terminal.Thiswillplaceacallobserveronallcallwhichcometo*thatterminal.WeareassumingthatTerminalsarenamedaftersome*primarytelephonenumberonthem.*/try{Terminalterminal=myprovider.getAddress("7").getTerminals()[0];terminal.addCallObserver(newMyInCallObserver());}catch(Exceptionexcp){System.out.println("Can't get Terminal: "+excp.toString());System.exit(0);}}}
Hello,
i'm using a Alcatel phone under Windows XP in combination with some Alcatel Softphone application. The OutCall Example is working but i've got problems with the InCall Example, because no event is detected (trying jdk 1.6 and 1.7 with jtapi 1.2).
The only things i changed are:
- setting getProvider(null)
- setting terminal to number 7
- commented out import myincallobserver
- a system.out.println at the beginning of the observer (which is never printed)
InCall.java:
XTAPI.log is empty, mstapi.log follows
I have seen the following urls so it seems like i'm not the only one:
http://sourceforge.net/projects/xtapi/forums/forum/163596/topic/1495057
http://sourceforge.net/projects/xtapi/forums/forum/163596/topic/1049068
http://sourceforge.net/projects/xtapi/forums/forum/163596/topic/945869
I'm completely frustrated and do not know where i should look further…
Thanks in advance and best regards