# GetCallIdEx (/zh-CN/api-reference/rtc/csharp-windows/api-irtcengineex-getcallidex)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```csharp
public abstract int GetCallIdEx(ref string callId, RtcConnection connection);
```
客户端在每次加入频道后会生成一个对应的 callId,标识该客户端的此次通话。你可以调用该方法获取 callId 参数,然后在调用 [Rate](/zh-CN/api-reference/rtc/csharp-windows/network#api_irtcengine_rate)、[Complain](/zh-CN/api-reference/rtc/csharp-windows/network#api_irtcengine_complain) 等方法时填入。
## 调用时机 [#调用时机]
该方法需要在加入频道后调用。
## 调用限制 [#调用限制]
无。
## 参数 [#参数]
输出参数,当前的通话 ID。
Connection 信息。详见 [RtcConnection](/zh-CN/api-reference/rtc/csharp-windows/class-rtcconnection)。
## 返回值 [#返回值]
- 0: 方法调用成功。
- < 0: 方法调用失败。详见[错误码](/zh-CN/api-reference/rtc/error-code)了解详情和解决建议。
### 所属接口类 [#所属接口类]
- [IRtcEngineEx](/zh-CN/api-reference/rtc/csharp-windows/rtc-interface-class#class_irtcengineex)