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
This commit is contained in:
George Joseph
2016-08-16 14:36:10 -06:00
parent 56e0aed177
commit 329507fe20
6 changed files with 85 additions and 0 deletions

View File

@@ -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')