Chuyển đến nội dung
Skillpedia
Tự động hóa48k · #3910

azure-communication-callingserver-java

Skill này làm gì

Đoạn mã này dành cho một hệ thống liên lạc thoại cũ đã được thay thế. Nó cho phép điều khiển cuộc gọi và ghi âm, nhưng không nên dùng trong dự án mới.

Khi nào nên dùng

  • ✓Khi bạn bảo trì một hệ thống liên lạc cũ đang dùng đoạn mã này.
  • ✓Khi bạn chuyển một dự án cũ sang hệ thống liên lạc mới hơn.
  • ✓Khi bạn tìm hiểu cách một hệ thống liên lạc cũ từng hoạt động.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azure-communication-callingserver-java/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azure-communication-callingserver-java/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để cập nhật mã cũ sang dùng hệ thống gọi điện mới?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Đoạn mã này là một “package” cũ để tạo và quản lý cuộc gọi thoại. Nó cung cấp hướng dẫn cho những ai cần làm việc với hệ thống hiện có, cho thấy nó đã được dùng thế nào và cách chuyển sang hệ thống mới.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Azure Communication CallingServer (Java) - DEPRECATED

⚠️ 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.

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.
Câu hỏi thường gặp

Vì sao đoạn mã này được đánh dấu “DEPRECATED”?

Vì nó đã được thay thế bằng một hệ thống mới và tốt hơn tên là “Call Automation”. Với dự án mới, bạn nên dùng “Call Automation”.

Tôi có thể dùng đoạn mã này trong dự án mới không?

Không, đoạn mã này chỉ dùng để bảo trì hệ thống cũ hoặc hỗ trợ việc chuyển đổi sang hệ thống mới. Đừng tạo bất cứ thứ gì mới bằng nó.

Điều gì thay đổi từ mã cũ sang mã mới?

Tên của một số phần mã đã thay đổi (ví dụ 'CallingServerClient' đổi thành 'CallAutomationClient') và cách ghi âm cuộc gọi cũng đã được cập nhật.

Chi tiết

Mô tả gốc của tác giả

⚠️ 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.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3910
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự