ostelco-core
ostelco-core copied to clipboard
[OCS-gw][Prime] Clear reservation
Each CCR/CCA has a validity time for the requested bucket. There should be a timer to clear the reservation incase the P-GW does not update after the time has passed.
So we need to include this time in the gRPC requests and make sure timer is set in Prime.
When the Validity-Time has passed the P-GW it wills send a new CCR-U asking for a new reservation.
We need to read up on how this is supposed to happen, if the OCS has cleared it at the point of a new update triggered then it will update correctly.
Currently. If the subscriber has a reservation and we time out it is not cleared. But when the next CCR arrive we will add back the previous reservation before making a new one.