{% extends "base.html" %} {% block title %}py-phone-caller Dashboard{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Cluster Health HUD Auto-sync 10s
{{ cluster_health.gateway.badge if cluster_health else 'APISIX Ingress' }}
{{ cluster_health.iam.badge if cluster_health else 'Keycloak IAM' }}
{{ cluster_health.asterisk.badge if cluster_health else 'Asterisk ARI' }}
{{ cluster_health.database.badge if cluster_health else 'PostgreSQL' }}
{{ cluster_health.redis.badge if cluster_health else 'Redis Broker' }}
{{ cluster_health.sms.badge if cluster_health else 'SMS Engine' }}
{{ _('Live Telephony NOC Dashboard') }}

{{ _('Mission-critical incident response & dispatch telemetry') }}

{{ _('Offline-ready call orchestration.') }}

{% if metrics.is_gsm %} {{ _('Hardware GSM Modem') }} {% else %} {{ _('SaaS Fallback') }} {% endif %} {{ _('Asterisk ARI Connected') }}
{{ _('Total Calls Dispatched') }}

{{ metrics.total_calls }}

{{ _('dispatched') }}
{{ _('DTMF Acknowledgment Rate') }}

{{ metrics.ack_rate }}%

({{ metrics.ack_count }}/{{ metrics.total_calls }})
{{ _('Escalated Calls') }}

{{ metrics.escalated_count }}

{{ _('backup callee') }}
{{ _('SMS Delivery Status') }}

{{ metrics.sms_delivered }}

/ {{ metrics.total_sms }} {{ _('Delivered') }} {% if metrics.sms_failed > 0 %} {{ metrics.sms_failed }} {{ _('Failed') }} {% endif %}
{{ _('Call Lifecycle Breakdown') }} Auto-refreshed
{% set total = metrics.total_calls if metrics.total_calls > 0 else 1 %} {% set p_ack = (metrics.ack_count / total * 100)|round %} {% set p_heard = (metrics.heard_count / total * 100)|round %} {% set p_esc = (metrics.escalated_count / total * 100)|round %} {% set p_flight = (metrics.in_flight_count / total * 100)|round %}
{{ _('Acknowledged') }}: {{ metrics.ack_count }}
{{ _('Heard / Snoozed') }}: {{ metrics.heard_count }}
{{ _('Escalated') }}: {{ metrics.escalated_count }}
{{ _('In Flight') }}: {{ metrics.in_flight_count }}
{% endblock %}