Esempio n. 1
0
        /// <summary>
        /// Dials a call.
        /// </summary>
        /// <param name="number">Calling number to be dialed.</param>
        /// <param name="type">Type of the call to be dialed.</param>
        /// <param name="slot">Multi sim slot type in which the call is dialed.</param>
        /// <exception cref="UnauthorizedAccessException">Thrown when privilege access is denied.</exception>
        /// <exception cref="ArgumentNullException">Thrown number is passed as null.</exception>
        /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation.</exception>
        public void DialCall(string number, CallType type, MultiSimSlot slot)
        {
            if (number == null)
            {
                throw new ArgumentNullException("Calling number is null");
            }

            int ret = Interop.CallManager.DialCall(_handle, number, type, slot);

            if (ret != (int)CmError.None)
            {
                Log.Error(CmUtility.LogTag, "Failed to dial call, Error: " + (CmError)ret);
                CmUtility.ThrowCmException(ret, _handle);
            }
        }
Esempio n. 2
0
 internal static extern int DialCall(IntPtr handle, string number, CallType type, MultiSimSlot simSlot);
Esempio n. 3
0
 internal static extern int GetSimSlot(IntPtr handle, out MultiSimSlot simSlot);