Dial Pattern

Hi

Fist off all mein english is not so good but i will do my best, that you understand my question!
I have a problem when i will call over my gsm cards i must dial first 1,2 or 3 and for voip 0 but i will that asterisk know if i dial a mobile number(017xxxxxx,016xxxxxxx and 015xxxxx in germany) go out oder 1 of the 3 gsm channels without dialing 1,2,3 at first, and the same like voip!
i hope you understand my qustion!

this is the outbound route for gsm and voip
0|. = Voip
1|. = GSM1
2|. = GSM2
3|. = GSM3

best regards

awo