Skip to main content

Welcome to the home of the RingCentral developer community, where developers and users come together to ask questions, seek support, and work together to get the most out of RingCentral's unified communication platform.

This article is provided to developers going through the getting started experience accessible from within the RingCentral Developer Console and needing help specifically with the "Initiate a phone call" code sample.

Initiate a Phone Call Screenshot

I am receiving an error when I run my code sample

The code sample provided for you is 100% complete and ready to go. You should not need to edit it in any way.

However, if you are still receiving an error, check the following:

  • Make sure you installed the SDK.

  • If the error message relates to a missing library or a file that cannot be found, return to Step 2 on the Making a Simple API Call page and follow the instructions for your preferred programming language to properly install the RingCentral SDK.

SDK Installation Screenshot


I am experiencing a different problem

If the above content did not provide you with a solution, please reach out to our Developer Support team and tell us more about the specific issue you are struggling with. We can then update this page to better help future developers.

We also invite you to share your feedback with us by posting a comment on this article so that you can better share your knowledge with other RingCentral developers.

Using c#,  I followed the instructions for .net 2.1   and  Nuget package  RingCentral,net 4.1.0

The sample code given by the website will not compile.

The error is on this line of code

           restClient.Authorize(JWT_TOKEN).Wait();

Error (active)    CS1503    Argument 1: cannot convert from 'string' to 'RingCentral.GetTokenRequest'    RingDemo    C:\Users\joels\source\repos\RingDemo\RingDemo\Pages\Contact.cshtml.cs    39        
 

 


Using c#,  I followed the instructions for .net 2.1   and  Nuget package  RingCentral,net 4.1.0

The sample code given by the website will not compile.

The error is on this line of code

           restClient.Authorize(JWT_TOKEN).Wait();

Error (active)    CS1503    Argument 1: cannot convert from 'string' to 'RingCentral.GetTokenRequest'    RingDemo    C:\Users\joels\source\repos\RingDemo\RingDemo\Pages\Contact.cshtml.cs    39        
 

 

Please try this sample code

https://developers.ringcentral.com/guide/voice/ringout#c#


That worked,  

The problem was that I followed the instructions for creating a new Visual Studio project which say to use .NET 2.1 and RingCentral 4.1.0.

I created a new project with .netcore 8 and it works.

 

Can you update the web page instruction which currently say this

Create a Visual Studio project

  • Choose Console Application .Net Core -> App
  • Select Target Framework .NET Core 2.1
  • Enter project name "Call_Ringout"
  • Add NuGet package RingCentral.Net (4.1.0) SDK

That worked,  

The problem was that I followed the instructions for creating a new Visual Studio project which say to use .NET 2.1 and RingCentral 4.1.0.

I created a new project with .netcore 8 and it works.

 

Can you update the web page instruction which currently say this

Create a Visual Studio project

  • Choose Console Application .Net Core -> App
  • Select Target Framework .NET Core 2.1
  • Enter project name "Call_Ringout"
  • Add NuGet package RingCentral.Net (4.1.0) SDK

It should work with Core 2.1 and above. At least 2.1 is what I am using. I think the new SDK does not like this way of calling asynchronous function.

restClient.Authorize(JWT_TOKEN).Wait();

Function is now Task and called differently.

await restClient.Authorize("RC_USER_JWT");
await call_ringout();

 


Reply