cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1834
Views
0
Helpful
1
Replies

Call Hang up/Drop Not working

PVYAPA
Level 1
Level 1

Hello All,  Below is my scenario

  1.   Extension A is observed 
  2.   Caller calls from PSTN to Extension A
  3.   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);
                                                }
1 Reply 1

upchaurasia
Spotlight
Spotlight

If I remember correctly then to disconnect the call you need to get Connection object from call. On that connection try calling disconnect() method.

 

Regards,

Umesh

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: