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
Problems sending SMS in Sandbox
Tags: getting started
Oct 4, 2016 at 12:43pm   •   5 replies  •  0 likes
kevon-houghton

Using the code below where the login works, when trying to send an SMS, I get the following exception: Parameter [from] value [**********] is invalid [Cannot find the phone number which belongs to user]


the ******** is my valid phone number. I assume this is because the phone numbers don't exist in the sandbox? How do I know what numbers to use in the sandbox? I've looked in documentation but can't find anyything.


My code:


var sdk = new SDK(appKey, appSecret, apiServer, applicationName, applicationVersion);

sdk.Platform.Login(userName, extension, password, false);


var requestBody = new {


text = text,

from = new { phoneNumber = fromPhoneNumber },

to = new object[] { new { phoneNumber = toPhoneNumber } } };


var jsonString = JsonConvert.SerializeObject(requestBody);

var request = new RingCentral.Http.Request("/restapi/v1.0/account/~/extension/~/sms", jsonString);


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



5 Answers
answered on Jul 4, 2019 at 1:22pm  

Whenever an application is created in Sandbox, you can get the phone number associated with the app in the developer portal. You can add additional numbers and extension

If you still have a problem, engage the developer support team and create a support ticket.


 0
answered on Apr 18, 2017 at 11:46am  

Hi,

You can use sandbox numbers provided in Developer Portal. For additional numbers, you can add up to 4 numbers and extensions to your Sandbox Online account here: https://service.devtest.ringcentral.com/

Here is how you add numbers in the numbers to Sandbox Online account: Adding a Digital Line (KB 3136)


Feel free to reach us via email or create a support ticket for additional support.


 0
answered on Apr 18, 2017 at 6:31am  
can you provide me test numbers for testing in sandbox mode.?

 0
answered on Oct 6, 2016 at 10:41am  
I transposed a couple numbers. Fixing that solved my issue.

 1
answered on Oct 6, 2016 at 10:40am  
You login to the Sandbox Online Account Portal (https://service.devtest.ringcentral.com) to see which numbers are available in your account for use.

 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