Substituted sulfonamide compounds corresponding to the formula Iwherein m, n, p, Q, R1, R2, R3, R4, X, Y and Z have the respective meanings defined herein, pharmaceutical compositions containing such compounds, a process for their preparation, and the use of such compounds for the treatment and/or inhibition of pain and other conditions mediated by bradykinin receptor 1 (B1R) and/or bradykinin receptor 2 (B2R).