capture CALL_ALERT acks;

r05a06_dev
Bryan Biedenkapp 5 hours ago
parent 074dc5d118
commit c3f4efd202

@ -259,6 +259,8 @@ const char* SubscriberOperationStore::kindName(Kind kind)
return "unit-deregistration";
case Kind::GRP_AFFIL:
return "group-affiliation";
case Kind::CALL_ALERT_ACK:
return "call-alert-ack";
}
return "unknown";

@ -71,6 +71,8 @@ namespace network
UNIT_REG = 11U, //!< Unit registration request.
UNIT_DEREG = 12U, //!< Unit deregistration request.
GRP_AFFIL = 13U, //!< Group affiliation request.
CALL_ALERT_ACK = 14U, //!< Call alert acknowledgement.
};
/**

@ -1491,10 +1491,18 @@ bool TagP25Data::processTSDUFrom(uint8_t* buffer, uint32_t peerId, uint8_t duid)
case TSBKO::IOSP_ACK_RSP:
{
lc::tsbk::IOSP_ACK_RSP* iosp = static_cast<lc::tsbk::IOSP_ACK_RSP*>(tsbk.get());
// complete the pending message update when the FNE acknowledges it
if (iosp->getService() == TSBKO::IOSP_MSG_UPDT && iosp->getDstId() == WUID_FNE) {
m_network->subscriberOperations().complete(SubscriberOperationStore::Protocol::P25,
SubscriberOperationStore::Kind::MESSAGE_UPDATE, iosp->getSrcId(), peerId);
}
// record a one-shot call alert acknowledgement for the source and destination IDs
if (iosp->getService() == TSBKO::IOSP_CALL_ALRT) {
m_network->subscriberOperations().oneShot(SubscriberOperationStore::Protocol::P25,
SubscriberOperationStore::Kind::CALL_ALERT_ACK, iosp->getSrcId(), peerId, 0U, iosp->getDstId());
}
}
break;
case TSBKO::IOSP_EXT_FNCT:

Loading…
Cancel
Save

Powered by TurnKey Linux.