This document was generated from CDN thread
Created by: Christopher Nagel on 03-11-2010 08:50:28 PM
My Java CTIOS client connects to CTIOS and in response to OnConnection, submits cached agent data. Then, in response to OnAgentInfo (successful login), it starts a sister process (built with COM CIL) and passes all the configuration data to it. The COM CIL sister process then does the same thing (Connect and then SetAgentMode). At the end of it (normally), both clients are logged into the same agent at the same extension.
I am noticing that if there is a failover situation, the COM CIL may need some extra help in dealing with it, and I wonder is that correct? Below are logs from the same session, the first from Java, the second from COM. Note that the Java CIL found and connected back to side A when Side B refused, but the COM CIL just gave up when Side B failed. (NOTE: I have changed our internal config info. Side A is represented by 10.9.9.9 and side B by 10.10.10.10.)
Based on these logs, is there coding that I need to add to the COM CIL client to make it as resilient to failover as the Java?
Thanks,
Chris
JAVA CIL:
11/03/2010 16:21:29.328 Connecting to CTIOS Server...
11/03/2010 16:21:29.390 CtiOsSession(24562387).CtiOsSession()
Version Information:
Product: CTI OS Java CIL 7.0.0, 09816
Date: February 06, 2008 06:35:00
Copyright (c) 2000 - 2008, Cisco Systems, Inc., All rights reserved.
11/03/2010 16:21:29.437 NetPort(2112561).Open, Waiting for Socket to connect...
11/03/2010 16:21:39.500 NetPort(2112561).Open, Caught Exception, Socket connect timed out
11/03/2010 16:21:39.500 CilConnection(2569862).OpenConnection, FAILED to open link
11/03/2010 16:21:39.500 CilConnection(2569862).OpenConnection, FAILED
11/03/2010 16:21:39.500 Connecting...
11/03/2010 16:21:39.500 CONNECTION FAILURE (EventTime:25299500 ReasonCode:3 FailedServer:10.10.10.10 ErrorMessage:CtiOsSession: Cannot connect to a server.)
11/03/2010 16:21:39.500 CtiOsSession(24562387).NotifyConnectionIsLost, Adding system event eSysCTIOSServerOffline
11/03/2010 16:21:39.500 CtiOsSession(24562387).OnCtiOsFailure, FAILURE CODE(10) ERROR MESSAGE: CTI OS Server Offline
11/03/2010 16:21:39.500 CtiOsSession(24562387).OnCtiOsFailure, Server Connection Status: CTI OS Server Offline
11/03/2010 16:21:39.500 Offline
11/03/2010 16:21:39.531 CtiOsSession(24562387).FailOverConnect, Client connecting to [10.9.9.9], port [42028]
11/03/2010 16:21:39.531 NetPort(15142448).Open, Waiting for Socket to connect...
11/03/2010 16:21:39.812 CtiOsSession(24562387).NotifyConnectionRestored, Adding system event eSysCTIOSServerOnline
11/03/2010 16:21:39.812 CtiOsSession(24562387).OnCtiOsFailure, FAILURE CODE(10) ERROR MESSAGE: CTIOS Server Online
11/03/2010 16:21:39.812 CtiOsSession(24562387).OnCtiOsFailure, Server Connection Status: CTIOS Server Online
11/03/2010 16:21:39.812 Offline
11/03/2010 16:21:39.812 CtiOsSession(24562387).OnConnection, Current Agent reference is null
11/03/2010 16:21:39.812 OnConnection: (EventTime:25299812 CurrentServer:10.9.9.9 CurrentPort:42028)
11/03/2010 16:21:39.812 You can Login now!
COM CIL:
11/03/10 16:21:41.062 804 comCilClient Thd(3752) ** Attempting to connect to server [10.10.10.10 (10.10.10.10) port:42028] **
11/03/10 16:22:02.062 804 comCilClient Thd(3752) CNetPort(00B15108):: Open, WARNING,, Connection to Host[], Connection timed out. (WSAETIMEDOUT), Error Number(10060).
11/03/10 16:22:02.062 804 comCilClient Thd(3752) ** Attempting to connect to server [10.10.10.10 (10.10.10.10) port:42028] **
11/03/10 16:22:22.984 804 comCilClient Thd(3752) CNetPort(00B15108):: Open, WARNING,, Connection to Host[], Connection timed out. (WSAETIMEDOUT), Error Number(10060).
11/03/10 16:22:22.984 804 comCilClient Thd(3752) CCilConnection(00B14F70):: OpenConnection, FAILED
11/03/10 16:22:22.984 804 comCilClient Thd(3752) Connection disconnected, host [10.10.10.10].
11/03/10 16:22:22.984 804 comCilClient Thd(3752) CCtiOsObject(00B0D8F8):: ReportError( Code(-1) )
11/03/10 16:22:22.984 804 comCilClient Thd(2736) CCtiOsSession:: OnEvent( eOnConnectionFailure ), EnablementMask = ffffffff
11/03/10 16:22:22.984 804 comCilClient Thd(2736) CCtiOsSession:: OnEvent, (MessageID:eOnConnectionFailure EventTime:25342984 ReasonCode:3 FailedServer:10.10.10.10)
11/03/10 16:22:22.984 804 comCilClient Thd(2736) CCtiOsSession:: OnConnectionFailure()
11/03/10 16:22:22.984 804 comCilClient Thd(3752) CService(00B0D95C):: SendMessage, Link not established, cannot send message.
11/03/10 16:22:23.000 CTIOSTrace - CConnectionMonitor:: MonitorThread, Connection (comCilClient.exe_804_1632) Abandoned
11/03/10 16:22:23.000 CTIOSTrace - CConnectionMonitor:: RemoveClient, Removing Connection (comCilClient.exe_804_1632)
11/03/10 16:22:23.000 CTIOSTrace - CConnectionMonitor:: MonitorThread, Posting Quit Message
11/03/10 16:22:23.000 CTIOSTrace - WndProc(WM_DESTROY)