question

Bryan Los avatar image
Bryan Los asked Khadhar Koneti answered

SMS API stopped working for PRODUCTION *after* RC 1/20 update

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>' ;
?>


rest api
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Bryan Los avatar image
Bryan Los answered

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...

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Khadhar Koneti avatar image
Khadhar Koneti answered

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

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys