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 16:21:19 -0500
commit534063fd670640019327e7f37a4fd81db16372f1 (patch)
tree7b6d282770e727aaeafc36aeb1af6ac2abc2e780 /contrib
parent57f4e4428a830c89436bf5025ca815a4e35776ac (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')