/// <summary> /// Set presence status /// </summary> /// <param name="accId"></param> /// <param name="status"></param> /// <returns></returns> public int setStatus(int accId, EUserStatus status) { if ((!pjsipStackProxy.Instance.IsInitialized) || (accId < 0)) { return(-1); } if ((Config.Accounts.Count > 0) && (Config.Accounts[accId].RegState != 200)) { return(-1); } if (!Config.PublishEnabled) { return(-1); } return(PjsipMethods.dll_setStatus(Config.Accounts[accId].Index, (int)status)); }