any 5 speed quattro box will fit, so long as you match the rear diff ratio. Our Avant has a 2.8quattro box in it.
The B6 6 speed has a final drive ratio which i'm sure doesnt exist on the B5 platform so that cant be used.
I used a S4 box on my TQS, which i'm breaking, but the box isnt well and needs a rebuild. Unfortunately its a common problem with S4 gearboxes.