Hi, I think we are one step closer.
After turnning on the log level 7 and set the heart beat timer to be 60 seconds, I am still seeing the provider shutdown. Also I didn't see any log like "...Heartbeat timer expired...." as in
https://www.devconnectprogram.com/forums/posts/list/8804.page#p23406. So I am sure this is not the heartbeat timeout issue.
However, according to the log, as long as there is one event distribution error, JTAPI client library will initaite the shutdown itself based on the log exception below please see the highlight below. So I think we just need to figure out the error of "..... could not create terminal 3252; the device is not a termianl...". So what does this error mean?
08/02/17 07:10:05.093 <DistributeCSTAEvent#126> Event Distributor Exception - shutting down provider TSProvider[#2]@1d43627d
08/02/17 07:10:05.093 <DistributeCSTAEvent#126> com.avaya.jtapi.tsapi.TsapiPlatformException:
could not create terminal: 3252; device is not a terminal
at com.avaya.jtapi.tsapi.TsapiTerminal.<init>(TsapiTerminal.java:965)
at com.avaya.jtapi.tsapi.LucentTerminalImpl.<init>(LucentTerminalImpl.java:43)
at com.avaya.jtapi.tsapi.TsapiPromoter.promoteTerminal(TsapiPromoter.java:135)
at com.avaya.jtapi.tsapi.TSEventHandler.doConnEvents(TSEventHandler.java:1172)
at com.avaya.jtapi.tsapi.TSEventHandler.cstaUnsolicited(TSEventHandler.java:245)
at com.avaya.java.tsapiInterface.TsapiEventDistributor.handleEvent(TsapiEventDistributor.java:125)
at com.avaya.java.tsapiInterface.TsapiEventQueue.run(TsapiEventQueue.java:96)TSProvider.shutdown - attempting shutdown
08/02/17 07:10:05.093 <DistributeCSTAEvent#126> TSProvider.shutdown - Starting
08/02/17 07:10:05.093 <DistributeCSTAEvent#126> Getting TsapiCallObserver lock to deliver deleteReference events for observer com.avaya.sms.JTAPICallObserver@425bfd9f
08/02/17 07:10:05.093 <DistributeCSTAEvent#126> meta event BEGIN: cause (100) metaCode (136) for com.avaya.sms.JTAPICallObserver@425bfd9f
08/02/17 07:10:05.093 <DistributeCSTAEvent#126> OBSERVATIONENDEDEVENT for observed: TSDevice[3048]@7f5f575c, isTerminal? true for observer com.avaya.sms.JTAPICallObserver@425bfd9f