Exemplo n.º 1
0
 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}')"));
 }
Exemplo n.º 2
0
 internal static extern int cstaMakePredictiveCall(IntPtr acsHandle, uint invokeID, ref DeviceID_t callingDevice, ref DeviceID_t calledDevice, AllocationState_t allocationState, ref PrivateData_t privateData);
Exemplo n.º 3
0
 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);