I am using ring central API to make a call. I want to change from phone number while calling using API. I am passing fromPhoneNumber in array, But it still showing default CallerID CNAM to recipient.
Code:
$rcsdk = new RingCentralSDKSDK($credentials['clientId'], $credentials['clientSecret'], $credentials['server']);
$platform = $rcsdk->platform();
$platform->login($credentials['username'], $credentials['extension'], $credentials['password']);
$resp = $platform->post("/account/~/extension/~/ring-out",
array(
'from' => array('phoneNumber' => '+1xxxxxxxxxx'),
'to' => array('phoneNumber' => $RECIPIENT),
'playPrompt' => false
));
Is there a way so I can alter this code and display a different number for a caller?
Thanks in advance