0

I have a problem when I end the outgoing call, in the other side still ringing, I'm using this code to End the Call:

public void EndBtn(View view) {
    try {
        call.endCall();
    } catch (SipException se) {
    }
    call.close();
}

I'm using SIP protocol to develop my application, How can I end the ringing from the other side?

Rohit5k2
  • 17,948
  • 8
  • 45
  • 57
Ako
  • 1
  • 1

1 Answers1

0

If you using pjsua (pjsip sample application) then call should be disconnected by this code..

        CallOpParam prm = new CallOpParam();
        prm.setStatusCode(pjsip_status_code.PJSIP_SC_DECLINE);
        try {
            Call.hangup(prm);
        } catch (Exception e) {
            System.out.println(e);
        }
riaz hasan
  • 1,155
  • 2
  • 8
  • 20