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