Legacy Dev Forum Posts

 View Only

Sign Up

Telephony Metrics monitoring

  • 1.  Telephony Metrics monitoring

    Posted 06-05-2025 18:18

    Adrian_Santamaria | 2020-12-16 14:29:08 UTC | #1

    Hello

    Currently I am trying to create an app to monitor the Telephony activity, very similar to what Admin > Telephony > Metrics does, but outside the Genesys Cloud Interface. So, I've opened the network logs to try to guess how they work.

    However, I have some doubts about a specific metric: Call count by Edge. As far as I understand, what it does is the following:

    1. It gets all the Trunks for each Edge
    2. It subscribes to all the "edges.{edgeId}" topics
    3. It subscribes to all the "v2.telephony.providers.edges.trunks.{trunkId}.metrics" topics

    Then I've tried to create a channel subscribed to those topics, but there is 2 things I don't understand:

    1. What is the "edges.{edgeId}" subscription for? I am not getting any notification related to that topic.
    2. The trunk notifications have this format:

    { "topicName": "v2.telephony.providers.edges.trunks.XXXXXXXXXXXX.metrics", "version": "2", "eventBody":{ "calls":{ "inboundCallCount": 1, "outboundCallCount": 1 }, "eventTime": "2020-12-16T13:28:31.720362Z", "qos":{ "mismatchCount": 0 }, "trunk":{ "id": "XXXXXXXXXXX" } }, "metadata":{ "CorrelationId": "XXXXXXXXXX" } }

    As multiple Edges can share trunks, I don't know how could I get the metrics for each Edge, because the notification only includes Trunk info.

    Thank you!


    Adrian_Santamaria | 2020-12-16 16:47:58 UTC | #2

    After some more research, I think now I understand it.

    When for example 2 Edges use the same Trunk, in reality they are not connected to the same "trunk objects", but to a different copies that use the "shared" Trunk as a blueprint. Am I right?

    Thanks


    John_Carnell | 2020-12-16 20:20:28 UTC | #3

    Hi Adrian,

    That is correct. All edges start from a copy of a trunk base. This defines their settings. When a new edge is created for an org that trunk base is copied and each edge has its own individual copy of the trunk base that has its own stats and can be modified independently of one another.

    Thanks, John Carnell


    Adrian_Santamaria | 2020-12-17 08:41:58 UTC | #4

    Hello John

    Thanks for the explanation!


    system | 2021-01-17 08:42:02 UTC | #5

    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: 9522