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