|
|
|
@ -688,6 +688,9 @@ bool Trunk::processNetwork(uint8_t* data, uint32_t len, lc::LC& control, data::L
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TSBK_OSP_DVM_GIT_HASH:
|
|
|
|
|
|
|
|
// ignore
|
|
|
|
|
|
|
|
return true; // don't allow this to write to the air
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
LogError(LOG_NET, P25_TSDU_STR ", unhandled LCO, mfId = $%02X, lco = $%02X", tsbk->getMFId(), tsbk->getLCO());
|
|
|
|
LogError(LOG_NET, P25_TSDU_STR ", unhandled LCO, mfId = $%02X, lco = $%02X", tsbk->getMFId(), tsbk->getLCO());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
@ -2224,6 +2227,21 @@ bool Trunk::writeRF_TSDU_Grant(uint32_t srcId, uint32_t dstId, uint8_t serviceOp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
// do collision check between grants to see if a SU is attempting a "grant retry" or if this is a
|
|
|
|
|
|
|
|
// different source from the original grant
|
|
|
|
|
|
|
|
uint32_t grantedSrcId = m_p25->m_affiliations.getGrantedSrcId(dstId);
|
|
|
|
|
|
|
|
if (srcId != grantedSrcId) {
|
|
|
|
|
|
|
|
if (!net) {
|
|
|
|
|
|
|
|
LogWarning(LOG_RF, P25_TSDU_STR ", TSBK_IOSP_GRP_VCH (Group Voice Channel Request) denied, traffic in progress, dstId = %u", dstId);
|
|
|
|
|
|
|
|
writeRF_TSDU_Deny(srcId, dstId, P25_DENY_RSN_PTT_COLLIDE, (grp) ? TSBK_IOSP_GRP_VCH : TSBK_IOSP_UU_VCH);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::ActivityLog("P25", true, "group grant request from %u to TG %u denied", srcId, dstId);
|
|
|
|
|
|
|
|
m_p25->m_rfState = RS_RF_REJECTED;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
chNo = m_p25->m_affiliations.getGrantedCh(dstId);
|
|
|
|
chNo = m_p25->m_affiliations.getGrantedCh(dstId);
|
|
|
|
m_p25->m_affiliations.touchGrant(dstId);
|
|
|
|
m_p25->m_affiliations.touchGrant(dstId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|