]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_endpoint_identifier_ip.c: Add port matching support
authorSean Bright <sean.bright@gmail.com>
Tue, 24 Dec 2019 15:16:23 +0000 (10:16 -0500)
committerSean Bright <sean.bright@gmail.com>
Wed, 8 Jan 2020 14:34:50 +0000 (09:34 -0500)
commit49bb7d85cdb6dac7b8837f612aa8f20d45405391
treed9e8870c8cf6f71c50e562b6f7f97b47d60a43f3
parent3a86c176a696d485a61e6f9f0d2a3a64cfcc704d
res_pjsip_endpoint_identifier_ip.c: Add port matching support

Adds source port matching support when IP matching is used:

  [example]
  type = identify
  match = 1.2.3.4:5060/32, 1.2.3.4:6000/32, asterisk.org:4444

If the IP matches but the source port does not, we reject and search for
alternatives. SRV lookups are still performed if enabled (srv_lookups = yes),
unless the configured FQDN includes a port number in which case just a host
lookup is performed.

ASTERISK-28639 #close
Reported by: Mitch Claborn

Change-Id: I256d5bd5d478b95f526e2f80ace31b690eebba92
configs/samples/pjsip.conf.sample
doc/CHANGES-staging/res_pjsip_endpoint_identifier_ip_match_port.txt [new file with mode: 0644]
include/asterisk/acl.h
main/acl.c
res/res_pjsip_endpoint_identifier_ip.c