]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix ICE candidate nomination
authorThomas Guebels <tgu@escaux.com>
Mon, 19 Feb 2018 10:21:30 +0000 (11:21 +0100)
committerThomas Guebels <tgu@escaux.com>
Mon, 19 Feb 2018 10:37:48 +0000 (04:37 -0600)
commita6b655dca9f64b1de30fe7b238722be1f3dc02c5
treeaa51454e615eae7b4fb3d131acc9ad51fb1c5ce3
parente21a2ae2c3c0a5a22cd0c88265c320db0dcf5fcc
res_rtp_asterisk: Fix ICE candidate nomination

If the ICE role is not set right away, we might have a role conflict
that stays undetected and ICE finishing with successful tests and no
candidate nominated. This was introduced by ASTERISK-27088.

To avoid this, we set the role as soon as before but only if the ICE
state permits it: still checking and not yet nominating candidates or
completed.

ASTERISK-27646

Change-Id: I5dbc69ad63cacbb067922850fbb113d479bd729c
res/res_rtp_asterisk.c