Q. We are using cisco jtapi api, while calling a invalid number i am getting the following exception,
com.cisco.jtapi.PlatformExceptionImpl: Could not meet post conditions of connect()
I am failing to figure out on which event this above exception is thrown,
Could any one help us with the chain of events, which can be obsered so that we can conclude that the phone number given is valid or invalid.
A. The error code in the exception could give more info on the cause of failure. The following code could be used. The list of error codes should be in JTAPI developer guide.
// your code
catch ( Exception e )
if (e instanceof CiscoJtapiException)
CiscoJtapiException ce = (CiscoJtapiException) e;
int errorCode = ce.getErrorCode(); // returns the ErrorCode
When a call fails typically a connection goes into failed state and call observer would receive a ConnFailedEv. You can get more info about the failure using ((CiscoCallEv)ev).getCiscoCause().