Azure Communication Services Call Latency

Dave Weisberg 0 Reputation points
2025-04-26T23:03:51.95+00:00

We are experiencing longer than normal latency using Azure Communication Services when connecting two PTSN participants.

We are using AzureCommunicationServices.CallAutomation NuGet package v1.2.0 and the CreateCallAsync method to establish a call to a single PTSN participant. And then we subsequently use the AddParticipantAsync method to add a second PTSN participant to the Session.

The latency between these two participants is typically between 1 - 2 seconds as measured by using a voice echo test phone number found here https://testcall.com/804-222-1111/. If I call the voice echo test phone number directly from my cell phone, I get about 100-200 mSec of latency. So the latency is significantly increased using the Azure Communication Services service.

My end users are complaining that the latency is intolerable for their needs, and they quite often will not use the service because it is so disruptive to their work.

Why is this latency so long, and is there any way to reduce it?

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

1 answer

Sort by: Most helpful
  1. Dave Weisberg 0 Reputation points
    2025-04-29T01:58:15.5366667+00:00

    Hello Bhargavi Naragani,

    Thank you so much for your response. I appreciate your feedback and will attempt to answer your questions.

    My call setup process is as follows. Please let me know if my setup can be improved.

    private void StartCall(string targetPhoneNumber, string acsPhoneNumber) 
    {
        var target = new PhoneNumberIdentifier(targetPhoneNumber); // PTSN phone number
    	var caller = new PhoneNumberIdentifier(acsPhoneNumber);  // Azure Communication Service Phone Number
        var callInvite = new CallInvite(target, caller);
    
        CreateCallOptions options = new CreateCallOptions(callInvite, new Uri(callback));
        CreateCallResult createCallResult = await client.CreateCallAsync(options);
        
        _CallId = createCallResult.CallConnectionProperties.CallConnectionId;
    }
     
    private void AddCaller(string targetPhoneNumber, string acsPhoneNumber) 
    (
        var existingConnection = client.GetCallConnection(_CallId);
        var target = new PhoneNumberIdentifier(targetPhoneNumber); // PTSN phone number
    	var caller = new PhoneNumberIdentifier(acsPhoneNumber);  // Azure Communication Service Phone Number
        var callInvite = new CallInvite(target, caller);
        AddParticipantOptions participantOptions = new AddParticipantOptions(callInvite);
        AddParticipantResult result = await existingConnection.AddParticipantAsync(participantOptions);
    }
       
    

    I'm unaware of the interactions between the signaling layer and media transport. Do you know of any documentation that can help point me in the right direction to optimize this?

    If you have any docs on how to configure proper QoS for my Azure setup to prioritize voice traffic, that would be great. I assumed that Azure Communication Services would handle network operations, so I haven't looked into this.

    Both calls are established from Azure Communication Services to PTSN telephones. I'm not sure how I would go about checking the network latency at both ends? A telephone cannot provide network statistics and neither participant even requires a network connection.

    The geographic locations of the participants are somewhere in the United States, so there could be as much as 3500 miles between participants. Is there anything I can do to reduce latency due to distance? Maybe there is a relationship between the Azure Communication Services configuration and the location of the participants? Can you provide any insight?

    I don't know of any network appliances between the participant's PTSN telephone and Azure Communication Services. Participants are using telephones connected to public telephone services.

    Neither participant has a broadband connection. The calls are being received on their PTSN telephones, so I'm assuming the quality of their broadband connection (if they had a broadband connection) doesn't apply.

    I have noticed no change in latency during different times of the day.

    Look forward to your reply!

    Thank you!

    -Dave

    0 comments No comments

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.