]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_format_attr_opus: Fix fmtp generation. 61/4461/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:48:59 +0000 (16:48 -0500)
commitd6783e8fd162d782c1bb546ba7408b41a76a15b9
treeb19c0ef236fdbeeb572b5a39750aa34872bf17e7
parent42254406addfe90ebba4558372171811d30f246e
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