]> 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:17:27 +0000 (13:17 +0200)
commitbabb617f209756ba2c2c7faee5b97c6cb266c01f
tree51ebf20ad33fe93b8b03095fd6f4db29753a2bca
parent63211cc0ffba59b197478f983b2b5a519d08c696
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