added rtp timer to sendfile function