summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2016-08-16 14:36:10 -0600
committerGeorge Joseph <gjoseph@digium.com>2016-08-17 14:39:32 -0600
commit329507fe20ae5dcbed3e7b494ce6fffeb9990af3 (patch)
treed69c03ba33ea931b2035e0680b1149f77bc98212 /contrib
parent56e0aed17758b1cad338e84c5457824cee874d95 (diff)
res_pjsip: Add contact_user to endpoint
contact_user, when specified on an endpoint, will override the user portion of the Contact header on outgoing requests. Change-Id: Icd4ebfda2f2e44d3ac749d0b4066630e988407d4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ast-db-manage/config/versions/4e2493ef32e6_add_contact_user_to_endpoint.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/ast-db-manage/config/versions/4e2493ef32e6_add_contact_user_to_endpoint.py b/contrib/ast-db-manage/config/versions/4e2493ef32e6_add_contact_user_to_endpoint.py
new file mode 100644
index 000000000..f91cff04e
--- /dev/null
+++ b/contrib/ast-db-manage/config/versions/4e2493ef32e6_add_contact_user_to_endpoint.py
@@ -0,0 +1,22 @@
+"""Add contact_user to endpoint
+
+Revision ID: 4e2493ef32e6
+Revises: 3772f8f828da
+Create Date: 2016-08-16 14:19:58.918466
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '4e2493ef32e6'
+down_revision = '3772f8f828da'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('ps_endpoints', sa.Column('contact_user', sa.String(80)))
+
+
+def downgrade():
+ op.drop_column('ps_endpoints', 'contact_user')