/** * User agent dial out a call. * @return successful or failed. */ public static ErrorNumberEnum Dial(string callAddr, CallModeEnum callMode) { log.Info("place call: callername:" + callAddr); int callHandleReference = 0; var errno = WrapperProxy.SetProperty(PropertyEnum.PLCM_MF_PROP_CalleeAddr, callAddr); if (errno != ErrorNumberEnum.PLCM_SAMPLE_OK) { return(errno); } lalProperties.SetProperty(PropertyEnum.PLCM_MF_PROP_CalleeAddr, callAddr); errno = WrapperProxy.PlaceCall(callAddr, ref callHandleReference, callMode); if (errno == ErrorNumberEnum.PLCM_SAMPLE_OK) { } else { log.Error("Dial a Call failed. ErrorNum = " + errno.ToString()); return(errno); } return(errno); }