Skip to main content
The First Step
October 21, 2022
Question

Fetching RingOut destination using Voice API

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

    PhongVu
    Community Manager
    Community Manager
    October 24, 2022

    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));
    }
    partnerThe First StepAuthor
    The First Step
    October 27, 2022

    @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