Filtering calls by trunk

Hi,

First question:

Is there an API endpoint to get all active calls filtering by TRUNK id?

Second question:

Is there subscription event that we can subscribe to obtain incomming calls in real time within a specific TRUNK ID? Similar to v2.routing.queues.{id}.conversations, but for TRUNKS.

Thank you

No to both.

See https://developer.genesys.cloud/forum/t/get-trunk-id-subsequently-its-name/12388

and

https://community.genesys.com/discussion/assigning-inbound-numbers-to-trunks-viewing

Many thanks!

Third question would be,

Is there an API endpoint to get all active calls filtering by FLOW id?

Thank you in advance

Pretty much any conversation source such as POST /api/v2/analytics/conversations/details/jobs or POST /api/v2/analytics/conversations/aggregates/query would include an option to filter by or group by flowid, you'd just have to specify the conversation end is null to narrow down to what was still in progress.

If you want detail go with the first option if you want a set that is literally just conversationid and flowid go for the latter.

thank you,

what would be the difference between these three?:

/api/v2/analytics/conversations/aggregates/query

/api/v2/analytics/conversations/details/query

/api/v2/analytics/conversations/details/jobs/{jobId}

or which you would think would be optimal for what im looking for?

Thank you

You'll need to read the documentation to understand what each of those is and does and look at the provided examples to determine which is more suitable for your purpose. It's too much detail and nuance for a forum post.

Thank you.

In relation to his too, is there a way to obtain the event (in real time) of an OUTBOUND call that is placed without a queue?

Picture2

That is, in the Calls section of the Genesys main menu you can make an outbound call that does not use a queue and also does not use a flow.

How could I track this outgoing call using subscription events? (this is the reason we were looking at trunk events maybe)

There is no way to do that I am aware of, short of a listener on every agent.

You have to remember Genesys, like most products, is built to support the use cases they presumed as most common. The further you edge from that zone the harder it tends to get and there are some facets and angles they just never expected enough people to care about to justify building connectivity.

Thank you. And last question, I am looking for the subscription for all events occurring in real time in a particular flow, is this the right subscription for it?

v2.flows.{id}

It's not listed in the notifications tester so couldn't test if it was.

Thank you

No. There is no such notification.

What that'll give you is changes to the flow's metadata;

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