Showing results for 
Search instead for 
Did you mean: 

CTI OS Server Offline on CTI OS Server-Client connection

This document was generated from CDN thread

Created by: Naveen Lohia on 13-03-2013 07:42:45 AM
We are trying to connect with CTI OS 8.0 server using the following arguments through Java CIL:
            rArgSessionConn.SetValue(CTIOS_CTIOSA, "");
            rArgSessionConn.SetValue(CTIOS_PORTA, "42027");
            rArgSessionConn.SetValue(CTIOS_HEARTBEAT, "60");
            rArgSessionConn.SetValue(CTIOS_CLIENTID, "PGUser4");
            rArgSessionConn.SetValue(CTIOS_CLIENTPASSWORD, "Cisco@123");
and getting the following error logs:

03/13/2013 15:14:12.102 CtiOsSession(970110).FailOverConnect, Client connecting to [], port [42027]
03/13/2013 15:14:12.102 NetPort(11155366).Open, Waiting for Socket to connect...
03/13/2013 15:14:12.796 CilPacket(12285785).ReadFromPort, ERROR: Read invalid packet length (0) from header
03/13/2013 15:14:12.797 CilConnection(13238549).ReadPacket, Socket read error, closing connection
03/13/2013 15:14:12.797 CilConnection(13238549).StopWatchdog, Waiting for watchdog to exit...
03/13/2013 15:14:12.798 CilConnection(13238549).WatchdogThread, Caught Watchdog shutdown event, exiting thread.
03/13/2013 15:14:12.798 CilConnection(13238549).StopWatchdog, Watchdog thread joined.
03/13/2013 15:14:12.799 CilConnection(13238549).ReadPacket, Calling OnLinkFailed( 2 (eTransportError) )
03/13/2013 15:14:12.799 CilConnection(13238549).ReceiverThread, ReadPacket returned error. Link is presumed closed, Exiting thread.
03/13/2013 15:14:12.800 EventSink.OnConnectionFailure, Connection failed!
03/13/2013 15:14:12.801 CtiOsSession(970110).NotifyConnectionIsLost, Adding system event eSysCTIOSServerOffline
03/13/2013 15:14:12.801 CtiOsSession(970110).OnCtiOsFailure, FAILURE CODE(10)
    ERROR MESSAGE: CTI OS Server Offline
03/13/2013 15:14:12.802 CtiOsSession(970110).OnCtiOsFailure, Server Connection Status: CTI OS Server Offline
From the logs, it seems that the error is due to some SSL settings. Setup is such that we can't make any changes on the server side. Please suggest any method to rectify the same on client side. 

Subject: RE: CTI OS Server Offline on CTI OS Server-Client connection
Replied by: AARNE KYLAKALLIO on 13-03-2013 09:26:14 AM
Hi, typically 42027 is a cti-server port for CG1 and 42028 is for ctios-server. Are you sure you are using the rigth port?

Subject: RE: New Message from Naveen Lohia in Computer Telephony Integration Object
Replied by: David Lender on 13-03-2013 12:35:49 PM
The CTIOS Session Connect method does not include a ClientID or Password.

Your connect should be

// Set the connection info in the Arguments
                                rArgSessionConn.SetValue(CTIOS_CTIOSA, m_sHostA );
                                rArgSessionConn.SetValue(CTIOS_PORTA, m_iPortA );
                                rArgSessionConn.SetValue(CTIOS_CTIOSB, m_sHostB );
                                rArgSessionConn.SetValue(CTIOS_PORTB, m_iPortB );
                                rArgSessionConn.SetValue(CTIOS_HEARTBEAT, m_iHeartBeat );

                                // Open the connection
                                iRetVal = m_ctiSession.Connect(rArgSessionConn);

Can you connect using the JavaPhone sample?  With the CTIOS Agent desktop?

Subject: RE: New Message from David Lender in Computer Telephony Integration Object
Replied by: David Lender on 13-03-2013 12:37:49 PM
Also check the port number as was suggested it is likely 42028 rather than 42027.

Subject: RE: CTI OS Server Offline on CTI OS Server-Client connection
Replied by: Naveen Lohia on 14-03-2013 12:33:49 AM
Thanks David and AARNE for ur quick reply.

CTI OS server is now connected using port 42028. :-)