Two sip trunks

I have two sip trunks, sip1 and sip2. they have same prefix '9’
one already used sip1 trunk.
another one dial 9…, asterisk select sip1 trunk ,how to config let asterisk can select sip2 trunk ? can you help me? thank you!

In OutBound Route

Trunk Sequence:
0 sip1
1 sip2
but asterisk always select sip1, how to config let asterisk select sip2?

Please post the relevant part of your dial plan

In outbound Routes:
Dial patterns:
Trunk Sequence

thank you!

No sure if this is what you want?

If you dial 8 and your number it will use sip-trunk1
If you dial 9 and your number it will use sip-trunk2

exten => _8.,1,Dial(SIP/sip-trunk1/${EXTEN})
exten => _8.,2,Hangup()

exten => _9.,1,Dial(SIP/sip-trunk2/${EXTEN})
exten => _9.,2,Hangup()

I changed the dial plan. now it can work
thank you