ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
338
Views
0
Helpful
2
Replies
Highlighted
Beginner

How to access CallVariable1 on CTIOS Custom Application

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.

dlender

Everyone's tags (2)
2 REPLIES 2
Highlighted
Frequent Contributor

Re: How to access CallVariable1 on CTIOS Custom Application

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);

Highlighted
Beginner

Re: How to access CallVariable1 on CTIOS Custom Application

I have access this with this method as well again i am not getting their values instead of this i am getting "" values

This widget could not be displayed.