The invention relates to quaternary α-aminocarboxyamide derivatives of formula (I), wherein R
1
, R
2
, R
3
, R
4
, R
5
, R
6
, X, q and n are as defined in claim
1
, for treating diseases and conditions mediated by modulation of voltage-gated sodium channels.