Migrate Azure Communication CallingServer to Call Automation
A migration skill for moving legacy Azure Communication CallingServer Java code to the renamed Call Automation SDK.
Why it matters
This asset assists developers in migrating legacy Java code from the deprecated Azure Communication CallingServer SDK to the new Call Automation SDK. It provides code examples and highlights key class and dependency changes.
Outcomes
What it gets done
Update Maven dependencies for Azure Communication SDKs.
Refactor Java code to use new Call Automation client classes.
Adapt legacy call recording logic to the new SDK.
Understand the differences between CallingServer and Call Automation APIs.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/ag-azure-communication-callingserver-java | bash Overview
Azure Communication CallingServer (Java) - DEPRECATED
A migration skill mapping deprecated Azure Communication CallingServer Java classes and dependencies to their Call Automation equivalents. Use it only for maintaining or migrating existing legacy CallingServer code, never for new Azure Communication calling development.
What it does
This is a migration skill for Azure Communication Services' deprecated CallingServer Java SDK, which has been renamed to Call Automation. It maps the concrete changes needed: swapping the Maven dependency from azure-communication-callingserver to azure-communication-callautomation (1.6.0), and renaming classes - CallingServerClient to CallAutomationClient, CallingServerClientBuilder to CallAutomationClientBuilder - while ServerCall is removed entirely in favor of CallConnection, which itself keeps its name unchanged. Client construction moves directly across:
// 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();
Recording calls (startRecording/pauseRecording/resumeRecording/stopRecording) is shown in its old, deprecated form, with an explicit pointer to the azure-communication-callautomation skill for the current equivalent rather than duplicating it here.
When to use - and when NOT to
Use this skill only when maintaining existing legacy code still on azure-communication-callingserver, or when actively migrating that legacy code to Call Automation. Do not use this SDK for any new development - the skill explicitly redirects new projects to the azure-communication-callautomation-java skill for outbound and inbound calling, recording, DTMF recognition, text-to-speech and speech-to-text, participant management, and call transfer, none of which this legacy skill covers in its current form.
Inputs and outputs
Input is a codebase still depending on the deprecated azure-communication-callingserver artifact; output is the equivalent Maven dependency and import/class-name changes needed to move to azure-communication-callautomation, following the old-to-new mapping table for the classes that changed.
Who it's for
Java developers maintaining legacy Azure Communication Services code still on the CallingServer SDK who need to migrate it to Call Automation, not developers starting new calling-integration work.
FAQ
Common questions
Discussion
Questions & comments ยท 0
Sign In Sign in to leave a comment.