How to find call Id

Soundhar M 30 Reputation points
2024-06-06T03:22:30.17+00:00

I Receive an Incoming call Event(PSTN inbound call IVR) but no keys are present in the name of call Id how to I Identify this ID

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

1 answer

Sort by: Most helpful
  1. ajkuma 24,396 Reputation points Microsoft Employee
    2024-06-10T08:56:02.0166667+00:00

    @Soundhar M , Apologies for the delayed response from over the weekend.

    Based on my understanding of your issue description. In Azure Communication Services (ACS) the call id can be retrieved by calling the call.getCallId() method on a call object after a call ends. This call is an instance of a call created by callAgent.startCall(…) or callAgent.join(…) methods.

    If you are looking for the serverCallId, it can be accessed by calling call.getInfo().getServerCallId().get();. You can send this serverCallId to your recording server to start the call recording ( SO thread, I'd answered).

    These methods should be called after the call has ended.

    In case, if you are still having trouble finding the call id, you may checkout these:

    1. ACS | Manage calls
    2. Troubleshooting in ACS -When troubleshooting voice or video calls, you may be asked to provide a call ID. This value can be accessed via the id property of the call object.
    // `call` is an instance of a call created by `callAgent.startCall` or `callAgent.join` methods
    console.log(call.id)
    
    

    Kindly let us know how it goes or if I misunderstood your ask, I'll follow-up with you.


     If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will benefit community members to find the answers quickly. 

    0 comments No comments