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:
Joshua Colp
2015-07-18 13:16:10 -03:00
parent a105461f9e
commit 309dd2a409
12 changed files with 147 additions and 8 deletions

View File

@@ -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')