]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-10485: Re-activate ICE on all attribute changes
authorEthan Atkins <eatkins@meraki.net>
Wed, 5 Jul 2017 22:18:44 +0000 (15:18 -0700)
committerEthan Atkins <eatkins@meraki.net>
Mon, 10 Jul 2017 17:57:35 +0000 (10:57 -0700)
commit999a6dd0b7f37e99c53cea3bc79d92c3ffab1822
tree07f134ec215f8551672127908c54015f45665303
parentaba1068e091f73272e4f2bc766cb896ba093359c
FS-10485: Re-activate ICE on all attribute changes

I ran into some ice failures when testing reinvites using
bypass_media_after_bridge. Every ice session has ice-ufrag and ice-pwd
attributes. When leg A sends those attributes to leg B, leg B is
supposed to send stun packets to leg A using the credentials provided in
those attributes. Freeswitch was not updating the session credentials
when the phone sent a new invite containing new ufrag and pwd
attributes. This caused ICE to fail on the client side (PJSIP in this
case).

The new_ice flag is set to true when freeswitch detects a change in
those attributes. For whatever reason, the reinvite flows that I was
testing did not set the CF_REINVITE flag on the channel, but new_ice was
true. It seems to me that freeswitch should always reactivate ice when
the ufrag and pwd credentials change.
src/switch_core_media.c