02-17-2014 03:19 AM
I have build a custom application for CTIOS in which i am trying to access variable1,variable2... values which we passed through ICM.
I have write this code but i am getting " " or null value against it.
String sUID = eventArgs.GetValueString(CtiOs_IKeywordIDs.CTIOS_UNIQUEOBJECTID);
Call rCall = (Call) vCtiOsSession.GetObjectFromObjectID(sUID);
vCtiOsSession.SetCurrentCall(rCall);
if (rCall != null)
{
String a = eventArgs.GetValueString(CtiOs_IKeywordIDs.S_CALLVARIABLE1);
System.out.println(a);
}
else
{
System.out.println("No active call to get data from.");
}
I don't know what wrong with this code i am getting null value in variable a.
02-17-2014 08:22 AM
Did you try logging the eventArgs? Which event are you processing with this code?
Rather than trying to extract the callvariable from the eventArgs, try getting the callvariable from the call object:
A = rCall.GetValueString(CtiOs_IKeywordIDs.S_CALLVARIABLE1);
Or use
myArgs = rCall.GetCallData();
a = myArgs.GetValueString(CtiOs_IKeywordIDs.S_CALLVARIABLE1);
02-17-2014 11:36 PM
I have access this with this method as well again i am not getting their values instead of this i am getting "" values
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: