Implementation of VAD/DTX towards Wifi

does anybody know how to implement VAD/DTX in Asterisk for traffic comming from PSTN towards WiFi.