{% call build_list_containers(_('Trunks'), 'server') %}
{% call build_list_table() %}
{% call build_list_table_headers(get=url_for('.TrunkView:get', id=''), delete=url_for('.TrunkView:delete', id='')) %}
{{ _('Protocol') }} |
{{ _('Label') }} |
{{ _('Name') }} |
{{ _('Relations') }} |
{% endcall %}
{% call(trunk) build_list_table_rows(resource_list['items']) %}
{% if trunk.endpoint_sip %}
SIP
{% elif trunk.endpoint_iax %}
IAX
{% elif trunk.endpoint_custom %}
CUSTOM
{% else %}
-
{% endif %}
|
{% if trunk.endpoint_sip %}
{{ trunk.endpoint_sip.label }}
{% endif %}
|
{% if trunk.endpoint_sip %}
{{ trunk.endpoint_sip.name }}
{% elif trunk.endpoint_iax %}
{{ trunk.endpoint_iax.name }}
{% elif trunk.endpoint_custom %}
{{ trunk.endpoint_custom.interface }}
{% endif %}
|
{% for outcall in trunk.outcalls %}
{{ _('outcall') }}: {{ outcall.name }}
{% endfor %}
{{ '-' if not trunk.outcalls }}
|
{% endcall %}
{% endcall %}
{% endcall %}
{% call build_hidden_add_containers(_('Choose your protocol')) %}
{% endcall %}
{% endblock %}
{% block additional_js %}
{% endblock %}