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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have access this with this method as well again i am not getting their values instead of this i am getting "" values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.