Search LDAP contact using only username of SIP address in call context
This commit is contained in:
parent
e1d91a4b7a
commit
0d62e2aa2b
2 changed files with 3 additions and 1 deletions
|
|
@ -125,6 +125,7 @@ CallCore::CallCore(const std::shared_ptr<linphone::Call> &call) : QObject(nullpt
|
||||||
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());
|
||||||
mRemoteAddress = Utils::coreStringToAppString(call->getRemoteAddress()->asStringUriOnly());
|
mRemoteAddress = Utils::coreStringToAppString(call->getRemoteAddress()->asStringUriOnly());
|
||||||
|
mRemoteUsername = Utils::coreStringToAppString(call->getRemoteAddress()->getUsername());
|
||||||
auto linphoneFriend = ToolModel::findFriendByAddress(mRemoteAddress);
|
auto linphoneFriend = ToolModel::findFriendByAddress(mRemoteAddress);
|
||||||
if (linphoneFriend)
|
if (linphoneFriend)
|
||||||
mRemoteName = Utils::coreStringToAppString(
|
mRemoteName = Utils::coreStringToAppString(
|
||||||
|
|
@ -844,5 +845,5 @@ void CallCore::findRemoteLdapFriend(QSharedPointer<CallCore> me) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mLdapMagicSearchModel->search(mRemoteAddress);
|
mLdapMagicSearchModel->search(mRemoteUsername);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -332,6 +332,7 @@ private:
|
||||||
|
|
||||||
QString mLastErrorMessage;
|
QString mLastErrorMessage;
|
||||||
QString mRemoteName;
|
QString mRemoteName;
|
||||||
|
QString mRemoteUsername;
|
||||||
QString mRemoteAddress;
|
QString mRemoteAddress;
|
||||||
QString mLocalAddress;
|
QString mLocalAddress;
|
||||||
bool mTokenVerified = false;
|
bool mTokenVerified = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue