Legacy Dev Forum Posts

 View Only

Sign Up

Conversation mediaEndpointStats

  • 1.  Conversation mediaEndpointStats

    Posted 06-05-2025 19:26

    Craig_Reading | 2024-09-19 14:57:13 UTC | #1

    Hi,

    I am trying understand mediaEndpointStats for Customer and Agent participants. My assumption used to be that the mediaEndpointStats where always RX stats which is why on Customer participants there are stats for each leg. For example:

    "mediaEndpointStats": [ { "codecs": [ "audio/opus" ], "eventTime": "2024-09-09T14:41:27.476Z", "maxLatencyMs": 30, "minMos": 4.882416278171334, "minRFactor": 92.44390869140625, "receivedPackets": 1039 }, { "codecs": [ "audio/opus" ], "eventTime": "2024-09-09T14:42:34.737Z", "maxLatencyMs": 30, "minMos": 4.882598281276358, "minRFactor": 92.45185852050781, "receivedPackets": 3358 }, { "codecs": [ "audio/PCMU" ], "discardedPackets": 21, "eventTime": "2024-09-09T14:46:16.173Z", "maxLatencyMs": 30, "minMos": 4.379642247192193, "minRFactor": 91.75749206542969, "receivedPackets": 15427 }, { "codecs": [ "audio/opus" ], "discardedPackets": 1, "eventTime": "2024-09-09T14:46:16.223Z", "maxLatencyMs": 36, "minMos": 4.879845254141609, "minRFactor": 92.33213806152344, "receivedPackets": 11075 } ],

    However why are there mediaEndpointStats for PCMU and opus at the same time which correlates with the end of the Customer call when last (agent leg) disconnects?

    Also when I look at the agent participant I see 2 sets of stats both for Opus?

    "mediaEndpointStats": [ { "codecs": [ "audio/opus" ], "eventTime": "2024-09-09T14:46:16.359Z", "maxLatencyMs": 39, "minMos": 4.888467877729231, "minRFactor": 92.71100616455078, "receivedPackets": 11079 }, { "codecs": [ "audio/opus" ], "discardedPackets": 1, "eventTime": "2024-09-09T14:46:16.507Z", "maxLatencyMs": 32, "minMos": 4.880947146237666, "minRFactor": 92.37992095947266, "receivedPackets": 11088 } ],

    In summary:

    1. Are mediaEndpointStats always RX stats?
    2. What are the PCMU stats on Customer for?
    3. What are there 2 sets on stats for a simple transfer from ACD queue to Agent?

    Regards Craig


    system | 2024-10-20 14:57:23 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 29420