In this paper we construct a system of three stochastic differential equations, which has a solution composed of a generalized telegraph signal process and a basic process. This system enabled us to find the escape probability of the basic process from an interval through its endpoint.