Open Securitybits-io opened 2 years ago
Example of how this looks in a taky context, the taky cot service do not log anything to debug log, cot log however looks like so:
<event version="2.0" uid="GeoChat.S-1-5-21-3708732509-2984588875-2455516043-1001.4ef822b6-6b70-405a-b059-997a3c1a8103.3937e268-10eb-4c60-8b5a-6c58df80cd87" type="b-t-f" how="h-g-i-g-o" time="2023-02-05T00:44:32.750Z" start="2023-02-05T00:44:32.750Z" stale="2023-02-06T00:44:32.750Z">
<point lat="0.000000" lon="0.000000" hae="9999999.0" ce="9999999.0" le="9999999.0"/>
<detail>
<__chat id="4ef822b6-6b70-405a-b059-997a3c1a8103" chatroom="testgroup" senderCallsign="MAXIE" groupOwner="true" messageId="3937e268-10eb-4c60-8b5a-6c58df80cd87">
<chatgrp id="4ef822b6-6b70-405a-b059-997a3c1a8103" uid0="S-1-5-21-3708732509-2984588875-2455516043-1001" uid1="ASN-TAK-BOT-FAKE-UID" uid2="ANDROID-5518bcd6620fa04b"/>
<hierarchy>
<group uid="UserGroups" name="Groups">
<group uid="4ef822b6-6b70-405a-b059-997a3c1a8103" name="testgroup">
<contact uid="ASN-TAK-BOT-FAKE-UID" name="ASN-TAK-BOT"/>
<contact uid="ANDROID-5518bcd6620fa04b" name="FM05"/>
<contact uid="S-1-5-21-3708732509-2984588875-2455516043-1001" name="MAXIE"/>
</group>
</group>
</hierarchy>
</__chat>
<link uid="S-1-5-21-3708732509-2984588875-2455516043-1001" type="a-f-G-U-C-I" relation="p-p"/>
<remarks source="BAO.F.WinTAK.S-1-5-21-3708732509-2984588875-2455516043-1001" sourceID="S-1-5-21-3708732509-2984588875-2455516043-1001" to="4ef822b6-6b70-405a-b059-997a3c1a8103" time="2023-02-05T00:44:32.75Z">test</remarks>
<marti>
<dest callsign="FM05"/>
</marti>
</detail>
</event>
Group chat created from itak - this hits everyone as expected:
<event version="2.0" uid="GeoChat.1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D.A25D2CF2-1DCE-4017-81BF-815B457B5F33.6C12B4CB-55AE-49FD-9B07-28FF78558A57" type="b-t-f" how="h-g-i-g-o" time="2023-02-05T15:33:37.000Z" start="2023-02-05T15:33:37.000Z" stale="2023-02-05T15:35:37.000Z">
<point lat="0.000000" lon="-0.000010" hae="9999999.0" ce="9999999.0" le="9999999.0"/>
<detail>
<__chat parent="UserGroups" groupOwner="true" messageId="6C12B4CB-55AE-49FD-9B07-28FF78558A57" chatroom="Test3" id="A25D2CF2-1DCE-4017-81BF-815B457B5F33" senderCallsign="FM05-iOS">
<chatgrp uid0="1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D" uid1="ANDROID-5518bcd6620fa04b" uid2="S-1-5-21-3708732509-2984588875-2455516043-1001" id="A25D2CF2-1DCE-4017-81BF-815B457B5F33"/>
<hierarchy>
<group uid="UserGroups" name="Groups">
<group uid="A25D2CF2-1DCE-4017-81BF-815B457B5F33" name="Test3">
<contact uid="1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D" name="FM05-iOS"/>
<contact uid="ANDROID-5518bcd6620fa04b" name="FM05"/>
<contact uid="S-1-5-21-3708732509-2984588875-2455516043-1001" name="MAXIE"/>
</group>
</group>
</hierarchy>
</__chat>
<link uid="1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D" type="a-f-G-U-C" relation="p-p"/>
<remarks source="BAO.F.ATAK.1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D" time="2023-02-05T15:33:37Z">Test</remarks>
<__serverdestination destinations="192.168.1.168:4242:tcp:1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D"/>
<_flow-tags_ TAK-Server-dd4055d128d5416e826423948c66e412="2023-02-05T15:33:37Z"/>
<marti>
<dest callsign="FM05"/>
<dest callsign="MAXIE"/>
</marti>
</detail>
</event>
Group chat created from WinTak, does not reach itak
<event version="2.0" uid="GeoChat.S-1-5-21-3708732509-2984588875-2455516043-1001.4ef822b6-6b70-405a-b059-997a3c1a8103.f1687f9f-c7e2-4276-8844-54ea040e64c9" type="b-t-f" how="h-g-i-g-o" time="2023-02-05T15:34:55.460Z" start="2023-02-05T15:34:55.460Z" stale="2023-02-06T15:34:55.460Z">
<point lat="0.000000" lon="0.000000" hae="9999999.0" ce="9999999.0" le="9999999.0"/>
<detail>
<__chat id="4ef822b6-6b70-405a-b059-997a3c1a8103" chatroom="testgroup" senderCallsign="MAXIE" groupOwner="true" messageId="f1687f9f-c7e2-4276-8844-54ea040e64c9">
<chatgrp id="4ef822b6-6b70-405a-b059-997a3c1a8103" uid0="S-1-5-21-3708732509-2984588875-2455516043-1001" uid1="ANDROID-5518bcd6620fa04b" uid2="1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D" uid3="ASN-TAK-BOT-FAKE-UID"/>
<hierarchy>
<group uid="UserGroups" name="Groups">
<group uid="4ef822b6-6b70-405a-b059-997a3c1a8103" name="testgroup">
<contact uid="ASN-TAK-BOT-FAKE-UID" name="ASN-TAK-BOT"/>
<contact uid="ANDROID-5518bcd6620fa04b" name="FM05"/>
<contact uid="1874F828-5CF1-4289-B6C0-D4F6ABFB0B4D" name="FM05-iOS"/>
<contact uid="S-1-5-21-3708732509-2984588875-2455516043-1001" name="MAXIE"/>
</group>
</group>
</hierarchy>
</__chat>
<link uid="S-1-5-21-3708732509-2984588875-2455516043-1001" type="a-f-G-U-C-I" relation="p-p"/>
<remarks source="BAO.F.WinTAK.S-1-5-21-3708732509-2984588875-2455516043-1001" sourceID="S-1-5-21-3708732509-2984588875-2455516043-1001" to="4ef822b6-6b70-405a-b059-997a3c1a8103" time="2023-02-05T15:34:55.46Z">asd</remarks>
<marti>
<dest callsign="FM05-iOS"/>
</marti>
</detail>
</event>
So I've made a little progress with this here in 76838ce -- but it apparently isn't complete yet!
Routing TAK to TAK works Routing TAK to ALL works Routing TAK to Group Does not work!
Tested on iTAK, ATAK and WinTAK The Group chat CoT contains a tag
Which Taky seems to drop