mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
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;
|
||||
mState = LinphoneEnums::fromLinphone(call->getState());
|
||||
mRemoteAddress = Utils::coreStringToAppString(call->getRemoteAddress()->asStringUriOnly());
|
||||
mRemoteUsername = Utils::coreStringToAppString(call->getRemoteAddress()->getUsername());
|
||||
auto linphoneFriend = ToolModel::findFriendByAddress(mRemoteAddress);
|
||||
if (linphoneFriend)
|
||||
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 mRemoteName;
|
||||
QString mRemoteUsername;
|
||||
QString mRemoteAddress;
|
||||
QString mLocalAddress;
|
||||
bool mTokenVerified = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue