Author Message
Kenji
Joined: Jan 22, 2015
Messages: 105
Offline
Hi Team,

We performed the AES connector failover test as below.
In this test case, we connected two AESs without any HA configuration.
Therefore both AESs are working as active.
- Case1 : Link down(LAN cable disconnect for Main AES) on Main AES side connection. Then we expected to do failover from Main AES to Sub AES.
- Case2 : Link down(LAN cable disconnect for Sub AES) on Sub AES side connection. Then we expected no effects to Main AES connection and AES connector operation.

For Case1, the Failover function by AES connector worked without any problem.
It is estimated phenomenon(Good Results).

For Case2, AES connector didn't work about 60 sec after detected Linkdown.
We didn't estimate this phenomenon.
Is this normal operation as AES connector?

In this case, when we maked call before Linkdown with IVR, this call(session ID = 12388) was disconnected 40 sec timeout later based on the OD application log
---------------------------------------------------------------
> fsutap10_trace.log

02/03/2017
20:32:25 Established Call
(MPP port 89914, ApplicationServer 10.140.33.71)
20:32:59 Sub AES LAN cable disconnected
20:33:43 issued CTI disconnect command?AES Connector didn't reply to this comamnd)

20:33:43:496 DEBUG - getObserversFromCallId: gathering observers... done waiting on sync list size of list is
20:34:08 AES Connector detect Sub AES link-down
20:34:08:881 DEBUG - ProviderMonitor:AES-EP-B got an exception getting date/time attempt:0 error:no conf event
--------------------------------------------------------------------------------
> fsutap10_eMB_IVR_Member.trace.log

02/03/2017 20:33:43 INFO - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : Using SCESession ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member servlet : M_End-M_Disconnect
02/03/2017 20:33:43 DEBUG - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : CTICommand.execute: encrypted value is XHLGU0OPUf53ZmNdsPGOdh7bKYbJZNsA
02/03/2017 20:33:43 DEBUG - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : VariableUtil.getVariableValue: Variable value is 12388
02/03/2017 20:33:43 DEBUG - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : CTICommand.execute: request to manager is https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A9082_aesconnector_Disconnect-3Fcallid-253D12388-2526extension-253D89114-26k-3DXHLGU0OPUf53ZmNdsPGOdh7bKYbJZNsA&d=DQIFJg&c=BFpWQw8bsuKpl1SgiZH64Q&r=oSKVie1FyZqBNq8gvMFwyA&m=EfZ_in6EZ1JjA9c5XgL8-P5nvyOm1PFZ92drSWorT2o&s=udL-sq2Ehh_E0liS7K9JVmuqqm2wNelfksJbrRAVSpo&e=
02/03/2017 20:33:43 DEBUG - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : CTICommand.execute: setting session cookie to ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member
02/03/2017 20:34:23 INFO - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : HTTP Session lost removing SCESession ESjNJMoZnWHjMfVX-U463v2
02/03/2017 20:34:23 INFO - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : SCESession Removed
02/03/2017 20:34:23 DEBUG - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : Removing 1 session stack frames.
02/03/2017 20:34:23 INFO - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : ** Popped Stack Frame [/eMB_IVR_Member]
---------------------------------------------------------------

At this time, if we sent CTI disconnect command from OD application, AES connector didn't reply to any those commands.
After 60 sec later, It seems that AES connector could receive this CTI disconnect command.
However this call was already disconnected. Then this CTI disconnect command was failed as "INVALID".
-----
> fsutap10_eMB_IVR_Member.trace.log
02/03/2017 20:33:43 DEBUG - ESjNJMoZnWHjMfVX-U463v2:/eMB_IVR_Member : CTICommand.execute: request to manager is http://localhost:9082/aesconnector/Disconnect?callid%3D12388%26extension%3D89114&k=XHLGU0OPUf53ZmNdsPGOdh7bKYbJZNsA
(60 sec later)
02/03/2017 20:34:43:577 DEBUG - CTIConnectorManager.dropCall: Call state of call 12388 is INVALID
-----

Based on JTAPI log(fsutap10_tsapi_trace.txt.1), we found below message.
Then we are thinking that AES connector tried to connect to both AES(Main and Sub) after link down to Sub AES.
-----
> fsutap10_tsapi_trace.txt.1
2017-03-02 20:33:41,734 [QuartzScheduler_Worker-1] INFO  TSProviderImpl - TSProvider.shutdown - already in shutdown, redundant call, returning.
2017-03-02 20:33:41,734 [QuartzScheduler_Worker-1] INFO  TSProviderImpl - TSProvider: version ‘6.1.0.94 [production build]’, for TSProvider[#3]@2aad1637
2017-03-02 20:33:41,734 [QuartzScheduler_Worker-1] INFO  TSProviderImpl - TSProvider: calling acsOpenStream serverID=AVAYA#AESSW4#CSTA#msatae4 loginID=vp passwd=******* for TSProvider[#3]@2aad1637
2017-03-02 20:33:41,734 [QuartzScheduler_Worker-1] DEBUG TsapiSessionFactoryOio - Attempting to connect to server </10.140.27.80:450>?* IP address of Main AES
2017-03-02 20:33:41,734 [QuartzScheduler_Worker-1] INFO  TsapiChannelOio - browser: GENERIC
2017-03-02 20:33:41,735 [QuartzScheduler_Worker-1] DEBUG TsapiSessionFactoryOio - Successfully  connected to server </10.140.27.80:450>
...
2017-03-02 20:33:41,774 [QuartzScheduler_Worker-1] DEBUG TsapiSessionFactoryOio - Attempting to connect to server </10.140.27.90:450>?* IP address of Sub AES
2017-03-02 20:33:41,774 [QuartzScheduler_Worker-1] INFO  TsapiChannelOio - browser: GENERIC

Best regards,
K.Yamahara
Kenji
Joined: Jan 22, 2015
Messages: 105
Offline
The attached file is some logs we corrected.
If you need other logs, please let me know.

Best regards,
K.Yamahara
Filename tsapi.zip [Disk] Download
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
This issue seems to be more complex than can be handled in the forum. I suggest you open a Technical Support ticket for it.

You mentioned AES Connector, in which case, I think you should open a ticket against Orchestration Designer as, I think, AES Connector is associated with it. If you are using the JTAPI SDK, you should open a ticket against JTAPI.

Martin
Kenji
Joined: Jan 22, 2015
Messages: 105
Offline
Hi Martin-san,

Thank you for your advice.
I will raise new ticket for OD forum.

Thank you, K.Yamahara
Kenji
Joined: Jan 22, 2015
Messages: 105
Offline
Hi Martin-san,

I have discussed this with OD guy as below.
https://www.devconnectprogram.com/forums/posts/list/20982.page#p149179

In this discussion, I could get below comments from him.
Please advice reason why below communication errors were happen.
Or if you have any idea to resolve those error, please advice.

-----
It turned out you have exceptions like the following starting 20:33. The communication error showing in JTAPI is the real culprit of the delay and other problem.

2017-03-02 20:34:23,303 [GetEventThread] ERROR TSEventHandler - Event Distributor Exception - shutting down provider TSProvider[#4]@dde2c2a6
2017-03-02 20:34:23,303 [GetEventThread] ERROR TSEventHandler - read request failed
com.avaya.jtapi.tsapi.TsapiSocketException: read request failed
at com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession.handleException(TsapiSession.java:932)
at com.avaya.jtapi.tsapi.tsapiInterface.oio.TsapiChannelOio$OioChannelThread.run(TsapiChannelOio.java:261)
Caused by: java.net.SocketException: ƒŠƒ‚?[ƒg?EƒzƒXƒg‚̓^ƒCƒ€ƒAƒEƒgŠúŠÔ“à‚ɉž“š‚µ‚Ü‚¹‚ñ‚Å‚µ‚½?B
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:161)
at java.net.SocketInputStream.read(SocketInputStream.java:132)
at com.avaya.jtapi.tsapi.tsapiInterface.streams.IntelSocketInputStream.readFully(IntelSocketInputStream.java:49)
at com.avaya.jtapi.tsapi.tsapiInterface.streams.IntelSocketInputStream.readInt(IntelSocketInputStream.java:60)
at com.avaya.jtapi.tsapi.tsapiInterface.oio.TsapiChannelOio$OioChannelThread.run(TsapiChannelOio.java:255)
-----

----- OD engineer comments -----
It looks like the aes connector gets the command "02/03/2017 20:33:43:496 DEBUG - getObserversFromCallId" from the app; however, it could not return until about a minute later "02/03/2017 20:34:43:525 DEBUG - getObserversFromCallId: done gathering observers". What I think happening is the the code in the same method is waiting (synchronized) on the list of observers being processed at the same time as the AES-EP-B is going down. So it looks like in certain case, there is a delay when the AES is going down. I also notice in your system it take 20 seconds in between each check on each AES "for availability". The monitor thread in AES connector checks every 8 seconds. So there is an unusual delay there to begin with.

02/03/2017 20:33:43:496 DEBUG - getObserversFromCallId: gathering observers... done waiting on sync list size of list is 187

02/03/2017 20:34:08:881 DEBUG - ProviderMonitor:AES-EP-B got an exception getting date/time attempt:0 error:no conf event
02/03/2017 20:34:08:881 DEBUG - ProviderMonitor:AES-EP-B got a null getting date/time attempt:0
02/03/2017 20:34:28:972 DEBUG - ProviderMonitor:AES-EP-B got an exception getting date/time attempt:1 error:send request failed
02/03/2017 20:34:28:972 DEBUG - ProviderMonitor:AES-EP-B got a null getting date/time attempt:1
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent: Number of events on extension 89114 is 5
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent 89114: Event: 0 is 117 for call 12388 Provider:AES-EP-A
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent:89114: got an unknown event 117
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent 89114: Event: 1 is 215 for call 12388 Provider:AES-EP-A
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent:89114: got an unknown event 215
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent 89114: Event: 2 is 107 for call 12388 Provider:AES-EP-A
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent:89114: got Connection Disconnected Event 107
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent 89114: Event: 3 is 205 for call 12388 Provider:AES-EP-A
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent:89114: got Connection Disconnected Event 205
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent 89114: Event: 4 is 103 for call 12388 Provider:AES-EP-A
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.callChangedEvent:89114: got Call Observation Ended Event
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.removeCall:clearing MRCR:12388 from ext:89114
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.removeCall:clearing MRCC:12388 from ext:89114
02/03/2017 20:34:41:692 DEBUG - CTICallObserver.removeCall:removing call:12388 from ext:89114

02/03/2017 20:34:43:525 DEBUG - getObserversFromCallId: done gathering observers


I was focusing too much on the AES Connector earlier and didn't take a look at the jtapi. It turned out you have exceptions like the following starting 20:33. The communication error showing in JTAPI is the real culprit of the delay and other problem. I am not the expert in this component. You would have to talk to the JTAPI or AES folk to find out more.

2017-03-02 20:34:23,303 [GetEventThread] ERROR TSEventHandler - Event Distributor Exception - shutting down provider TSProvider[#4]@dde2c2a6
2017-03-02 20:34:23,303 [GetEventThread] ERROR TSEventHandler - read request failed
com.avaya.jtapi.tsapi.TsapiSocketException: read request failed
at com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession.handleException(TsapiSession.java:932)
at com.avaya.jtapi.tsapi.tsapiInterface.oio.TsapiChannelOio$OioChannelThread.run(TsapiChannelOio.java:261)
Caused by: java.net.SocketException: ƒŠƒ‚?[ƒg?EƒzƒXƒg‚̓^ƒCƒ€ƒAƒEƒgŠúŠÔ“à‚ɉž“š‚µ‚Ü‚¹‚ñ‚Å‚µ‚½?B
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:161)
at java.net.SocketInputStream.read(SocketInputStream.java:132)
at com.avaya.jtapi.tsapi.tsapiInterface.streams.IntelSocketInputStream.readFully(IntelSocketInputStream.java:49)
at com.avaya.jtapi.tsapi.tsapiInterface.streams.IntelSocketInputStream.readInt(IntelSocketInputStream.java:60)
at com.avaya.jtapi.tsapi.tsapiInterface.oio.TsapiChannelOio$OioChannelThread.run(TsapiChannelOio.java:255)

Best regards, K.Yamahara
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
This issue looks to be more complex than can be handled on the forum. You should open a technical support ticket so one of my colleagues can help you. Please note, for non-paid members, there may be a fee for this.

Martin
Kenji
Joined: Jan 22, 2015
Messages: 105
Offline
Hi Martin-san,

Thank you for your quick reply.

I see.
Let me confirm, I understood that we should rise the sieble Service Request for this.
Is this my understanding correct?

Best regards, K.Yamahara
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
If the problem is in a production environment and your application has been compliance tested by Devconnect then you should open a Service Request in Siebel.

If your application is under development and is being tested in a lab then you should open a Devconnect Technical Support ticket.

Martin
Kenji
Joined: Jan 22, 2015
Messages: 105
Offline
Hi Martin-san,

Thank you for your quick reply again.

We will rise the Service Request ticket in Siebel.
If we need your help again, I will ask it to you again.

Best regards, K.Yamahara
Go to:   
Mobile view