mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
pjsip: Add rtp_timeout and rtp_timeout_hold endpoint options.
This change adds support for the 'rtp_timeout' and 'rtp_timeout_hold' endpoint options. These allow the channel to be hung up if RTP is not received from the remote endpoint for a specified number of seconds. ASTERISK-25259 #close Change-Id: I3f39daaa7da2596b5022737b77799d16204175b9
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""add pjsip timeout options
|
||||
|
||||
Revision ID: 26f10cadc157
|
||||
Revises: 498357a710ae
|
||||
Create Date: 2015-07-21 07:45:00.696965
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '26f10cadc157'
|
||||
down_revision = '498357a710ae'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('ps_endpoints', sa.Column('rtp_timeout', sa.Integer))
|
||||
op.add_column('ps_endpoints', sa.Column('rtp_timeout_hold', sa.Integer))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('ps_endpoints', 'rtp_timeout')
|
||||
op.drop_column('ps_endpoints', 'rtp_timeout_hold')
|
Reference in New Issue
Block a user