Substituted sulfonamide compounds corresponding to the formula I′wherein m, n, p, X, Y, Z, R1, RA and RB have specified meanings, processes for their preparation, pharmaceutical compositions containing these compounds, and the use of these substituted sulfonamide compounds for the treatment and/or inhibition of pain or other conditions.