try to fix display name after call transfer (take the call log address instead of the call address)
(may be a mitel server problem)
This commit is contained in:
parent
c8b65fb5b2
commit
e0e3838ccf
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ CallHistoryCore::CallHistoryCore(const std::shared_ptr<linphone::CallLog> &callL
|
||||||
mDisplayName = Utils::coreStringToAppString(confinfo->getSubject());
|
mDisplayName = Utils::coreStringToAppString(confinfo->getSubject());
|
||||||
} else {
|
} else {
|
||||||
mRemoteAddress = Utils::coreStringToAppString(addr->asStringUriOnly());
|
mRemoteAddress = Utils::coreStringToAppString(addr->asStringUriOnly());
|
||||||
auto linphoneFriend = ToolModel::findFriendByAddress(mRemoteAddress);
|
auto linphoneFriend = ToolModel::findFriendByAddress(addr);
|
||||||
if (linphoneFriend) {
|
if (linphoneFriend) {
|
||||||
mFriendModel = Utils::makeQObject_ptr<FriendModel>(linphoneFriend);
|
mFriendModel = Utils::makeQObject_ptr<FriendModel>(linphoneFriend);
|
||||||
mDisplayName = mFriendModel->getFullName();
|
mDisplayName = mFriendModel->getFullName();
|
||||||
|
|
|
||||||
|
|
@ -117,11 +117,11 @@ CallCore::CallCore(const std::shared_ptr<linphone::Call> &call) : QObject(nullpt
|
||||||
mRemoteVideoEnabled =
|
mRemoteVideoEnabled =
|
||||||
videoDirection == linphone::MediaDirection::SendOnly || videoDirection == linphone::MediaDirection::SendRecv;
|
videoDirection == linphone::MediaDirection::SendOnly || videoDirection == linphone::MediaDirection::SendRecv;
|
||||||
mState = LinphoneEnums::fromLinphone(call->getState());
|
mState = LinphoneEnums::fromLinphone(call->getState());
|
||||||
auto remoteAddress = call->getRemoteAddress()->clone();
|
auto remoteAddress = call->getCallLog()->getRemoteAddress()->clone();
|
||||||
remoteAddress->clean();
|
remoteAddress->clean();
|
||||||
mRemoteAddress = Utils::coreStringToAppString(remoteAddress->asStringUriOnly());
|
mRemoteAddress = Utils::coreStringToAppString(remoteAddress->asStringUriOnly());
|
||||||
mRemoteUsername = Utils::coreStringToAppString(remoteAddress->getUsername());
|
mRemoteUsername = Utils::coreStringToAppString(remoteAddress->getUsername());
|
||||||
auto linphoneFriend = ToolModel::findFriendByAddress(mRemoteAddress);
|
auto linphoneFriend = ToolModel::findFriendByAddress(remoteAddress);
|
||||||
if (linphoneFriend)
|
if (linphoneFriend)
|
||||||
mRemoteName = Utils::coreStringToAppString(
|
mRemoteName = Utils::coreStringToAppString(
|
||||||
linphoneFriend->getVcard() ? linphoneFriend->getVcard()->getFullName() : linphoneFriend->getName());
|
linphoneFriend->getVcard() ? linphoneFriend->getVcard()->getFullName() : linphoneFriend->getName());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue