Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 500
   
10-4
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 10      Call Object
Properties
RequestArgs.AddItem(CTIOS_ECC, *pECCData);
pCall->SetCallData(RequestArgs);
RequestArgs.Release();
pECCData->Release();
The same thing in VB would be as follows:
Dim MyRequestArgs As New CTIOSARGUMENTSLib.Arguments
Dim MyECCData As CTIOSARGUMENTSLib.Arguments
If MyCall.IsValid(CTIOS_ECC) Then
Set MyECCData = MyCall.GetValueArray(CTIOS_ECC)
Else
Set MyECCData = New CTIOSARGUMENTSLib.Arguments
End If
MyECCData.AddItem("user.MyECC", "FirstECCVariable")
MyECCData.AddItem("user.MyArray[2]", 2222)
MyRequestArgs.AddItem("ECC", MyECCData)
MyCall.SetCallData(MyRequestArgs)
The same thing in Java would be as follows:
Arguments rRequestArgs = new Arguments();
if(Call != null)
{
   Arguments rArgEcc = Call.GetValueArray(CTIOS_ECC);
   if(null == rArgEcc)
   {
      rArgEcc = new Arguments();
   }
   rArgEcc.SetValue("user.MyEcc", 22222);
   rArgEcc.SetValue("user.MyArray[3]", "new data");
   rRequestArgs.SetValue(CTIOS_ECC, rArgEcc);
   Call.SetCallData(rRequestArgs);
}
Properties
 lists the available call object properties.
Note
The data type listed for each keyword is the standardized data type discussed in the sectio
 See 
 for the appropriate language 
specific types for these keywords.