ring out not working with c# SDK

  • 1
  • Question
  • Updated 2 years ago
Hello team,

I am using the below code to make a call , i get the status as "in progress" but i don't receive the call on the dialled number. please find the code and screen shot below.



  var ringoutPostBodyJson = "{\"from\":{\"phoneNumber\":\"19295755408\",\"forwardingNumberId\":\"\"},\"to\":{\"phoneNumber\":\"15614097222\"},\"playPrompt\":true,\"country\":{\"id\":\"1\"}}";

  var request = new Request("/restapi/v1.0/account/~/extension/~/ringout", ringoutPostBodyJson);



  var ringoutResponse = sdk.Platform.Post(request);

 

Photo of Z Admin

Z Admin

  • 440 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
Please read the answer here and see if it works for you: https://github.com/ringcentral/ringcentral-csharp/issues/59
(Edited)
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb


There is problem with your phone number.  Try with your mobile phone and any other phone that you are sure it is able to make a call.
Photo of Z Admin

Z Admin

  • 440 Points 250 badge 2x thumb
Thanks for the reply. I saw this before and tried with different phone numbers but the status remains "cannot reach". Is there any specific way to test. As per the above link it seems that we need 2 phones. does that means from field should be some mobile number rather than main company number.
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,190 Points 5k badge 2x thumb
Yes, both from and to should be mobile numbers and you'd make sure those two numbers are OK to make and receive phone calls.

Above is not mandatory at all but it helps you to locate your issue. Once you do the test above successfully, try other numbers such as your company numbers, some virtual phone numbers...etc.