Types
R = megaco_encoder:megaco_message() | megaco_encoder:transaction() | megaco_encoder:action_reply() | megaco_encoder:action_request() | megaco_encoder:command_request()
Version = megaco_encoder:protocol_version()
T = term()
Compress a megaco component. The erlang dist encoder makes no assumption on the how or even if the component is compressed.