Is it possible to call any domestic number from any extension within my organization using a server-side application? I need to place a call on the user's behalf, and I do not want them to authenticate, hence the need for a server-side solution
var parameters = new MakeRingOutRequest
{
from = new MakeRingOutCallerInfoRequestFrom
{
phoneNumber = "15559000410" // Assume this is a queue number
},
to = new MakeRingOutCallerInfoRequestTo
{
phoneNumber = "15559991234"
},
playPrompt = false,
};
// Call from any extension in my company, possible to call on behalf?
var resp = await restClient.Restapi().Account().Extension(“XXXXXXXX”).RingOut().Post(parameters);
Console.WriteLine("Call Placed. Full Response:\n" + JsonConvert.SerializeObject(resp, Formatting.Indented))
But I keep getting ..
“In order to call this API endpoint for another extension, one of the following permissions [InternalCalls, DomesticCalls, InternationalCalls] have to be granted with extended scope to the authorized user”.