SIP trunk TO header

Hi,

My sip trunk provider sends me DID number in TO header.
INVITE header is always my SIP trunk account number.

Where in Freepbx can i change, that for incoming calls TO header is used for DID ?

thanks and br,
Andrey

You would need to change the context the trunk comes in on. If you look in extensions.conf their are numerous contexts we setup and I think one of them is to handle DID in the To Header.