]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_pjsip: Fix localnet checks in pjsip, part 2.
authorWalter Doekes <walter+asterisk@wjd.nu>
Sun, 10 Sep 2017 11:17:27 +0000 (13:17 +0200)
committerWalter Doekes <walter+asterisk@wjd.nu>
Sun, 10 Sep 2017 11:19:28 +0000 (06:19 -0500)
commit680aba21ec1b91f4cd4061e652b8cd23356dfb9d
tree07a97be14e1a0a53d8fc6c6e0b16daa6d309cc23
parent68b506caaa77f8e7ba32193a59ec980b17ae7d0e
res/res_pjsip: Fix localnet checks in pjsip, part 2.

In 45744fc53, I mistakenly broke SDP media address rewriting by
misinterpreting which address was checked in the localnet comparison.

Instead of checking the remote peer address to decide whether we need
media address rewriting, we check our local media address: if it's
local, then we rewrite. This feels awkward, but works and even made
directmedia work properly if you set local_net. (For the record: for
local peers, the SDP media rewrite code is not called, so the
comparison does no harm there.)

ASTERISK-27248 #close

Change-Id: I566be1c33f4d0a689567d451ed46bab9c3861d4f
res/res_pjsip_sdp_rtp.c
res/res_pjsip_session.c
res/res_pjsip_t38.c