]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pass thru the fmtp
authorBrian West <brian@freeswitch.org>
Thu, 7 Feb 2008 18:32:03 +0000 (18:32 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 7 Feb 2008 18:32:03 +0000 (18:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7542 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_h26x/mod_h26x.c

index d4f91fb88d13ea1ae34559fafefadf9baa517602..6f509f3e70dc71036f7dda27afde1d1a3ec116b2 100644 (file)
@@ -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;
        }
 }