Skip to content
Snippets Groups Projects
Commit 6c25a1e0 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#17013: Allow hanging up call in state HOLD

parent de820078
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,8 @@ public class CallActivity extends Activity implements OnClickListener
break;
case R.id.buttonhangup:
if((mCall.getCallStateInt() == SipCall.CALL_STATE_NONE) ||
(mCall.getCallStateInt() == SipCall.CALL_STATE_CURRENT)) {
(mCall.getCallStateInt() == SipCall.CALL_STATE_CURRENT) ||
(mCall.getCallStateInt() == SipCall.CALL_STATE_HOLD)) {
mCall.notifyServiceHangup(service);
finish();
}
......@@ -140,13 +141,11 @@ public class CallActivity extends Activity implements OnClickListener
}
break;
case R.id.buttonhold:
Log.i(TAG, "HOLDBUTTONCLICK call state " + mCall.getCallStateString());
if(mCall.getCallStateInt() == SipCall.CALL_STATE_CURRENT) {
mCall.notifyServiceHold(service);
}
break;
case R.id.buttonunhold:
Log.i(TAG, "UNHOLDBUTTONCLICK call state " + mCall.getCallStateString());
if(mCall.getCallStateInt() == SipCall.CALL_STATE_HOLD) {
mCall.notifyServiceUnhold(service);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment