{% if channels %}
{{ _("Ongoing Calls") }}
{% for chan in channels %} {% end %}
{% if chan.direction == "inbound" %} {% if chan.conference %} {{ _("Conference Room %s") % chan.conference.number }} ({{ _("One Participant", "%(num)s Participants", len(chan.conference)) % { "num" : len(chan.conference) } }}) {% elif chan.application == "echo" %} {{ _("Echo Test") }} {% elif chan.application == "voicemail" %} {{ _("Voicemail") }} {% elif chan.callee %} {% if chan.callee %} {{ chan.callee }} {% else %} {{ chan.callee_name }} {% end %} ({{ format_phone_number(chan.callee_number) }}) {% else %} {{ format_phone_number(chan.called_number) }} {% end %} {% elif chan.direction == "outbound" %} {% if chan.caller %} {{ chan.caller }} {% else %} {{ chan.caller_name }} {% end %} ({{ format_phone_number(chan.caller_number) }}) {% end %}
{% if chan.is_secure() %} {% end %} {{ chan.codec }}
{% if chan.state == "ACTIVE" %} {# Don't show anything #} {% elif chan.state == "HELD" %} {{ _("On Hold") }} {% elif chan.state == "RINGING" %} {{ _("Ringing") }} {% else %} {{ _("Unknown State: %s") % chan.state }} {% end %} {{ format_time(chan.duration) }}
{% end %}