I am trying to call a number using "/restapi/v1.0/account/~/extension/~/ring-out" in php
I have the body set up like this
$body = array(
'from' => array(
'phoneNumber' => $fromNumber
),
'to' => array(
'phoneNumber' => $toNumber
),
'callerId' => array(
'phoneNumber' => $CallerIDPhoneNumber
),
'playPrompt' => false
);
If I make the call and have the $fromNumber and the $CallerIDPhoneNumber number as the same number it works fine but I want the $CallerIDPhoneNumber to always be the main office number regardless of where I am calling from. If I change the $CallerIDPhoneNumber to any other number than the $fromNumber number it does not work. any Ideas what I am doing wrong?