Avoiding duplicate and allowing unset of codec parameter

Avoiding duplicate and allowing unset of codec parameter.

This allows unsetting Opus FEC or other codec parameter. This also avoids duplication.
I would pass the payload type into generateXXXX, so that you can avoid having the unwieldy 'header' param.