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 - Set correct content-type header #52

Closed dsilhavy closed 7 months ago

dsilhavy commented 7 months ago

Description

When sending consumption reports to the Application Function via interface M5 the content-type header needs to be set to application/json. Otherwise, the Application Function is not accepting the consumption reports and returns a 415 error code.

Moreover, it looks like retrofit2 does not enter the onFailure callback for responses with the 415 error code. Consequently, we should adjust the debug output in the Media Session Handler onResponse function to handle the different possible response codes which are:

dsilhavy commented 7 months ago

Fixed in #53