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
SMS API stopped working for PRODUCTION *after* RC 1/20 update
Tags: rest api
Jan 23, 2020 at 5:55am   •   2 replies  •  0 likes
Bryan Los

My SMS were working Sunday. However, on Monday, they stopped working for production (sandbox stil works). I then noticed RingCentral had an update... I've contacted support, and was supposed to receive a call back yesterday, but did not. So while I'm going that route, I thought I would post here.

So this is the code I test production with. Haven't changed a thing. Also, when I send an SMS using this code, I receive a normal message queued response, with id and all the response data (same as I do with sandbox), but the SMS never arrives. I've tried with multiple phone numbers to test.

In Sandbox, the $ring_from number is the one that is included in my RC account credentials page. For production, the number shown is our 877 number, but for production I use the assigned number for extension 101, which is different, as you can send from the 877 number.

While I await RC support, anyone run into a similar issue?

In the meantime, I need to find plan B... it's been a few days now...

Bryan


<?php
// REQUIRE STUFF
require ( '/composer/vendor/autoload.php' ) ;
require ( '/includes/functions.php' ) ;

// GO AHEAD AND SEND ME!
try {

// SEND SMS DETAILS
$sms_recipient = '5555555555' ;
$sms_message  = 'TEST' ;

// SEND SMS
$send_sms = new RingCentral\SDK\SDK ( $api_client_id , $api_client_secret , $api_server ) ;
$send_sms -> platform ( ) -> login ( $ring_username , $ring_extension , $ring_password ) ;
$send_sms_response = $send_sms -> platform ( ) -> post ( '/account/~/extension/~/sms' ,

// SET ARRAY
array (

'from' => array ( 'phoneNumber' => $ring_from ) ,
'to' => array ( array ( 'phoneNumber' => $sms_recipient ) ) ,
'text' => $sms_message )

) ;

// RESPONSE
echo 'Message status: ' . $send_sms_response -> json ( ) -> messageStatus ;

} catch ( Exception $error ) {

echo 'Caught exception! ' . '(' , $error -> getCode ( ) . ') ' . $error -> getMessage ( ) . "\n" ;

}

// PRINT SOME DETAILS
echo '<pre>' ;
echo $send_sms_response -> json ( ) -> id . '<br />' ;
echo $send_sms_response -> json ( ) -> type . '<br />' ;
echo $send_sms_response -> json ( ) -> creationTime . '<br />' ;
echo $send_sms_response -> json ( ) -> readStatus . '<br />' ;
echo $send_sms_response -> json ( ) -> priority . '<br />' ;
echo $send_sms_response -> json ( ) -> direction . '<br />' ;
echo $send_sms_response -> json ( ) -> availability . '<br />' ;
echo $send_sms_response -> json ( ) -> subject . '<br />' ;
echo $send_sms_response -> json ( ) -> messageStatus . '<br />' ;
echo $send_sms_response -> json ( ) -> conversationId . '<br />' ;
echo $send_sms_response -> json ( ) -> lastModifiedTime . '<br />' ;
echo $send_sms_response -> json ( ) -> to [ 0 ] -> phoneNumber . '<br />' ;
echo $send_sms_response -> json ( ) -> from -> phoneNumber . '<br />' ;
echo '</pre>' ;
?>


2 Answers
answered on Jan 25, 2020 at 7:45am  

Good to see your ticket is solved. For any developer support, please submit a help ticket.


 0
answered on Jan 23, 2020 at 8:05am  

I just signed up for Twilio. Had SMS working in 2 minutes. I guess RC can take as long as they want to get back to me now...


 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