Consider a one-sided Markov additive process with an upper and a lower barrier, where each can be either reflecting or terminating. For both defective and nondefective processes, and all possible scenarios, we identify the corresponding potential measures, which help to generalize a number of results for one-sided Lévy processes. The resulting rather neat formulae have various applications in risk and queueing theories, and, in particular, they lead to quasistationary distributions of the corresponding processes.