azure-communication-callingserver-java
它能做什么
这是一个已被取代的旧语音通信系统所使用的代码。它可以控制通话和录音,但不应用于新项目。
适用场景
- ✓维护一个仍在使用这些代码的旧通信系统时。
- ✓将旧项目迁移到新的通信系统时。
- ✓了解旧通信系统是如何工作的时候。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azure-communication-callingserver-java/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该如何把旧代码更新为使用新的通话系统?”
每周 5 个新技能,1 分钟读完。
工作原理
这段代码是一个旧的“包”,用于创建和管理语音通话。它为需要维护现有系统的人提供参考,说明它以前是如何使用的,以及如何切换到新系统。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 legacyClient = new CallingServerClientBuilder()
.connectionString("<connection-string>")
.buildClient();
// NEW WAY
import com.azure.communication.callautomation.CallAutomationClient;
import com.azure.communication.callautomation.CallAutomationClientBuilder;
CallAutomationClient automationClient = new CallAutomationClientBuilder()
.connectionString("<connection-string>")
.buildClient();
Legacy Recording
// OLD WAY
StartRecordingOptions options = new StartRecordingOptions(serverCallId)
.setRecordingStateCallbackUri(callbackUri);
StartCallRecordingResult result = legacyClient.startRecording(options);
String recordingId = result.getRecordingId();
legacyClient.pauseRecording(recordingId);
legacyClient.resumeRecording(recordingId);
legacyClient.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
Use only when maintaining historical CallingServer code or planning migration to azure-communication-callautomation-java; do not start new integrations with the retired package.
Limitations
- Legacy and new snippets are alternative fragments, not a drop-in migration. Pin reviewed package versions and verify the exact replacement API; the legacy recording options are not assumed compatible with Call Automation.
- Call control and recording can affect real participants, costs and sensitive communications. Obtain call/account authorization and required participant consent, keep credentials out of code/logs, and never place or record a call merely to validate these examples.
- 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.
常见问题
为什么这段代码被标记为“DEPRECATED”?
因为它已被一个更新、更好的系统“Call Automation”取代。新项目应使用“Call Automation”。
我可以在新项目中使用这段代码吗?
不可以。这段代码仅用于维护旧系统,或协助过渡到新系统。请不要用它开发任何新内容。
从旧代码到新代码有哪些变化?
一些代码部分的名称发生了变化(例如“CallingServerClient”变成了“CallAutomationClient”),录制通话的方式也进行了更新。
详情
作者的原始描述
⚠️ DEPRECATED: This SDK has been renamed to Call Automation. For new projects, use azure-communication-callautomation instead. This skill is for maintaining legacy code only.
热度
- GitHub 星标
- 48k
- 排名
- #3910
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。