How do you call the ring-out API? Always post a few line of codes would help people understand what and how you try. don't need to reveal sensitive info and dash out the last 4 digits of any real phone number.
1. => Try to use the Main company number with your extension number. E.g. +12092345678*102
I tried calling using the Main company number with my extension number(102), but the same. (when callee picks up it, then rang super admin's line(101).
2. Can you make a direct call to this number. E.g. from your cell phone?
Everything it's ok,
The Main company number rings the sales group.
The My RingCentral number rings my line directly.
If I use the super admin's number, rang back.
Why can't call normally?
$resp = $platform->post('/account/~/extension/~/ring-out',
array(
'from' => array('phoneNumber' => $COMPANY_NUMBER), // OR MY NUMBER
'to' => array('phoneNumber' => $RECIPIENT_NUMBER),
'playPrompt' => false,
));
$json = $resp->json();
$lastStatus = $json->status->callStatus;
$index = 0;
while ($lastStatus == 'InProgress') {
$current = $platform->get($json->uri);
$currentJson = $current->json();
$lastStatus = $currentJson->status->callStatus;
sleep(1);
$index++;
if($index>28)
return response()->json(["status"=>$currentJson->status,'index'=>$index]);
}
return response()->json(["status"=>$currentJson->status,'ringout_id'=>$json->id]);