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
500 Error while getting the call status 'Consult RC Support' error message
Tags: sdk
Feb 6, 2017 at 3:40pm   •   6 replies  •  0 likes
bryan-bojorque

PHP SDK

Expected HTTP Error: Server error: 'GET https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/ringout/4073' resulted in a '500 Internal Server Error' response: { "message" : "Internal Server Error. Consult RC Support.", "eventId" : "91ca556c-ecbc-11e6-b9d8-005056bb594d" } (from backend) at URL https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/ringout/4073

6 Answers
answered on Feb 21, 2017 at 3:38pm  
Please refer to the detailed explanation on mapping the sessionID and call-log and polling for call status for ring out calls here:  https://devcommunity.ringcentral.com/ringcentraldev/topics/need-extensionnumber-returned-in-active-c...

 0
answered on Feb 7, 2017 at 10:35am  
This is the code for getCallStatus.

public function getCallStatus($callId){        if($this->platform->loggedIn()){
            try{
                $response = $this->platform->get("/account/~/extension/~/ringout/{$callId}");
            }catch(ApiException $e){
                $this->exceptionHandler($e);
            }
            
            return $response;
        }
    }

 0
answered on Feb 7, 2017 at 10:21am  
So in the updating part we are using setTimeout and calling a php script. $callStatus = $ringcentral->getCallStatus($id) querying status every 5 seconds via ajax.

 0
answered on Feb 7, 2017 at 10:19am  
We are connecting a call using From 'Sandbox Phone Number' to 'Live Phone Number' in ring central.

Sample code is..

public function ringOut($toNumber) {       
     if ($this->platform->loggedIn()) {
            $phoneNumbers = $this->getPhoneNumbers(); //We are getting the from number in the sandbox acccount
            if (count($phoneNumbers)) {
                foreach ($phoneNumbers as $phoneNumber) {
                    if (in_array('SmsSender', $phoneNumber->features)) {
                        $smsNumber = $phoneNumber->phoneNumber;
                        break;
                    }
                }
            }

            try {
                $response = $this->platform->post('/account/~/extension/~/ringout', array(
                    'from' => array('phoneNumber' => $smsNumber),
                    'to' => array('phoneNumber' => $toNumber)
                ))->json();
                
            } catch (ApiException $e) {
                $this->exceptionHandler($e);
            }
            
            return $response;
        }
    }


$call = $ringcentral->ringOut('XXXXXXX'); //This is the live number
$callStatus = $ringcentral->getCallStatus($call->id);





 0
answered on Feb 7, 2017 at 10:15am  

Hi Sir!

We did send an email to the developer support team.

We switched to telephonyStatus in webhook but its not very detailed and we cannot find out if the status is inProgress which is in the RingOut group.


 0
answered on Feb 7, 2017 at 8:48am  
Hello Bryan,

Are you still experiencing this issue please sir?

Have you created a developer support case?

Is the extension you're using configured with either a digital line or direct number, and are you using that number (or one of the extension's phone numbers) as the from.phoneNumber in the RingOut?

 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