mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
feat(core): add os and version into user agent
This commit is contained in:
parent
2ab177b4d7
commit
0a50f55bd6
1 changed files with 8 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue