azure-communication-callingserver-java

SDK Java Azure Communication Services CallingServer (hérité). Remarque - Ce SDK est déprécié. Utilisez azure-communication-callautomation à la place pour les nouveaux projets. N'utilisez cette skill que pour la maintenance de code existant.

npx skills add https://github.com/microsoft/skills --skill azure-communication-callingserver-java

Azure Communication CallingServer (Java) - DEPRECATED

⚠️ DEPRECATED : Ce SDK a été renommé en Call Automation. Pour les nouveaux projets, utilisez azure-communication-callautomation à la place. Cette skill est réservée à la maintenance du code existant.

Migration vers Call Automation

<!-- ANCIEN (deprecated) -->
<dependency>
    <groupId>com.azure</groupId>
    <artifactId>azure-communication-callingserver</artifactId>
    <version>1.0.0-beta.5</version>
</dependency>

<!-- NOUVEAU (à utiliser à la place) -->
<dependency>
    <groupId>com.azure</groupId>
    <artifactId>azure-communication-callautomation</artifactId>
    <version>1.6.0</version>
</dependency>

Modifications des noms de classe

CallingServer (ancien) Call Automation (nouveau)
CallingServerClient CallAutomationClient
CallingServerClientBuilder CallAutomationClientBuilder
CallConnection CallConnection (identique)
ServerCall Supprimé - utiliser CallConnection

Création de client legacy

// ANCIENNE MÉTHODE (deprecated)
import com.azure.communication.callingserver.CallingServerClient;
import com.azure.communication.callingserver.CallingServerClientBuilder;

CallingServerClient client = new CallingServerClientBuilder()
    .connectionString("<connection-string>")
    .buildClient();

// NOUVELLE MÉTHODE
import com.azure.communication.callautomation.CallAutomationClient;
import com.azure.communication.callautomation.CallAutomationClientBuilder;

CallAutomationClient client = new CallAutomationClientBuilder()
    .connectionString("<connection-string>")
    .buildClient();

Enregistrement legacy

// ANCIENNE MÉTHODE
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);

// NOUVELLE MÉTHODE - voir la skill azure-communication-callautomation

Pour les nouveaux développements

N'utilisez pas ce SDK pour les nouveaux projets.

Consultez la skill azure-communication-callautomation-java pour :

  • Effectuer des appels sortants
  • Répondre aux appels entrants
  • Enregistrement d'appels
  • Reconnaissance DTMF
  • Synthèse vocale / reconnaissance vocale
  • Ajouter/retirer des participants
  • Transfert d'appels

Phrases déclencheurs

  • « callingserver legacy », « deprecated calling SDK »
  • « migrate callingserver to callautomation »

Skills similaires