Hi Community,
I set up a webhook to get notified about changes that happens to an account using filter: /restapi/v1.0/account/~/telephony/sessions. For my application I need some extra information about the session. Can u please tell me how to get this information and whether this is doable through a webhook:
1. Selected option in IVR. By this I mean option explained at https://support.ringcentral.com/article/6562.html?language=en_US under 'Sample Custom Greeting' topic.
2. Selected IVR menu. At this uri: https://github.com/dibyenduroy/csn-data/blob/master/PSTN-RingCentral-DataStreams.txt in the list of notifications I see at the line 3 f.ex:
{'uuid': '6157342698054500332', 'event': '/restapi/v1.0/account/809646016/telephony/sessions', 'timestamp': '2020-06-23T01:05:44.195Z', 'subscriptionId': '2461434a-276a-4073-bd26-34089effbad5', 'ownerId': '809646016', 'body': {'sequence': 4, 'sessionId': '429180487016', 'telephonySessionId': 's-718107795d564867a6f635fd81e89940', 'serverId': '10.13.22.27.TAM', 'eventTime': '2020-06-23T01:05:44.083Z', 'parties': [{'accountId': '809646016', 'id': 'p-718107795d564867a6f635fd81e89940-1', 'direction': 'Outbound', 'to': {'phoneNumber': '+18003151571', 'name': 'IVR Menu 1001', 'extensionId': '62242421016'}, 'from': {'phoneNumber': '+14083388064'}, 'status': {'code': 'Answered', 'rcc': False}, 'park': {}, 'missedCall': False, 'standAlone': False, 'muted': False}], 'origin': {'type': 'Call'}}}
It has parameter 'name': 'IVR Menu 1001'. Do I need to parse 'name' parameter to find out if the call uses IVR menu? Can IVR menu have arbitrary name?
Thanks!
Best,
Nikolai Chashchin