use send/recv flags for silence detection
remove obsolete code