{% extends "templates/web.html" %} {% block page_content %}

Wholesale / Retail Mapping

Tag each of your trunk groups and customer account IDs as wholesale or retail. The 499-A handler uses this to split revenue between Block 3 (carrier-to-carrier) and Block 4-A (end-user). Calls whose trunk group / account isn't tagged show up as unknown — tag them so your study is complete.

{% if not profile %}

No CDR profile yet — configure ingestion first.

{% else %}

Trunk groups ({{ trunk_groups|length }})

{% if not trunk_groups %}

No trunk groups seen in the last 90 days yet. Upload some CDRs or wait for the puller's next run.

{% else %} {% for tg in trunk_groups %} {% set current = "unknown" %} {% for m in existing if m.match_type == "trunk_group" and m.match_value == tg %} {% set current = m.bucket %} {% endfor %} {% endfor %}
Trunk Group IDBucket
{{ tg }}
{% endif %}

Customer account IDs ({{ account_ids|length }})

{% if not account_ids %}

No distinct customer account IDs seen in the last 90 days.

{% else %} {% for aid in account_ids %} {% set current = "unknown" %} {% for m in existing if m.match_type == "account_id" and m.match_value == aid %} {% set current = m.bucket %} {% endfor %} {% endfor %}
Account IDBucket
{{ aid }}
{% endif %}
{% endif %}
{% endblock %}