To get 3CX to choose the correct SIP trunk for outbound calls, I plan to use a prefix for the SIP-trunk, for example
Prefix 1: SIP account 1
Prefix 2: SIP account 2, etc.
But when a call is coming in via SIP trunk 1, from caller id 22222222, it is shown as 22222222 and not 122222222. So if I put the caller id into the phone book, 3CX would not know the prefix, and make an outbound call using SIP account 2 if a call is generated via the phone book!?
Is there a way to manage this or have I misunderstood something?

