From 0a50f55bd6f2e11fcaf635721e596f22bca2db11 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 29 Oct 2018 10:21:26 +0100 Subject: [PATCH] feat(core): add os and version into user agent --- src/components/core/CoreManager.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/core/CoreManager.cpp b/src/components/core/CoreManager.cpp index a5d022d1c..f68d6ce23 100644 --- a/src/components/core/CoreManager.cpp +++ b/src/components/core/CoreManager.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -261,8 +262,13 @@ void CoreManager::createLinphoneCore (const QString &configPath) { mCore->setVideoDisplayFilter("MSOGL"); mCore->usePreviewWindow(true); mCore->setUserAgent( - APPLICATION_NAME " Desktop", - Utils::appStringToCoreString(QCoreApplication::applicationVersion()) + Utils::appStringToCoreString( + QStringLiteral(APPLICATION_NAME" Desktop/%1 (%2, Qt %3) LinphoneCore") + .arg(QCoreApplication::applicationVersion()) + .arg(QSysInfo::prettyProductName()) + .arg(qVersion()) + ), + mCore->getVersion() ); // Force capture/display.