Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

CallForwardAll through jtapi

Hi,

Can someone show me how to do that, I am new to jtapi.

I tried this but fails

CallControlAddress.setForwarding("1234",CallControlForwarding.ALL_CALLS);

any example would be appreciated

2 REPLIES

Re: CallForwardAll through jtapi

Did you check the JTAPI Documentation?

The syntax is CallControlAddress.setForwarding(CallControlForwarding[])

you always need the array of CallControlForwarding objects.

On top of that, and that's not documented anywhere so I suspect Cisco's JTAPI is at fault.. you need to have a CallControlObserver on the terminal to properly work with forwards. I'm not a 100% sure anymore whether that applies to setting the forward, but it definitely does apply to finding out if a device is already forwarded. If you don't have the CallControlObserver (or perhaps a CallObserver would be enough but I haven't tried), even though you don't do anything with the CallEvs, if you do a CallControlAddress.getForwarding, you'll get nothing even though the address is redirected.

Re: CallForwardAll through jtapi

Hi Stephan,

Yes I did, but wasn't clear enough to me.

I tried this;

CallControlForwarding[] cfa = new CallControlForwarding[] {"1234",ALL_CALLS};

CallControlAddress.setForwarding(cfa);

but it doesn't compile.

Do you want to share some example code?

thanks a lot

237
Views
0
Helpful
2
Replies
CreatePlease login to create content