def update_sip_configuration(info):
    common.open_url('general_sip')
    common.go_to_tab('Security')

    checked = info['allow tls connections'] == "yes"
    Checkbox.from_label("Allow TLS connections").set_checked(checked)

    form.input.set_text_field_with_label("Listening address", info['listening address'])
    form.select.set_select_field_with_label("Server certificate", info['server certificate'])
    form.select.set_select_field_with_label("CA certificate", info['ca certificate'])
    form.submit.submit_form()
Beispiel #2
0
def update_sip_configuration(info):
    common.open_url('general_sip')
    common.go_to_tab('Security')

    checked = info['allow tls connections'] == "yes"
    Checkbox.from_label("Allow TLS connections").set_checked(checked)

    form.input.set_text_field_with_label("Listening address",
                                         info['listening address'])
    form.select.set_select_field_with_label("Server certificate",
                                            info['server certificate'])
    form.select.set_select_field_with_label("CA certificate",
                                            info['ca certificate'])
    form.submit.submit_form()
Beispiel #3
0
def _toggle_live_reload(state):
    common.open_url('general_settings')
    option = Checkbox.from_label('Live reload configuration')
    if state == 'enable':
        option.check()
    else:
        option.uncheck()
    form.submit.submit_form()
def _toggle_live_reload(state):
    common.open_url("general_settings")
    option = Checkbox.from_label("Live reload configuration")
    if state == "enable":
        option.check()
    else:
        option.uncheck()
    form.submit.submit_form()
Beispiel #5
0
def given_there_is_group1_activated_in_extensions_page(step, option_label):
    common.open_url('extenfeatures')
    option = Checkbox.from_label(option_label)
    option.check()
    form.submit.submit_form()
def _get_shrink_caller_id_option():
    common.open_url('general_iax')
    common.go_to_tab('Advanced')
    option = Checkbox.from_label('Shrink CallerID')

    return option
def _get_srv_lookup_option():
    common.open_url('general_iax')
    common.go_to_tab('Default')
    option = Checkbox.from_label('SRV lookup')

    return option
def _set_exten(exten_name, enabled):
    common.open_url(_exten_url_map[exten_name])
    Checkbox.from_label(exten_name).set_checked(enabled)
    form.submit.submit_form()
def _get_sip_option_from_label(label):
    option = Checkbox.from_label(label)
    return option
Beispiel #10
0
def given_there_is_group1_activated_in_extensions_page(step, option_label):
    common.open_url("extenfeatures")
    option = Checkbox.from_label(option_label)
    option.check()
    form.submit.submit_form()
def _get_shrink_caller_id_option():
    common.open_url('general_iax')
    common.go_to_tab('Advanced')
    option = Checkbox.from_label('Shrink CallerID')

    return option
def _get_srv_lookup_option():
    common.open_url('general_iax')
    common.go_to_tab('Default')
    option = Checkbox.from_label('SRV lookup')

    return option
Beispiel #13
0
def when_i_disable_custom_codecs_for_this_line(step):
    line_action_webi.search_line_number(world.id)
    common.edit_line(world.id)
    _open_codec_page()
    Checkbox.from_label("Customize codecs:").uncheck()
    form.submit.submit_form()
Beispiel #14
0
def when_i_disable_line_codecs_customization_for_line(step, number):
    line_id = line_helper.find_line_id_with_exten_context(number, 'default')
    common.open_url('line', 'edit', {'id': line_id})
    _open_codec_page()
    Checkbox.from_label("Customize codecs:").uncheck()
    form.submit.submit_form()