« Back to CTIOS Toolkit Questions

CTI OS Server Offline on CTI OS Server-Client connection

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
We are trying to connect with CTI OS 8.0 server using the following arguments through Java CIL:
            rArgSessionConn.SetValue(CTIOS_CTIOSA, "172.19.150.24");
            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 [172.19.150.24], 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. 

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?

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);
b

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

Also check the port number as was suggested it is likely 42028 rather than 42027.

Thanks David and AARNE for ur quick reply.

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

David Lender (474)
Shannon McCoy (91)
Arthur Shats (57)
Christopher Nagel (47)
GEOFFREY THOMPSON (40)