Outbound routing by trunks

I’m have a strange task and as i can see - there is no simple solution: suppose we have 2 trunks A and B. outbound cost is same for both and i have outbound rule for out all mobile calls throught B. Some call income from trunk A and forwards by follow-me on mobile phone. In this case redirected call will be out from B. And another incoming call from B-trunk will be out to mobile throught B (out rule).
So question: how can i pass follow-me calls, throught A-trunk if it’s income from it?