public void SetStatus(string status) { Authenticate(); string call_id = GetNextCallNr(); Dictionary <string, string> requestParams = new Dictionary <string, string>(); requestParams.Add("method", "status.set"); requestParams.Add("api_key", apiKey); requestParams.Add("session_key", sessionKey); requestParams.Add("call_id", call_id); requestParams.Add("v", "1.0"); requestParams.Add("status", status); var result = channel.SetStatus(apiKey, sessionKey, call_id, GenerateSignature(requestParams, sessionSecret), status); if (IsError(result)) { Logger.Error("Unable to update status. Error = {0}", LogSource.Channel, result); } }