I can’t find relevant information in the user guide, but this thread describes the options you might need:
However, in general, you need to ask yourself: “what in the incoming request would tell Asterisk that this request is coming from the trunk in question?”.
The head posting for the thread contains the basic answer; the rest of the thread is about complications that can arise.