mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
res_pjsip_outbound_registration.c: Add User-Agent header override
This introduces a setting for outbound registrations to override the global User-Agent header setting. Resolves: #515 UserNote: PJSIP outbound registrations now support a per-registration User-Agent header
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
edf54951be
commit
775352ee6c
@@ -0,0 +1,22 @@
|
||||
"""add user-agent-header to ps_registrations
|
||||
|
||||
Revision ID: 24c12d8e9014
|
||||
Revises: 37a5332640e2
|
||||
Create Date: 2024-01-05 14:14:47.510917
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '24c12d8e9014'
|
||||
down_revision = '37a5332640e2'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('ps_registrations', sa.Column('user_agent', sa.String(255)))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('ps_registrations', 'user_agent')
|
Reference in New Issue
Block a user