rtpengine: fix encoding of "direction" flag