|
@@ -365,6 +365,14 @@ static void onUI_quit() {
|
|
|
|
|
|
CallingStatus::instance()->setBusy(false);
|
|
|
CallingStatus::instance()->clearTcpModel();
|
|
|
+
|
|
|
+ voip::CallInfo info = GetTelephone()->GetCallInfo();
|
|
|
+ if (info.state == voip::STATE_CALL_CALLING
|
|
|
+ || info.state == voip::STATE_CALL_CALLING
|
|
|
+ || info.state == voip::STATE_CALL_CONFIRMED){
|
|
|
+ GetTelephone()->Hangup(info.id, voip::SIP_STATUS_CODE_DECLINE);
|
|
|
+ GetTelephone()->Hangup();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
EASYUICONTEXT->showStatusBar();
|