呼叫自动化迁移_azure-communication-callingserver-java
以下为本文档的中文说明
⚠️ 该技能已弃用。此SDK已更名为Call Automation(呼叫自动化)。对于新项目,应使用azure-communication-callautomation替代。该技能仅用于维护遗留代码。主要功能曾是为Java开发者提供Azure通信服务的通话服务器功能,允许在应用中以编程方式管理和控制通话。使用场景现在仅限于维护已有的使用旧版SDK的遗留系统。迁移指南指出,新旧版本之间存在类名变更对应关系,例如CallingServerClient变为CallAutomationClient,旧Maven坐标com.azure:azure-communication-callingserver需要替换为com.azure:azure-communication-callautomation并更新版本号。核心建议是所有使用该SDK的项目尽快迁移到新的Call Automation SDK,以获得持续的安全更新和新功能支持。该技能的存在提醒开发者注意技术栈的演进和迁移的重要性。
Azure Communication CallingServer (Java) - DEPRECATED
⚠️ DEPRECATED: This SDK has been renamed to Call Automation. For new projects, use
azure-communication-callautomationinstead. This skill is for maintaining legacy code only.
Migration to Call Automation
<!-- OLD (deprecated) -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-callingserver</artifactId>
<version>1.0.0-beta.5</version>
</dependency>
<!-- NEW (use this instead) -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-callautomation</artifactId>
<version>1.6.0</version>
</dependency>
Class Name Changes
| CallingServer (Old) | Call Automation (New) |
|---|---|
CallingServerClient |
CallAutomationClient |
CallingServerClientBuilder |
CallAutomationClientBuilder |
CallConnection |
CallConnection (same) |
ServerCall |
Removed - use CallConnection |
Legacy Client Creation
// OLD WAY (deprecated)
import com.azure.communication.callingserver.CallingServerClient;
import com.azure.communication.callingserver.CallingServerClientBuilder;
CallingServerClient client = new CallingServerClientBuilder()
.connectionString("<connection-string>")
.buildClient();
// NEW WAY
import com.azure.communication.callautomation.CallAutomationClient;
import com.azure.communication.callautomation.CallAutomationClientBuilder;
CallAutomationClient client = new CallAutomationClientBuilder()
.connectionString("<connection-string>")
.buildClient();
Legacy Recording
// OLD WAY
StartRecordingOptions options = new StartRecordingOptions(serverCallId)
.setRecordingStateCallbackUri(callbackUri);
StartCallRecordingResult result = client.startRecording(options);
String recordingId = result.getRecordingId();
client.pauseRecording(recordingId);
client.resumeRecording(recordingId);
client.stopRecording(recordingId);
// NEW WAY - see azure-communication-callautomation skill
For New Development
Do not use this SDK for new projects.
See the azure-communication-callautomation-java skill for:
- Making outbound calls
- Answering incoming calls
- Call recording
- DTMF recognition
- Text-to-speech / speech-to-text
- Adding/removing participants
- Call transfer
Trigger Phrases
- “callingserver legacy”, “deprecated calling SDK”
- “migrate callingserver to callautomation”
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构
更多推荐


所有评论(0)