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
This commit is contained in:
George Joseph
2022-07-07 09:32:38 -06:00
committed by Friendly Automation
parent 639d72e98c
commit 1fa568e76f
8 changed files with 843 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
"""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')