]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Peers with distinct source ports don't match, regardless of transport.
authorAlexander Traud <pabstraud@compuserve.com>
Mon, 4 Dec 2017 11:27:02 +0000 (12:27 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Mon, 4 Dec 2017 12:00:34 +0000 (06:00 -0600)
commit64942276d15cf9edd20c69f10ecebbb65f7282f4
tree635007752048f686de1fd893885e296ace4c6d81
parent0cdd31ee1044344b3dccf826f5dd72f46bc804ee
chan_sip: Peers with distinct source ports don't match, regardless of transport.

Previously, peers connected via TCP (or TLS) were matched by ignoring their
source port. One cannot say anything when protocol:IP:port match, yes (see
<http://stackoverflow.com/q/3329641>). However, when the ports do not match, the
peers do not match as well.

This change allows two peers connected to an Asterisk server via TCP (or TLS)
behind a NAT (= same source IP address) to be differentiated via their port as
well.

ASTERISK-27457
Reported by: Stephane Chazelas

Change-Id: Id190428bf1d931f2dbfd4b293f53ff8f20d98efa
channels/chan_sip.c