]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_format_attr_opus: Fix fmtp generation. 60/4460/1
authorMark Michelson <mmichelson@digium.com>
Wed, 16 Nov 2016 21:42:39 +0000 (15:42 -0600)
committerMark Michelson <mmichelson@digium.com>
Wed, 16 Nov 2016 21:42:39 +0000 (15:42 -0600)
commit2c031b67d3c7da83bab914bcdaad45d2a0bc9ff8
tree2ca3db534d3d8778116855aff6b2159dc5beb9d7
parenta58d3597019f8cc5a503f140671232ae3f8d9119
res_format_attr_opus: Fix fmtp generation.

res_format_attr_opus assumed that the string being passed into it was
empty. It tried to determine if the only thing it had written was

a=fmtp:<num>

And if it had, it would reset the string. Its calculation was off when
working with chan_sip, though. chan_sip passes the entire built SDP
rather than an empty string. This resulted in always putting an empty
fmtp line in the SDP.

ASTERISK-26520 #close
Reported by scgm11

Change-Id: Ib2e8712d26a47067e5f36d5973577added01dbb5
res/res_format_attr_opus.c