diff options
author | Matt Jordan <mjordan@digium.com> | 2017-03-14 07:50:07 -0500 |
---|---|---|
committer | Matt Jordan <mjordan@digium.com> | 2017-03-14 08:16:44 -0500 |
commit | 30f52d79d7fc9ab0b628bef2b61ea515413795a2 (patch) | |
tree | 780846a0b3c13ddf42f449db37cd925a74004778 /contrib | |
parent | d5e42fefecb6ce558fcab2c9c1a97d2d40dcc452 (diff) |
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
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ast-db-manage/config/versions/465e70e8c337_add_match_header_attribute_to_identify.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/ast-db-manage/config/versions/465e70e8c337_add_match_header_attribute_to_identify.py b/contrib/ast-db-manage/config/versions/465e70e8c337_add_match_header_attribute_to_identify.py new file mode 100644 index 000000000..343b5cba9 --- /dev/null +++ b/contrib/ast-db-manage/config/versions/465e70e8c337_add_match_header_attribute_to_identify.py @@ -0,0 +1,21 @@ +"""Add match_header attribute to identify + +Revision ID: 465e70e8c337 +Revises: 28ab27a7826d +Create Date: 2017-03-14 08:13:53.986681 + +""" + +# revision identifiers, used by Alembic. +revision = '465e70e8c337' +down_revision = '28ab27a7826d' + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column('ps_endpoint_id_ips', sa.Column('match_header', sa.String(255))) + +def downgrade(): + op.drop_column('ps_endpoint_id_ips', 'match_header') |