diff --git a/src/fne/network/SubscriberOperationStore.cpp b/src/fne/network/SubscriberOperationStore.cpp index 12af82e5..00864c63 100644 --- a/src/fne/network/SubscriberOperationStore.cpp +++ b/src/fne/network/SubscriberOperationStore.cpp @@ -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"; diff --git a/src/fne/network/SubscriberOperationStore.h b/src/fne/network/SubscriberOperationStore.h index 38057460..0eae60e5 100644 --- a/src/fne/network/SubscriberOperationStore.h +++ b/src/fne/network/SubscriberOperationStore.h @@ -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. }; /** diff --git a/src/fne/network/callhandler/TagP25Data.cpp b/src/fne/network/callhandler/TagP25Data.cpp index 74b7d0cc..3ed2bd8b 100644 --- a/src/fne/network/callhandler/TagP25Data.cpp +++ b/src/fne/network/callhandler/TagP25Data.cpp @@ -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(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: