@Ulises Ruiz Yes, Azure Communication Services does support answering incoming calls from a real phone. You can use the Azure Communication Services Calling SDK to build voice and video calling capabilities into your applications.
To answer an incoming call, you can use the CallAgent
and CallClient
objects provided by the SDK. Here is an example of how to answer an incoming call:
const callAgent = new CallAgent();
const callClient = callAgent.createCallClient();
// Register event handlers for incoming calls
callClient.on('incomingCall', async (incomingCall) => {
// Answer the incoming call
await incomingCall.answer();
});
This code creates a CallAgent
and CallClient
object, and registers an event handler for incoming calls. When an incoming call is received, the answer()
method is called to answer the call.
Note that you will need to have a phone number associated with your Azure Communication Services resource in order to receive incoming calls from a real phone. You can purchase phone numbers through the Azure portal or programmatically using the Azure Communication Services Phone Numbers API.
Further information can be found here.