TR104: Added support for Device.Services.VoiceService.{i}.CallControl.Line.{i}.Stats.RTP.PacketsLost parameter

This commit is contained in:
Amin Ben Romdhane 2023-06-09 10:49:10 +02:00
parent b633f57d62
commit eee7a9c78a
2 changed files with 7 additions and 0 deletions

View file

@ -693,6 +693,11 @@ static int get_ServicesVoiceServiceCallControlLineStatsRTP_PacketsSent(char *ref
return get_ServicesVoiceServiceCallControlLine_Stats(instance, "RTP", "PacketsSent", value);
}
static int get_ServicesVoiceServiceCallControlLineStatsRTP_PacketsLost(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
return get_ServicesVoiceServiceCallControlLine_Stats(instance, "RTP", "PacketsLost", value);
}
static int get_ServicesVoiceServiceCallControlLineStatsRTP_BytesSent(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
return get_ServicesVoiceServiceCallControlLine_Stats(instance, "RTP", "BytesSent", value);
@ -1675,6 +1680,7 @@ DMLEAF tServicesVoiceServiceCallControlLineStatsRTPParams[] = {
/* PARAM, permission, type, getvalue, setvalue, bbfdm_type */
{"PacketsReceived", &DMREAD, DMT_UNINT, get_ServicesVoiceServiceCallControlLineStatsRTP_PacketsReceived, NULL, BBFDM_BOTH},
{"PacketsSent", &DMREAD, DMT_UNINT, get_ServicesVoiceServiceCallControlLineStatsRTP_PacketsSent, NULL, BBFDM_BOTH},
{"PacketsLost", &DMREAD, DMT_UNINT, get_ServicesVoiceServiceCallControlLineStatsRTP_PacketsLost, NULL, BBFDM_BOTH},
{"BytesSent", &DMREAD, DMT_UNINT, get_ServicesVoiceServiceCallControlLineStatsRTP_BytesSent, NULL, BBFDM_BOTH},
{"BytesReceived", &DMREAD, DMT_UNINT, get_ServicesVoiceServiceCallControlLineStatsRTP_BytesReceived, NULL, BBFDM_BOTH},
{0}

View file

@ -5,6 +5,7 @@
"RTP": {
"PacketsReceived": 468,
"PacketsSent": 751,
"PacketsLost": 2,
"BytesReceived": 1560,
"BytesSent": 8954
}