whitespace
2010-08-23
Hi there. This compiles without errors. This runs well without exceptions too.
package com.ext.test; import javax.telephony.JtapiPeer; import javax.telephony.JtapiPeerFactory; import javax.telephony.Provider; public class Test { public static void main(String[] args) { try { JtapiPeer peer = JtapiPeerFactory.getJtapiPeer("net.xtapi.XJtapiPeer"); Provider provider = peer.getProvider(null); provider.getTerminal("6").addCallObserver(new MyInCallObserver()); } catch (Exception excp) { excp.printStackTrace(); System.exit(0); } } }
But this does not receive any event. Line 6 is definitly the line the usb phone is connected to. Any ideas?