mirror of https://github.com/asterisk/asterisk
When Asterisk sends an outbound SIP request, if there is no direct reason to place a specific value for the username in the From header, Asterisk would generate a UUID. For example, this would happen when sending outbound OPTIONS requests when qualifying or when sending outbound INVITE requests when originating (if no explicit caller ID were provided). The issue is that some SIP providers reject these sorts of requests with a "Name too long" error response. This patch aims to fix this by changing the default outbound username in From headers to "asterisk". This value can be overridden by changing the default_from_user option in the global options if desired. ASTERISK-25377 #close Reported by Mark Michelson Change-Id: I6a4d34a56ff73ff4f661b0075aeba5461b7f3190changes/99/1199/1
parent
c15d8cc0ed
commit
993ae9a669
@ -0,0 +1,22 @@
|
||||
"""add default_from_user
|
||||
|
||||
Revision ID: 154177371065
|
||||
Revises: 26f10cadc157
|
||||
Create Date: 2015-09-04 14:13:59.195013
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '154177371065'
|
||||
down_revision = '26f10cadc157'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('ps_globals', sa.Column('default_from_user', sa.String(80)))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('ps_globals', 'default_from_user')
|
Loading…
Reference in new issue