diff --git a/src/mod/codecs/mod_h26x/mod_h26x.c b/src/mod/codecs/mod_h26x/mod_h26x.c index d4f91fb88d..6f509f3e70 100644 --- a/src/mod/codecs/mod_h26x/mod_h26x.c +++ b/src/mod/codecs/mod_h26x/mod_h26x.c @@ -45,6 +45,9 @@ static switch_status_t switch_h26x_init(switch_codec_t *codec, switch_codec_flag if (!(encoding || decoding)) { return SWITCH_STATUS_FALSE; } else { + if (codec->fmtp_in) { + codec->fmtp_out = switch_core_strdup(codec->memory_pool, codec->fmtp_in); + } return SWITCH_STATUS_SUCCESS; } }