Hello @Ottmann, Thomas,
Greetings!
Welcome to the Microsoft Q&A Platform. Thank you for reaching out! I hope you are doing well.
Yes, it is possible to receive real-time notifications of incoming PSTN calls using Azure Communication Services (ACS) and Azure Event Grid. By subscribing to the IncomingCall event in Event Grid, you can capture details such as:
- Caller ID (Phone Number)
- Caller Information
- Call Correlation ID
- Timestamp of the Incoming Call
For example, in your Event Grid logs, the "Call Participant Added" event displays a phone number (+91922
) along with the communication user ID. This indicates that the system has already captured the caller’s details.
Example of an IncomingCall event:
{
"eventType": "Microsoft.Communication.IncomingCall",
"data": {
"caller": {
"communicationIdentifier": {
"kind": "phoneNumber",
"rawId": "4:+9191",
"phoneNumber": { "value": "+9191" }
}
},
"correlationId": "cb2c4382-",
"serverCallId": "aHR0cHM6Ly9hcGku...",
"timestamp": "2025-02-03T06:35:36.5744214Z"
},
"metadataVersion": "1",
"dataVersion": "1.0"
}
Steps to Enable Event Grid for Incoming Calls:
- Navigate to Azure Portal → Communication Services.
- Enable Event Grid and subscribe to Calls and Mail events.
- Choose an Endpoint Type (e.g., Storage Queue).
Here’s an example configuration with Storage Queue: