cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
806
Views
0
Helpful
2
Replies

How to access CallVariable1 on CTIOS Custom Application

Malik Ehtasham
Level 1
Level 1

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

2 Replies 2

dlender
Level 6
Level 6

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

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: