News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Need to change from Phone number while calling Ring-Out API
Tags: rest api
Jan 24, 2022 at 11:35am   •   1 replies  •  0 likes
Jai B

I am using ring central API to make a call. I want to change from phone number while calling using API. I am passing fromPhoneNumber in array, But it still showing default CallerID CNAM to recipient.

Code:

$rcsdk = new RingCentral\SDK\SDK($credentials['clientId'], $credentials['clientSecret'], $credentials['server']);

$platform = $rcsdk->platform();

$platform->login($credentials['username'], $credentials['extension'], $credentials['password']);

$resp = $platform->post("/account/~/extension/~/ring-out",

array(

'from' => array('phoneNumber' => '+1xxxxxxxxxx'),

'to' => array('phoneNumber' => $RECIPIENT),

'playPrompt' => false

));

Is there a way so I can alter this code and display a different number for a caller?

Thanks in advance

1 Answer
answered on Jan 25, 2022 at 10:00am  

You can either pass callerId that can be associated to your logged in extension via callerID param of ring out api or set callerID using the callerID api as specified below:

POST /restapi/v1.0/account/1133926004/extension/1133926004/ring-out
{
    "from": {"phoneNumber": "+12053320032"},
    "to": {"phoneNumber": "+16052160005"},
    "playPrompt": true,
    "callerId":{"phoneNumber":"XXXXX"}
}


Update callerID https://developers.ringcentral.com/api-reference/User-Settings/updateExtensionCallerId





 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us