question

Carl Miller avatar image
Carl Miller asked Carl Miller edited

How to use Ring out with my phone number


RingOut occurs errors.

I used my number instead of the main company number,

error says

" status: {callStatus: "Error", callerStatus: "GenericError", calleeStatus: "InProgress"} "

How can I call with my number?


IF I used company number when callee picked up it then rang company's line.

In other words when the recipient answers it then calls back into the user.

production
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered Phong Vu commented

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.

5 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Please help me

0 Likes 0 ·

$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]);

0 Likes 0 ·

So the $COMPANY_NUMBER is the main company number and the "OR MY NUMBER" is your mobile number?

Can you make direct call to the $COMPANY_NUMBER and does that phone ring?

0 Likes 0 ·

$COMPANY_NUMBER is the main company number

$MY NUMBER" is My RingCentral number(user name)

If I call with main company number when callee picked up it then rang super admin's phone.(extension 101)

If I call with my username of RingCentral(number), GenericError is occurring


0 Likes 0 ·
Show more comments

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys