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.