Reading your question over and over again, I still don't understand what you want to do.
However, if you are just looking for Webhook notifications, then read this dev guide to get started.
You can also read this article to learn more about the telephony session event notifications.
Hi @Phong Vu ,
Basically we want to integrate RingCentral Call Streaming with our AI Assistant. So, call will be received by our AI Asiistant first and AI will listen user's problem and guide them first. To do so, we need to bind RingCentral Call Streaming bi-directional way so, AI can get Voice and also AI should be able to emit response in the stream in form of audio file. We have seen the documentation but unfortunately didn't find any way to such. It will be great if you can provide us any document for that or help us any way.
Reference Link for Bi-directional Stream we are looking for - https://www.twilio.com/docs/voice/twiml/stream#bi-directional-media-streams
Alternate approach is we can bind our AI assistant using SIP trunking, does RingCentral providing such functionality of SIP trucking?
Reference link for SIP Trunking - https://cloud.ibm.com/docs/assistant?topic=assistant-deploy-phone#deploy-phone-byost
Unfortunately, we don't have platform API to retrieve audio stream from a direct call.
For your use case, you can implement a SIP phone using PJSIP library and handle the audio stream the way you want to. Check out these articles to learn
https://medium.com/ringcentral-developers/pjsip-and-ringcentral-part-1-get-started-67df16b10956
https://medium.com/ringcentral-developers/pjsip-and-ringcentral-part-2-handle-audio-medias-c26b8ea61319