Dialing rules

Hi
I would like to use asterisk as a gateway for a PBX (SIP trunk)
It has several different siptrunks.
My current dialing rules *XXXXXX. (so that I don’t need to dial 9 for outside line)

Is it possible to choose the trunk, by routing by user.
As example when internal 50 dial an external number, that this user use siptrunk “A” and when internal 60 dials an external number, that this user use siptrank “B”?

Create 2 trunks and 2 outbound routes.
In each outbound route configure desired caller id in Dial Patterns and choose a trunk.