Skip to content
Snippets Groups Projects
Commit c6395b02 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #7264: history has to know when calls were missed

Assumes that this is the case if a call is ringing when it is
terminated.
parent 8b2f4af3
Branches
No related tags found
No related merge requests found
......@@ -194,6 +194,9 @@ std::map<std::string, std::string> Call::createHistoryEntry() const
time_str.str("");
time_str << timestamp_stop_;
result[HistoryItem::TIMESTAMP_STOP_KEY] = time_str.str();
result[HistoryItem::STATE_KEY] = getTypeStr();
if (connectionState_ == RINGING)
result[HistoryItem::STATE_KEY] = HistoryItem::MISSED_STRING;
else
result[HistoryItem::STATE_KEY] = getTypeStr();
return result;
}
......@@ -174,10 +174,6 @@ class Call : public Recordable {
isIPToIP_ = IPToIP;
}
bool isIPtoIP() const {
return isIPToIP_;
}
/**
* Set my IP [not protected]
* @param ip The local IP address
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment