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:
Description
When sending consumption reports to the Application Function via interface M5 the
content-type
header needs to be set toapplication/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 HandleronResponse
function to handle the different possible response codes which are: