Create the SIP trunks their own Trunk Service Assignment or Trunk Attributes number, and tell it to strip either 3 or 6 digits. (Make sure to put in here to insert 0.)
If you strip 3, then using System Speed dials create entries for the last 7 of each DID and point it to the needed extension.
If you strip 6, then the extension will match the DID.