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