Review Board 1.7.16


WebRTC: Add SHA-256 support to chan_pjsip and add option to make it answer using the offer media transport.

Review Request #3686 - Created June 28, 2014 and submitted

Joshua Colp
Reviewers
asterisk-dev
Asterisk
This change requires the work for 11 but the merge up is pretty much clean, so this review only includes the PJSIP parts.

SHA-256 support has been added as has two options. One option controls the outgoing transport in SDP offers and the other controls the transport in SDP answers.
Calling.

Changes between revision 2 and 3

1 2 3
1 2 3

  1. /branches/12/contrib/ast-db-manage/config/versions/51f8cb66540e_add_further_dtls_options.py: Loading...
/branches/12/contrib/ast-db-manage/config/versions/51f8cb66540e_add_further_dtls_options.py
Diff Revision 2 Diff Revision 3
[20] 9 lines
[+20]
10
revision = '51f8cb66540e'
10
revision = '51f8cb66540e'
11
down_revision = 'c6d929b23a8'
11
down_revision = 'c6d929b23a8'
12

    
   
12

   
13
from alembic import op
13
from alembic import op
14
import sqlalchemy as sa
14
import sqlalchemy as sa

    
   
15
from sqlalchemy.dialects.postgresql import ENUM
15

    
   
16

   

    
   
17
YESNO_NAME = 'yesno_values'

    
   
18
YESNO_VALUES = ['yes', 'no']
16

    
   
19

   
17
def upgrade():
20
def upgrade():
18
    op.add_column('ps_endpoints', sa.Column('force_avp', sa.String(16)))
21
    ############################# Enums ##############################
19
    op.add_column('ps_endpoints', sa.Column('media_use_received_transport', sa.String(16)))
22

   

    
   
23
    # yesno_values have already been created, so use postgres enum object

    
   
24
    # type to get around "already created" issue - works okay with mysql

    
   
25
    yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)

    
   
26

   

    
   
27
    op.add_column('ps_endpoints', sa.Column('force_avp', yesno_values))

    
   
28
    op.add_column('ps_endpoints', sa.Column('media_use_received_transport', yesno_values))
20

    
   
29

   
21
def downgrade():
30
def downgrade():
22
    op.drop_column('ps_endpoints', 'force_avp')
31
    op.drop_column('ps_endpoints', 'force_avp')
23
    op.drop_column('ps_endpoints', 'media_use_received_transport')
32
    op.drop_column('ps_endpoints', 'media_use_received_transport')
  1. /branches/12/contrib/ast-db-manage/config/versions/51f8cb66540e_add_further_dtls_options.py: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.