getCallIdEx

Gets the call ID with the connection ID.

virtual int getCallIdEx(agora::util::AString& callId, const RtcConnection& connection) = 0;
Since
v4.3.1

When a user joins a channel on a client, a callId is generated to identify the call from the client. You can call this method to get callId, and pass it in when calling methods such as rate and complain.

Call timing

Call this method after joining a channel.

Restrictions

None.

Parameters

callId
Output parameter, the current call ID.
connection
The connection information. See RtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.