5G-MAG / rt-5gms-media-session-handler

5G Media Streaming - Media Session Handler
https://www.5g-mag.com/streaming
Other
4 stars 4 forks source link

Consumption Reporting - Handle consumption_location_changed events #41

Closed dsilhavy closed 1 year ago

dsilhavy commented 1 year ago

Feature description

TS 26.512 Section 4.7.4 defines procedures for consumption reporting. One requirement is the handling of location changes:

If the consumption reporting procedure is activated, the Media Session Handler shall produce and submit a consumption report to the 5GMSd AF when any of the following conditions occur: Upon determining a location change, if the clientConsumptionReportingConfiguration.locationReporting property is set to True.

For that reason the MediaStreamHandler sends a consumption_location_changed event once the location has changed (see https://github.com/5G-MAG/rt-5gms-media-stream-handler/issues/55). The MediaSessionHandler then needs to check if clientConsumptionReportingConfiguration.locationReporting is set to true. If true the MediaSessionHandler requests a consumption report from the MediaStreamHandler similar to what is already being done once the reportingInterval has elapsed.

Whenever a consumption report is produced, the Media Session Handler shall reset its reporting interval timer to the value of the clientConsumptionReportingConfiguration.reportingInterval property and it shall begin countdown of the timer again.

dsilhavy commented 1 year ago

The consumption reports for a location change are directly dispatched by the Media Stream Handler. The Media Session Handler resets its internal timer for requesting the consumption reports once receiving a consumption report. This is implemented in #44