Files
asterisk/contrib/ast-db-manage/config/versions/7197536bb68d_geoloc_endpoint_params.py
George Joseph 1fa568e76f Geolocation: chan_pjsip Capability Preview
This commit adds res_pjsip_geolocation which gives chan_pjsip
the ability to use the core geolocation capabilities.

This commit message is intentionally short because this isn't
a simple capability.  See the documentation at
https://wiki.asterisk.org/wiki/display/AST/Geolocation
for more information.

THE CAPABILITIES IMPLEMENTED HERE MAY CHANGE BASED ON
USER FEEDBACK!

ASTERISK-30128

Change-Id: Ie2e2bcd87243c2cfabc43eb823d4427c7086f4d9
2022-07-12 13:34:17 -05:00

23 lines
619 B
Python

"""Geoloc Endpoint Params
Revision ID: 7197536bb68d
Revises: 58e440314c2a
Create Date: 2022-03-07 05:32:54.909429
"""
# revision identifiers, used by Alembic.
revision = '7197536bb68d'
down_revision = '58e440314c2a'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('ps_endpoints', sa.Column('geoloc_incoming_call_profile', sa.String(80)))
op.add_column('ps_endpoints', sa.Column('geoloc_outgoing_call_profile', sa.String(80)))
def downgrade():
op.drop_column('ps_endpoints', 'geoloc_outgoing_call_profile')
op.drop_column('ps_endpoints', 'geoloc_incoming_call_profile')