Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: Ali on November 12, 2019, 04:47:20 PM

Title: Unsupported protocol element
Post by: Ali on November 12, 2019, 04:47:20 PM
Hi, guys!

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


To get connected with the specified IXN:

        [code]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;
            }[/code]

To register;

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


After getting connected to the IXN, when I am to send [b]RequestRegisterClient[/b], 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] = "[b]Unsupported protocol element[/b]"[/quote]

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).
Title: Re: Unsupported protocol element
Post by: cavagnaro on November 12, 2019, 09:42:02 PM
Chat...against which port are you registering? default? ESP?
What are you trying to do?
Title: Re: Unsupported protocol element
Post by: RobertH on November 13, 2019, 08:41:15 AM
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?