Nailed up connections

does anyone know of a working instance of a nailed up connection with a TDM port through a gateway? basically I want to hold open a connection to an agent sitting on a pbx and connect calls to them from a remote dialler.