|
Call call [] = provider.getCalls ();
Ranch
Ranch
for (int i = 0; i <call.length; i ++) {
Ranch
ccc = (CallControlCall) call [i];
Ranch
Ranch
if (ccc.getState () == Call.ACTIVE) {
Ranch
Address addr = ccc.getCallingAddress ();
Ranch
println ("Address:" + addr.getName ());
Ranch
ccc.transfer (number);
Ranch
println ("No error:");
Ranch
}
Ranch
Ranch
}
8002 call 8008
Operate 8008 to 8009
But keep reporting
Call transfer method exception: java.lang.NullPointerException
Call transfer method exception verbose output
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)
Call to transfer method ends abnormally
error. . . . |
|