]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-7051: Preserve the annexb=no/yes status
authorPaul Arnold <paul.arnold@comvergence.com.au>
Thu, 4 Dec 2014 22:52:29 +0000 (09:52 +1100)
committerPaul Arnold <paul.arnold@comvergence.com.au>
Thu, 4 Dec 2014 22:52:29 +0000 (09:52 +1100)
commit843e4953be26f028d177d72aa0f5ea2d624e2cbf
treef1afdfdfbfb182da985f7587c226c3294e7f393f
parent2ce2dccf21fb6cf09b590393cf57e2cedcbbf2d6
FS-7051: Preserve the annexb=no/yes status

As per RFC4856, Annex B mode for G.729 is disabled if the SDP contains a
fmtp parameter annexb=no and enabled if annexb=yes or the annexb parameter
is missing.

When responding to an offer mod_sangoma_codec always returns an answer
without a fmtp parameter. Even in response to a SDP offer which contains
one. This has the effect of responding to a request to disable Annex B
with an answer that only Annex B is supported.

With this change mod_sangoma_codec copies the fmtp parameter from the
offer to the answer fixing the problem.
src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c