public Task <MakePredictiveCallEventReturn> SetMakePredictiveCall(string callingDevice, string calledDevice, AllocationState_t allocationState, string destRoute, bool priorityCalling, short maxRing, ATTAnswerTreat_t answerTreat, string info) { return(CreateTask <MakePredictiveCallEventReturn>((invokeId, pd) => { var info2 = GetUuiFromString(info); return NativeMethods.attV6MakePredictiveCall(ref pd, priorityCalling, maxRing, answerTreat, destRoute, ref info2) | NativeMethods.cstaMakePredictiveCall(AcsHandle, invokeId, callingDevice, calledDevice, allocationState, ref pd); }, $"SetMakePredictiveCall('{callingDevice}','{calledDevice}','{allocationState}','{destRoute}','{priorityCalling}','{maxRing}','{answerTreat}','{info}')")); }
internal static extern int cstaMakePredictiveCall(IntPtr acsHandle, uint invokeID, ref DeviceID_t callingDevice, ref DeviceID_t calledDevice, AllocationState_t allocationState, ref PrivateData_t privateData);
public static extern ACSFunctionRet_t cstaMakePredictiveCall(uint acsHandle, uint invokeId, [MarshalAs(UnmanagedType.LPStr)] string callingDevice, [MarshalAs(UnmanagedType.LPStr)] string calledDevice, AllocationState_t allocationState, ref PrivateData_t privateData);