]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_endpoint_identifier_ip: Add an option to match requests by header
authorMatt Jordan <mjordan@digium.com>
Tue, 14 Mar 2017 12:50:07 +0000 (07:50 -0500)
committerMatt Jordan <mjordan@digium.com>
Tue, 14 Mar 2017 15:55:36 +0000 (10:55 -0500)
commitb3c2c996f1de6a26364c7f691ceeebf30586cff1
treed12a2293099fffc6678aa495644ded180c555952
parent523de8eb8e0f7283b6c9210d5da0df541684e784
res_pjsip_endpoint_identifier_ip: Add an option to match requests by header

This patch adds a new features to the endpoint identifier module,
'match_header'. When set, inbound requests are matched by a provided SIP
header: value pair. This option works in conjunction with the existing
'match' configuration option, such that if any 'match*' attribute
matches an inbound request, the request is associated with the specified
endpoint.

Since this module now identifies by more than just IP address,
appropriate renaming of the module and/or variables can be done in a
non-release branch.

ASTERISK-26863 #close

Change-Id: Icfc14835c962f92e35e67bbdb235cf0589de5453
(cherry picked from commit 30f52d79d7fc9ab0b628bef2b61ea515413795a2)
CHANGES
contrib/ast-db-manage/config/versions/465e70e8c337_add_match_header_attribute_to_identify.py [new file with mode: 0644]
res/res_pjsip_endpoint_identifier_ip.c