| |

VerySource

 Forgot password?
 Register
Search
View: 681|Reply: 1

How to use CallControlCall.transfer () in jtapi

[Copy link]

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-3 14:40:01
| Show all posts |Read mode
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. . . .
Reply

Use magic Report

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-1-3 14:42:01
| Show all posts
NUMBER = 8009
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list