Author Topic: Unsupported protocol element  (Read 348 times)

Offline Ali

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
  • Haunted by Genesys
    • My Web Site
Unsupported protocol element
« on: November 13, 2019, 01:47:20 AM »
Hi, guys!

First let me share my C#.Net code with you:


To get connected with the specified IXN:

       
Code: [Select]
public void connect(string interactionServerName, string interactionServerHost, int interactionServerPort)
        {
            Uri interactionServerUri = new Uri("tcp://"
                + interactionServerHost
                + ":"
                + interactionServerPort);

            this.interactionServerProtocol = new InteractionServerProtocol(
                new Endpoint(interactionServerName, interactionServerUri)
                );

            this.interactionServerProtocol.ClientName = "AliTestClient";
            this.interactionServerProtocol.ClientType = Genesyslab.Platform.OpenMedia.Protocols.InteractionServer.InteractionClient.MediaServer;
            this.interactionServerProtocol.MediaType = "chat";

            try
            {
                this.interactionServerProtocol.Open();
                this.isConnected = true;
            }
            catch(Exception ex)
            {
                Console.WriteLine(ex);
                this.isConnected = false;
            }

To register;

Code: [Select]
        public void registerApplication(string appName)
        {
            RequestRegisterClient reqClient = RequestRegisterClient.Create(InteractionClient.MediaServer, appName);
            reqClient.MediaType = "chat";
            this.interactionServerProtocol.Send(reqClient);
            Console.WriteLine("Registering client...");
        }


After getting connected to the IXN, when I am to send RequestRegisterClient, I end up with

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

Any idea on why I'm having "Unsupported protocol element" exception?

Cheers!

P.S. We have Genesys 8.5 -- No logs for now -- will provide tomorrow in the morning (our Genesys admins are away and having beer with chicks).
Ali

"beer makes you smart
it made budwiser"

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7040
  • Karma: 56330
Re: Unsupported protocol element
« Reply #1 on: November 13, 2019, 06:42:02 AM »
Chat...against which port are you registering? default? ESP?
What are you trying to do?

Offline RobertH

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 1
Re: Unsupported protocol element
« Reply #2 on: November 13, 2019, 05:41:15 PM »
Without logs I'm guessing, you probably are trying to connect with application developed with psdk 7.X to environment 8.5. Therefore this unsupported error?
Robik