|
Call call[] = provider.getCalls();
for (int i = 0; i < call.length; i++){
ccc = (CallControlCall) call[i];
if (ccc.getState() == Call.ACTIVE){
Address addr = ccc.getCallingAddress();
println("地址:"+addr.getName());
ccc.transfer(number);
println("没出错:");
}
}
8002 打给8008
操作上让8008 转给8009
但一直报
调用转移方法异常:java.lang.NullPointerException
调用转移方法异常详细输出
java.lang.NullPointerException
at com.cisco.jtapi.CallImpl.transfer(com/cisco/jtapi/CallImpl)
at jts.ObServer.transfer(ObServer.java:331)
at jts.ListenClientLink.run(JtSocketServer.java:222)
at java.lang.Thread.run(Unknown Source)
调用转移方法异常输出结束
错误。。。。
|
|