mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	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
		
			
				
	
	
		
			23 lines
		
	
	
		
			619 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			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')
 |