You could create a hybrid gateway yourself with Mediation Server and gateway in one box
Dialogic has cards that allow you to do that
However vendors are working on Hibrid gateways themselves.
I think that is a much nicer apporoach as you by both gateway and mediation server from vendor
Both Dialogic and Audiocodes have released hybrid gateways
Deli