Skip to main content

I can't seem to find any API that allows me to listen to calls in realtime and reply programatically to the call in realtime. Can anyone please guide me to the right direction for this.Thanks

Hi Khalil, If you don't need voice, you can use TelephonySession api to listen and control call:
https://developers.ringcentral.com/api-reference#Extension-Telephony-Sessions-Event-Beta
https://developers.ringcentral.com/api-reference#Call-Control-rejectParty

If you want to play with real time voice, you can use our webRTC phone library https://github.com/ringcentral/ringcentral-web-phone
I want to reply to customer queries programmatically. Answer to what he/she asks on phone.
You wrote "API that allows me to listen to calls in realtime ...". Did you mean to listen to incoming call (ringing) or to listen to the call after the call is picked up?

If you want to listen to incoming call while it is ringing, use the presence push notification or the telephony session API.

If you want to listen to the voice of the call, then the WebRTC would help.

Also, you wrote ".. reply programmatically to the call in realtime", did you mean to pick a ringing call programmatically? If so, I am afraid that you cannot do that unless you make a call handling rule to direct the call to a voicemail.
Ok. I am actually looking for voicebots. Reply to the call while it is going on. Answer to the incoming calls.

Reply