Hello All, Below is my scenario
- Extension A is observed
- Caller calls from PSTN to Extension A
- Extension A rings and A Rejects the call.
I am using call.drop() to reject the call. When I invoke this, the call seems to disconnect and then ring all over again. Need to Invoke the drop method couple of times to actually disconnect the call.
However the same drop method works in first attempt, if I call Extension A from Extension B which is also under same provider.
Also, tried call drop and disconnect methods from JTAPI test client as well and the behavior is the same. which is get a call -> rings (with callid 1) -> drop() ->seems to disconnect ->Rings again (This time with callid 2)
Is there some other way this needs to be tackled? below is my code
Terminal userTerminal = init.getProvider().getTerminal(terminal);
Call call = TerminalUtilities.getCallWithId(userTerminal, callId);
if (call != null) {
CiscoCall callImpl = (CiscoCall) call;
callImpl.drop();
LOG.info("{} dropCall - Dropped call : {} ", extnTermLogStr, callId);
}