summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-05-19 14:36:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-05-19 14:36:14 +0300
commitf3dcd4dbc572a8402dece8f77d7cfc6519faef28 (patch)
tree4cf4da0dfbe8a5fac0a4183c470965ed624a1918 /protocols
parentbd12787b1b16ea196ed5f42d4bff1a7dc3b4997a (diff)
code cleaning
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Teams/src/teams_proto.h2
-rw-r--r--protocols/Teams/src/teams_trouter.cpp14
2 files changed, 9 insertions, 7 deletions
diff --git a/protocols/Teams/src/teams_proto.h b/protocols/Teams/src/teams_proto.h
index 1ee1941f52..22e6e061b9 100644
--- a/protocols/Teams/src/teams_proto.h
+++ b/protocols/Teams/src/teams_proto.h
@@ -372,7 +372,7 @@ private:
void TRouterSendActive(bool bActive, int iReplyTo = -1);
void TRouterRegister();
- void TRouterRegister(const char *pszAppId, const char *pszKey, const char *pszPath);
+ void TRouterRegister(const char *pszAppId, const char *pszKey, const char *pszPath, const char *pszContext);
void StartTrouter();
void StopTrouter();
diff --git a/protocols/Teams/src/teams_trouter.cpp b/protocols/Teams/src/teams_trouter.cpp
index a8afa57115..2de4c6d653 100644
--- a/protocols/Teams/src/teams_trouter.cpp
+++ b/protocols/Teams/src/teams_trouter.cpp
@@ -181,18 +181,20 @@ void CTeamsProto::TRouterSendActive(bool bActive, int iReplyTo)
void CTeamsProto::TRouterRegister()
{
- TRouterRegister("NextGenCalling", "DesktopNgc_2.3:SkypeNgc", m_szTrouterSurl + "NGCallManagerWin");
- TRouterRegister("SkypeSpacesWeb", "SkypeSpacesWeb_2.3", m_szTrouterSurl + "SkypeSpacesWeb");
- TRouterRegister("TeamsCDLWebWorker", "TeamsCDLWebWorker_2.3", m_szTrouterSurl);
+ TRouterRegister("NextGenCalling", "DesktopNgc_2.3:SkypeNgc", m_szTrouterSurl + "NGCallManagerWin", nullptr);
+ TRouterRegister("SkypeSpacesWeb", "SkypeSpacesWeb_2.3", m_szTrouterSurl + "SkypeSpacesWeb", nullptr);
+ TRouterRegister("TeamsCDLWebWorker", "TeamsCDLWebWorker_2.3", m_szTrouterSurl, "");
+ TRouterRegister("TeamsCDLWebWorker", "TeamsCDLWebWorker_2.3", m_szTrouterSurl, "TFL");
}
-void CTeamsProto::TRouterRegister(const char *pszAppId, const char *pszKey, const char *pszPath)
+void CTeamsProto::TRouterRegister(const char *pszAppId, const char *pszKey, const char *pszPath, const char *pszContext)
{
JSONNode descr, reg, obj, trouter(JSON_ARRAY), transports;
descr.set_name("clientDescription");
descr << CHAR_PARAM("appId", pszAppId) << CHAR_PARAM("aesKey", "") << CHAR_PARAM("languageId", "en-US")
- << CHAR_PARAM("platform", "edge") << CHAR_PARAM("templateKey", pszKey) << CHAR_PARAM("platformUIVersion", TEAMS_CLIENTINFO_VERSION)
- << CHAR_PARAM("productContext", "TFL");
+ << CHAR_PARAM("platform", "edge") << CHAR_PARAM("templateKey", pszKey) << CHAR_PARAM("platformUIVersion", TEAMS_CLIENTINFO_VERSION);
+ if (pszContext)
+ descr << CHAR_PARAM("productContext", pszContext);
obj << CHAR_PARAM("context", "") << CHAR_PARAM("path", pszPath) << INT_PARAM("ttl", TEAMS_TROUTER_TTL);
trouter.set_name("TROUTER"); trouter << obj;