43956d550a44_add_tables_for_pjsip Namespace Reference


Functions

def downgrade
def upgrade

Variables

string down_revision = '4da0c5f79a9c'
list PJSIP_100REL_VALUES = ['no', 'required', 'yes']
list PJSIP_AUTH_TYPE_VALUES = ['md5', 'userpass']
list PJSIP_CID_PRIVACY_VALUES
list PJSIP_CONNECTED_LINE_METHOD_VALUES = ['invite', 'reinvite', 'update']
list PJSIP_DIRECT_MEDIA_GLARE_MITIGATION_VALUES = ['none', 'outgoing', 'incoming']
list PJSIP_DTLS_SETUP_VALUES = ['active', 'passive', 'actpass']
list PJSIP_DTMF_MODE_VALUES = ['rfc4733', 'inband', 'info']
list PJSIP_IDENTIFY_BY_VALUES = ['username']
list PJSIP_MEDIA_ENCRYPTION_VALUES = ['no', 'sdes', 'dtls']
list PJSIP_T38UDPTL_EC_VALUES = ['none', 'fec', 'redundancy']
list PJSIP_TIMERS_VALUES = ['forced', 'no', 'required', 'yes']
list PJSIP_TRANSPORT_METHOD_VALUES
list PJSIP_TRANSPORT_PROTOCOL_VALUES = ['udp', 'tcp', 'tls', 'ws', 'wss']
string revision = '43956d550a44'
list YESNO_VALUES = ['yes', 'no']


Function Documentation

def 43956d550a44_add_tables_for_pjsip::downgrade (  ) 

Definition at line 183 of file 43956d550a44_add_tables_for_pjsip.py.

00183                :
00184     op.drop_table('ps_endpoints')
00185     op.drop_table('ps_auths')
00186     op.drop_table('ps_aors')
00187     op.drop_table('ps_contacts')
00188     op.drop_table('ps_domain_aliases')
00189     op.drop_table('ps_endpoint_id_ips')
    op.drop_table('ps_endpoint_id_ips')

def 43956d550a44_add_tables_for_pjsip::upgrade (  ) 

Definition at line 37 of file 43956d550a44_add_tables_for_pjsip.py.

00037              :
00038     op.create_table(
00039         'ps_endpoints',
00040         sa.Column('id', sa.String(40), nullable=False, unique=True),
00041         sa.Column('transport', sa.String(40)),
00042         sa.Column('aors', sa.String(200)),
00043         sa.Column('auth', sa.String(40)),
00044         sa.Column('context', sa.String(40)),
00045         sa.Column('disallow', sa.String(200)),
00046         sa.Column('allow', sa.String(200)),
00047         sa.Column('direct_media', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00048         sa.Column('connected_line_method',
00049                   sa.Enum(*PJSIP_CONNECTED_LINE_METHOD_VALUES, name='pjsip_connected_line_method_values')),
00050         sa.Column('direct_media_method',
00051                   sa.Enum(*PJSIP_CONNECTED_LINE_METHOD_VALUES, name='pjsip_connected_line_method_values')),
00052         sa.Column('direct_media_glare_mitigation',
00053                   sa.Enum(*PJSIP_DIRECT_MEDIA_GLARE_MITIGATION_VALUES, name='pjsip_direct_media_glare_mitigation_values')),
00054         sa.Column('disable_direct_media_on_nat', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00055         sa.Column('dtmf_mode', sa.Enum(*PJSIP_DTMF_MODE_VALUES, name='pjsip_dtmf_mode_values')),
00056         sa.Column('external_media_address', sa.String(40)),
00057         sa.Column('force_rport', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00058         sa.Column('ice_support', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00059         sa.Column('identify_by', sa.Enum(*PJSIP_IDENTIFY_BY_VALUES, name='pjsip_identify_by_values')),
00060         sa.Column('mailboxes', sa.String(40)),
00061         sa.Column('moh_suggest', sa.String(40)),
00062         sa.Column('outbound_auth', sa.String(40)),
00063         sa.Column('outbound_proxy', sa.String(40)),
00064         sa.Column('rewrite_contact', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00065         sa.Column('rtp_ipv6', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00066         sa.Column('rtp_symmetric', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00067         sa.Column('send_diversion', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00068         sa.Column('send_pai', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00069         sa.Column('send_rpid', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00070         sa.Column('timers_min_se', sa.Integer),
00071         sa.Column('timers', sa.Enum(*PJSIP_TIMERS_VALUES, name='pjsip_timer_values')),
00072         sa.Column('timers_sess_expires', sa.Integer),
00073         sa.Column('callerid', sa.String(40)),
00074         sa.Column('callerid_privacy', sa.Enum(*PJSIP_CID_PRIVACY_VALUES, name='pjsip_cid_privacy_values')),
00075         sa.Column('callerid_tag', sa.String(40)),
00076         sa.Column('100rel', sa.Enum(*PJSIP_100REL_VALUES, name='pjsip_100rel_values')),
00077         sa.Column('aggregate_mwi', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00078         sa.Column('trust_id_inbound', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00079         sa.Column('trust_id_outbound', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00080         sa.Column('use_ptime', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00081         sa.Column('use_avpf', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00082         sa.Column('media_encryption', sa.Enum(*PJSIP_MEDIA_ENCRYPTION_VALUES, name='pjsip_media_encryption_values')),
00083         sa.Column('inband_progress', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00084         sa.Column('call_group', sa.String(40)),
00085         sa.Column('pickup_group', sa.String(40)),
00086         sa.Column('named_call_group', sa.String(40)),
00087         sa.Column('named_pickup_group', sa.String(40)),
00088         sa.Column('device_state_busy_at', sa.Integer),
00089         sa.Column('fax_detect', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00090         sa.Column('t38_udptl', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00091         sa.Column('t38_udptl_ec', sa.Enum(*PJSIP_T38UDPTL_EC_VALUES, name='pjsip_t38udptl_ec_values')),
00092         sa.Column('t38_udptl_maxdatagram', sa.Integer),
00093         sa.Column('t38_udptl_nat', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00094         sa.Column('t38_udptl_ipv6', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00095         sa.Column('tone_zone', sa.String(40)),
00096         sa.Column('language', sa.String(40)),
00097         sa.Column('one_touch_recording', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00098         sa.Column('record_on_feature', sa.String(40)),
00099         sa.Column('record_off_feature', sa.String(40)),
00100         sa.Column('rtp_engine', sa.String(40)),
00101         sa.Column('allow_transfer', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00102         sa.Column('allow_subscribe', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00103         sa.Column('sdp_owner', sa.String(40)),
00104         sa.Column('sdp_session', sa.String(40)),
00105         sa.Column('tos_audio', sa.Integer),
00106         sa.Column('tos_video', sa.Integer),
00107         sa.Column('cos_audio', sa.Integer),
00108         sa.Column('cos_video', sa.Integer),
00109         sa.Column('sub_min_expiry', sa.Integer),
00110         sa.Column('from_domain', sa.String(40)),
00111         sa.Column('from_user', sa.String(40)),
00112         sa.Column('mwi_fromuser', sa.String(40)),
00113         sa.Column('dtls_verify', sa.String(40)),
00114         sa.Column('dtls_rekey', sa.String(40)),
00115         sa.Column('dtls_cert_file', sa.String(200)),
00116         sa.Column('dtls_private_key', sa.String(200)),
00117         sa.Column('dtls_cipher', sa.String(200)),
00118         sa.Column('dtls_ca_file', sa.String(200)),
00119         sa.Column('dtls_ca_path', sa.String(200)),
00120         sa.Column('dtls_setup', sa.Enum(*PJSIP_DTLS_SETUP_VALUES, name='pjsip_dtls_setup_values')),
00121         sa.Column('srtp_tag_32', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00122     )
00123 
00124     op.create_index('ps_endpoints_id', 'ps_endpoints', ['id'])
00125 
00126     op.create_table(
00127         'ps_auths',
00128         sa.Column('id', sa.String(40), nullable=False, unique=True),
00129         sa.Column('auth_type', sa.Enum(*PJSIP_AUTH_TYPE_VALUES, name='pjsip_auth_type_values')),
00130         sa.Column('nonce_lifetime', sa.Integer),
00131         sa.Column('md5_cred', sa.String(40)),
00132         sa.Column('password', sa.String(80)),
00133         sa.Column('realm', sa.String(40)),
00134         sa.Column('username', sa.String(40)),
00135     )
00136 
00137     op.create_index('ps_auths_id', 'ps_auths', ['id'])
00138 
00139     op.create_table(
00140         'ps_aors',
00141         sa.Column('id', sa.String(40), nullable=False, unique=True),
00142         sa.Column('contact', sa.String(40)),
00143         sa.Column('default_expiration', sa.Integer),
00144         sa.Column('mailboxes', sa.String(80)),
00145         sa.Column('max_contacts', sa.Integer),
00146         sa.Column('minimum_expiration', sa.Integer),
00147         sa.Column('remove_existing', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00148         sa.Column('qualify_frequency', sa.Integer),
00149         sa.Column('authenticate_qualify', sa.Enum(*YESNO_VALUES, name='yesno_values')),
00150     )
00151 
00152     op.create_index('ps_aors_id', 'ps_aors', ['id'])
00153 
00154     op.create_table(
00155         'ps_contacts',
00156         sa.Column('id', sa.String(40), nullable=False, unique=True),
00157         sa.Column('uri', sa.String(40)),
00158         sa.Column('expiration_time', sa.String(40)),
00159         sa.Column('qualify_frequency', sa.Integer),
00160     )
00161 
00162     op.create_index('ps_contacts_id', 'ps_contacts', ['id'])
00163 
00164     op.create_table(
00165         'ps_domain_aliases',
00166         sa.Column('id', sa.String(40), nullable=False, unique=True),
00167         sa.Column('domain', sa.String(80)),
00168     )
00169 
00170     op.create_index('ps_domain_aliases_id', 'ps_domain_aliases', ['id'])
00171 
00172     op.create_table(
00173         'ps_endpoint_id_ips',
00174         sa.Column('id', sa.String(40), nullable=False, unique=True),
00175         sa.Column('endpoint', sa.String(40)),
00176         sa.Column('match', sa.String(80)),
00177     )
00178 
00179     op.create_index('ps_endpoint_id_ips_id',
00180                     'ps_endpoint_id_ips', ['id'])
00181 
00182 
def downgrade():


Variable Documentation

string down_revision = '4da0c5f79a9c'

Definition at line 11 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_100REL_VALUES = ['no', 'required', 'yes']

Definition at line 22 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_AUTH_TYPE_VALUES = ['md5', 'userpass']

Definition at line 31 of file 43956d550a44_add_tables_for_pjsip.py.

Initial value:

['allowed_not_screened', 'allowed_passed_screened',
                            'allowed_failed_screened', 'allowed',
                            'prohib_not_screened', 'prohib_passed_screened',
                            'prohib_failed_screened', 'prohib', 'unavailable']

Definition at line 18 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_CONNECTED_LINE_METHOD_VALUES = ['invite', 'reinvite', 'update']

Definition at line 23 of file 43956d550a44_add_tables_for_pjsip.py.

Definition at line 24 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_DTLS_SETUP_VALUES = ['active', 'passive', 'actpass']

Definition at line 30 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_DTMF_MODE_VALUES = ['rfc4733', 'inband', 'info']

Definition at line 25 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_IDENTIFY_BY_VALUES = ['username']

Definition at line 26 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_MEDIA_ENCRYPTION_VALUES = ['no', 'sdes', 'dtls']

Definition at line 28 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_T38UDPTL_EC_VALUES = ['none', 'fec', 'redundancy']

Definition at line 29 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_TIMERS_VALUES = ['forced', 'no', 'required', 'yes']

Definition at line 27 of file 43956d550a44_add_tables_for_pjsip.py.

Initial value:

['default', 'unspecified', 'tlsv1', 'sslv2',
                                 'sslv3', 'sslv23']

Definition at line 32 of file 43956d550a44_add_tables_for_pjsip.py.

list PJSIP_TRANSPORT_PROTOCOL_VALUES = ['udp', 'tcp', 'tls', 'ws', 'wss']

Definition at line 34 of file 43956d550a44_add_tables_for_pjsip.py.

string revision = '43956d550a44'

Definition at line 10 of file 43956d550a44_add_tables_for_pjsip.py.

list YESNO_VALUES = ['yes', 'no']

Definition at line 17 of file 43956d550a44_add_tables_for_pjsip.py.


Generated on Thu Apr 16 06:41:37 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6