From 12bb34e69991ff2d55198f75ba26d7cc7bc29b53 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Fri, 27 Jan 2017 16:11:48 +0100 Subject: [PATCH] TT#9714 susbcriber first non-prim alias for edr records Change-Id: I36a6e918239ea649e4668759f930a3ad8292c1e4 --- lib/get_cdr_export_fields | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/get_cdr_export_fields b/lib/get_cdr_export_fields index 8c2ec120..9dcc4319 100644 --- a/lib/get_cdr_export_fields +++ b/lib/get_cdr_export_fields @@ -84,6 +84,11 @@ X_cdr_id_map.PILOT_SUBSCRIBER_PROFILE_ID = edr_type_select("events_relation","events_relation_data","relation_id","val","pilot_subscriber_profile_id"); X_cdr_id_map.PILOT_SUBSCRIBER_PROFILE_SET_NAME = edr_type_select("events_tag","events_tag_data","tag_id","val","pilot_subscriber_profile_set_name"); X_cdr_id_map.PILOT_SUBSCRIBER_PROFILE_SET_ID = edr_type_select("events_relation","events_relation_data","relation_id","val","pilot_subscriber_profile_set_id"); + X_cdr_id_map.FIRST_NON_PRIMARY_ALIAS_USERNAME_BEFORE = edr_type_select("events_tag","events_tag_data","tag_id","val","first_non_primary_alias_username_before"); + X_cdr_id_map.FIRST_NON_PRIMARY_ALIAS_USERNAME_AFTER = edr_type_select("events_tag","events_tag_data","tag_id","val","first_non_primary_alias_username_after"); + X_cdr_id_map.PILOT_FIRST_NON_PRIMARY_ALIAS_USERNAME_BEFORE = edr_type_select("events_tag","events_tag_data","tag_id","val","pilot_first_non_primary_alias_username_before"); + X_cdr_id_map.PILOT_FIRST_NON_PRIMARY_ALIAS_USERNAME_AFTER = edr_type_select("events_tag","events_tag_data","tag_id","val","pilot_first_non_primary_alias_username_after"); + X_cdr_id_map.TIMESTAMP = "from_unixtime(accounting.events.timestamp)"; # translate the fields