Question

Fetching RingOut destination using Voice API

  • 21 October 2022
  • 2 replies
  • 311 views

Hi, we're using the Voice API through the .Net SDK. We'd like to find out how to fetch the user's current set RingOut destination/telephone number. I mean the value that is configured in the RingCentral desktop client (Settings->Phone->Outgoing calls). Is it possible to get this value, please?


2 replies

Userlevel 1

Call this API and detect the "AdditionalSoftPhone" within the byFeature object to get the default caller id set by the RC app.

RestClient rc = new RestClient(RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, true);
await rc.Authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD);

var resp = await rc.Restapi().Account().Extension().CallerId().Get();
foreach (var feature in resp.byFeature)
{
    Console.WriteLine("-----");
    Console.WriteLine("Feature: " + JsonConvert.SerializeObject(feature));
}

@Phong Vu

This is the number that I'm hoping to get. I didn't see it in any of the "Features" that you mentioned above:

1666910878399.png


Reply