2

Genesys Platform SDK 8.5 for Java でプログラムによって新しいインタラクションを作成しようとしています。

APIリファレンスの例を使用します

public void createInteraction(String ixnType, String ixnSubtype, String queue) throws Exception
{
    RequestSubmit req = RequestSubmit.create();
    req.setInteractionType(ixnType);
    req.setInteractionSubtype(ixnSubtype);
    req.setQueue(queue);
    req.setMediaType("email");

    Message response = mPMService.getProtocol("IxnSrv").request(req);
    if(response == null || response.messageId() != EventAck.ID) {
          // For this sample, no error handling is implemented
          return;
    }

    EventAck event = (EventAck)response;
    mInteractionId = event.getExtension().getString("InteractionId");
}

ただし、これにより、サポートされていないプロトコル要素エラーが発生します。

'EventError' (126) attributes:
    attr_error_desc [str] = "Unsupported protocol element"
    attr_ref_id [int] = 2
    attr_error_code [int] = 4

プログラムで新しいインタラクションを作成するにはどうすればよいですか?

4

3 に答える 3

3

インタラクション サーバーは、このリクエスト (RequestSubmit)として、MediaServerまたはこのリクエストの ClientType で接続する必要があります。AgentApplication

于 2015-09-26T14:35:41.197 に答える
2

まず、プロトコルをメディア サーバーとして開く必要があります。その後、インタラクション サーバーにインタラクションを送信する必要があります。

まず、プロトコル構成は次のようにする必要があります。

            interactionServerConfiguration.ClientName = "TestClient";
            interactionServerConfiguration.ClientType = InteractionClient.MediaServer;

            // Register this connection configuration with Protocol Manager
            protocolManagementService.Register(interactionServerConfiguration);

注 : 構成環境に MediaServer タイプのアプリケーション定義が必要です。CME でそれを確認する必要があります。ixnサーバーへの接続を開いた後。好きなインタラクションを送信できます。私と同じように、あなたも新しいタイプのインタラクションを作成できます。私はcoopate SMSシステムのためにしました。その名前は重要ではありません。これをビジネス属性で定義したので、エージェントはエージェント デスクトップから coopate サード パーティの SMS システムを送信できます。新しい拡張機能または新しいライセンスなし:) システムをだましました。また、ジェネシスはそれを許可します。私たちはジェネシスの公式サポートチームであるため、私はそれを知っています:)(ただし、エージェントの人数によっては、エージェントシートライセンスが必要になる場合があります)。

    RequestSubmit request = RequestSubmit.Create();
    request.TenantId = 1;
    request.MediaType = "email";
    request.Queue = c_inboundQueue;
    request.InteractionType = "Inbound";
    request.InteractionSubtype = "InboundNew";

    // Prepare the message to send. It is inserted in the request as UserData
    KeyValueCollection userData =
        new KeyValueCollection();

    // Prepare the message to send
    userData.Add("Subject", "subject goes here");
    request.UserData = userData;   protocolManagementService[c_interactionServerConfigurationIdentifier].Send(request);            
于 2016-07-24T18:46:27.713 に答える