If I remember rightly, the trunks will always be tagged X9999. I think you'll struggle as you can't change the tag on the IP Trunks as far as I know, whereas a SIP trunk for example, are processed SMDR wise in a similar way to endpoint, where you can define an SMDR tag and report on them that way.