diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-05-19 14:36:14 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-05-19 14:36:14 +0300 |
| commit | f3dcd4dbc572a8402dece8f77d7cfc6519faef28 (patch) | |
| tree | 4cf4da0dfbe8a5fac0a4183c470965ed624a1918 /protocols/Teams/src/teams_trouter.cpp | |
| parent | bd12787b1b16ea196ed5f42d4bff1a7dc3b4997a (diff) | |
code cleaning
Diffstat (limited to 'protocols/Teams/src/teams_trouter.cpp')
| -rw-r--r-- | protocols/Teams/src/teams_trouter.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
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; |
