|
@@ -63,20 +63,24 @@ namespace {
|
|
EASYUICONTEXT->openActivity("callActivity");
|
|
EASYUICONTEXT->openActivity("callActivity");
|
|
CloseUi();
|
|
CloseUi();
|
|
}
|
|
}
|
|
- else {
|
|
|
|
|
|
+
|
|
|
|
+ voip::CallInfo info = GetTelephone()->GetCallInfo();
|
|
|
|
+ LOGD("info.id == %d", info.id);
|
|
|
|
+ LOGD("info.remote_uri == %s", info.remote_uri.c_str());
|
|
|
|
+ LOGD("info.remote_contact == %s", info.remote_contact.c_str());
|
|
|
|
+
|
|
|
|
+ string sipId = info.remote_uri.substr(info.remote_uri.find(":") + 1, info.remote_uri.find("@") - info.remote_uri.find(":") - 1);
|
|
|
|
+ LOGD("sipId == %s", sipId.c_str());
|
|
|
|
+ if (sipId != "0000000000") {
|
|
const char* currentAppName = EASYUICONTEXT->currentAppName();
|
|
const char* currentAppName = EASYUICONTEXT->currentAppName();
|
|
string _currentAppName = currentAppName;
|
|
string _currentAppName = currentAppName;
|
|
if (_currentAppName != "callActivity") {
|
|
if (_currentAppName != "callActivity") {
|
|
telephone->Hangup();
|
|
telephone->Hangup();
|
|
- LOGD("=================> bu zai tong hua jie mian, zhi jie gua duan!");
|
|
|
|
|
|
+ LOGD("=================> 不在通话界面,直接挂断!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- voip::CallInfo info = GetTelephone()->GetCallInfo();
|
|
|
|
- LOGD("info.id == %d", info.id);
|
|
|
|
- LOGD("info.remote_uri == %s", info.remote_uri.c_str());
|
|
|
|
- LOGD("info.remote_contact == %s", info.remote_contact.c_str());
|
|
|
|
|
|
|
|
if (state == voip::STATE_CALL_INCOMING) {
|
|
if (state == voip::STATE_CALL_INCOMING) {
|
|
if (telephone->GetCallCount() > 1) {
|
|
if (telephone->GetCallCount() > 1) {
|