How do I create a Direct Ring Out using RingCentral Phone API?

  • 1
  • Question
  • Updated 3 months ago

How do I create a Direct Ring Out using RingCentral Phone API?

We have a .Net application that interacts with RC Phone via API. I am able to make a call (Ring Out), but then both caller and callee get a call. How do I make a direct call using an API where only the receiver gets a call and the caller gets a new open call on the softphone?

Photo of Adam Antoszewski

Adam Antoszewski

  • 260 Points 250 badge 2x thumb

Posted 3 months ago

  • 1
Photo of Brandon Hein

Brandon Hein

  • 348 Points 250 badge 2x thumb
Not sure if it's possible using the .net sdk or via the api. I've built a "softphone" like application with windows forms using c#. It's more of a access gateway to ring central. Where actions taken on this application hits specific endpoints for the user to see. Giving the impression of a softphone.

With that said... any dial out on my application uses the Ring Out api. Initiating the call from my app will "ring out" to the user's phone first. This requires my user to answer first. When Ring Central registers they picked the phone up, the ring cental backend will complete the call to what ever number was punched in.

The direct ring out I believe you're trying to get at (IE: skipping the user picking up the phone first), is done with javascript using WebRTC. The call is placed and takes place via the web. The unfortunate thing here is the absence of the physical desk phone. Cool technology, just not ready for the .net applications yet.

Hope my experience sheads some insight and value.
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,918 Points 5k badge 2x thumb
Your app is unable to make "direct" call if it's neither a hard phone nor a soft phone.  In order for your app to become a soft phone, you can use webRTC: https://github.com/ringcentral/ringcentral-web-phone

Your app can also automate an external soft phone by opening rcmobile://call?number=1650xxxxxx
So that external soft phone make the direct call for you.
Photo of Adam Antoszewski

Adam Antoszewski

  • 260 Points 250 badge 2x thumb
Does this number need to be in user contacts? rcmobile://call?number=1650xxxxxx
Also, is this the number or account id?
What is the expected result? RC softphone activating and starting the call?
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,736 Points 5k badge 2x thumb
rcmobile://call?number=1650xxxxxx  the number is the phone number you want to call.

You can make it a link, so that user click that link, the RingCentral softphone starts and calls the number in the parameter.

And you can also try it in command line:  open 'rcmobile://call?number=1650xxxxxx'  I've tested it with macOS. Windows should have similar behavior.
Photo of Adam Antoszewski

Adam Antoszewski

  • 260 Points 250 badge 2x thumb

Thanks Tyler, I have automated an external soft phone by opening rcmobile://call?number=1650xxxxxx and it appears to be working well. It is also the simplest solution.

Since we are doing this from a webpage,  the form needs: 'method=post'

here is the code:

$("#rcCallButtonForm").attr("action", "rcmobile://call?number=%22" + extension + "%22");
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,858 Points 5k badge 2x thumb
Glad to know that it works. Post more details if you still have questions :)