]> 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:49 +0000 (06:00 -0600)
commit15873d6c0b538b42152d7b27275277cc1c2fc57a
tree641ff86be48c57cd9d652fe4508480fbd5a87ecc
parent8f5dff543e457ee3450d21e741901609af0cd779
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