Do you want to identify a call via IVR to a call queue vs. a call directly to the call queue? Or a call via IVR with multiple options and on of the options is a call queue?
Hi @Phong Vu , sorry I wrote the first comment really bad. I want to know when someone calls the IVR (to get the sessionId, caller phone number, all the data) and to which number is it redirected, does not matter if it is a call queue or a direct number.
We already have a Lambda function that gets all the events of a phone call with the subscription to /restapi/v1.0/account/xxxxxxx/extension/xxxxxxxx/telephony/sessions endpoints. The calls to the IVR are shown on these endpoints?
Thanks for the help
You can use the account level event notification and when receiving notification, check the event with or without the [extension/extentionId] to identify which one is gone thru the IVR or directly to the extension. I know it's a bit complicated but if you print out all the notification in different scenario, you will find the pattern.
/restapi/v1.0/account/~/telephony/sessions