Some results on the telegraph process confined by two non-standard boundaries