Real-time notification of incoming PSTN calls with Azure Communication Services

Ottmann, Thomas 40 Reputation points
2025-01-20T09:19:53.3333333+00:00

Hi Community,

is it possible to receive real-time notification of incoming PSTN calls with the Azure Communication Services?

When a PSTN call comes in, i would like to read the caller's information like Caller-Id, Phonenumber, E-Mail etc. to send it to a service-desk application. I need the information when the call comes in and before I have accepted it. Is there a solution for this use case?

I would be very grateful for any help.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,051 questions
{count} votes

Accepted answer
  1. Sampath 1,420 Reputation points Microsoft External Staff
    2025-02-03T07:33:22.45+00:00

    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:

    1. Navigate to Azure Portal → Communication Services.
    2. Enable Event Grid and subscribe to Calls and Mail events.
    3. Choose an Endpoint Type (e.g., Storage Queue).

    Here’s an example configuration with Storage Queue:

    enter image description here

    enter image description here

    enter image description here


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.