Commit 0a50f55b authored by Ronan's avatar Ronan

feat(core): add os and version into user agent

parent 2ab177b4
......@@ -22,6 +22,7 @@
#include <QCoreApplication>
#include <QDir>
#include <QSysInfo>
#include <QtConcurrent>
#include <QTimer>
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment