cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
800
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: COM CENTRO DE OPERACION Y MANTENIMIENTO on 24-08-2010 12:19:41 PM
Hi all,
 
I want to drop a stablished call. I use disconnect() method,
  
 TerminalConnection tc = (CallCtlTermConnTalkingEv)curEv).getTerminalConnection ()
 tc.getConnection().disconect
 
but I obtain this exception:
 
com.cisco.jtapi.InvalidStateExceptionImpl: Did not meet pre-conditions.
 
What it is wrong?
 
Thanks in advance


 

Subject: RE: InvalidStateExceptionImpl
Replied by: Mohan Potluri on 24-08-2010 05:53:45 PM
((this.getCall()).getProvider()).getState() == Provider.IN_SERVICE

this.getState() == Connection.CONNECTED or Connection.ALERTING
or Connection.INPROGRESS or Connection.FAILED

 
are the pre-conditions.  You will also see this exception if the connection.getAddess().getObservers() return null. Applications cannot drop the call using disconnect on a connection for address not in control list. Check if the corresponding address is configured in application control list. If it is not in control list, try the API on a connection to address in control list.
 
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links