cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
654
Views
1
Helpful
3
Replies

InvalidStateException for working device

ashish.nijai
Level 1
Level 1

I am developing JTAPI application for making call using super provider.

I am using a device to call which is in good state. I can create terminal with provider.createTerminal().

When i tried to make call using JTAPI application from that device, it gives me InvalidStateException  with device state =4

The device is in good state and can dial calls manually. It also registered as JTAPI device.

Still it shows InvalidStateException whenever I try to dial programmatically.

Help please.

1 Accepted Solution

Accepted Solutions

mpotluri
Level 5
Level 5

Ashish,

  Did you add call observer on the address or terminal before making a call? Application should add observer and call observer on the address/terminal, wait till a inService event is received and then do call features.

View solution in original post

3 Replies 3

mpotluri
Level 5
Level 5

Ashish,

  Did you add call observer on the address or terminal before making a call? Application should add observer and call observer on the address/terminal, wait till a inService event is received and then do call features.


Why it is mandatory to add observer?

Any reason for it?

Please specify

Yes. Application should have call observer before calling any feature API. Adding call observer will open the signaling needed to   create the correct JTAPI call model.