Resolves #909 MPT1327 call events don't show talkgroup aliases. (#920)

Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
Denny Sheirer
2020-09-03 04:21:28 -04:00
committed by GitHub
parent d20dd1af8c
commit 63b0aaaa7f
2 changed files with 5 additions and 3 deletions

View File

@@ -205,7 +205,10 @@ public class MPT1327DecoderState extends DecoderState
case GTC: case GTC:
if(mMPT1327TrafficChannelManager != null) if(mMPT1327TrafficChannelManager != null)
{ {
mMPT1327TrafficChannelManager.processChannelGrant(mpt); MutableIdentifierCollection ic = new MutableIdentifierCollection(getIdentifierCollection().getIdentifiers());
ic.remove(IdentifierClass.USER);
ic.update(mpt.getIdentifiers());
mMPT1327TrafficChannelManager.processChannelGrant(mpt, ic);
} }
else else
{ {

View File

@@ -81,11 +81,10 @@ public class MPT1327TrafficChannelManager extends Module implements IDecodeEvent
* Processes channel grants to allocate traffic channels and track overall channel usage. Generates * Processes channel grants to allocate traffic channels and track overall channel usage. Generates
* decode events for each new channel that is allocated. * decode events for each new channel that is allocated.
*/ */
public void processChannelGrant(MPT1327Message mpt1327Message) public void processChannelGrant(MPT1327Message mpt1327Message, IdentifierCollection identifierCollection)
{ {
if(mpt1327Message.getMessageType() == MPT1327Message.MPTMessageType.GTC) if(mpt1327Message.getMessageType() == MPT1327Message.MPTMessageType.GTC)
{ {
IdentifierCollection identifierCollection = new IdentifierCollection(mpt1327Message.getIdentifiers());
MPT1327Channel mpt1327Channel = MPT1327Channel.create(mpt1327Message.getChannel()); MPT1327Channel mpt1327Channel = MPT1327Channel.create(mpt1327Message.getChannel());
mpt1327Channel.setChannelMap(mChannelMap); mpt1327Channel.setChannelMap(mChannelMap);