cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
87
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Peter Kmet on 05-08-2010 09:51:10 AM
I am developing thin client on top of Java CIL and solving failover problem:
if there is agent mode session opened, having a call (or multiple calls) running and suddenly kill the CIL completely, then I cannot retrieve previous calls after new session connect and agent login.
Despite fact, after CIL restart, connect and login, in eSnapshotDeviceConf I get information about number of active calls, even string representations of pending calls (UniqueCallObjectID), I am not able to retrieve those calls with CtiSession.getObjectFromObjectID(...) which returns null and similary CtiSession.getAllCalls() is null.
Is this normal feature of CIL or a bug ?
I am using CIL, version 7.0.0 and bundled ctiserversim.
Thank you.
Peter

Subject: RE: Call objects not recovered
Replied by: Peter Kmet on 05-08-2010 11:23:52 AM
Ok, I've got it solved for myself !  🙂
The trick is to create new Call(CtiOsSession,Arguments) and provide CtiOsSession plus new Arguments() to the Call constructor, with Arguments containing UNIQUEOBJECTID of "lost" Call you want to recover. This will just create plan empty Call, however, the trick is to call Snapshot() method on that call. That, in turn, fires eCallDataUpdateEvent with all Call parameter set correctly as from previous session.
Peter
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links