MT#61757 add field lengths to field definitions

Currently unused

Change-Id: I9fc2d190b1278a874b55f61a7c77dce3a8b575d3
mr13.2.1
Richard Fuchs 4 months ago
parent f54c934bb8
commit 707a179883

@ -51,8 +51,8 @@ static void free_cdrs(cdr_entry_t **cdrs, uint64_t cdr_count) {
for (uint64_t i = 0; i < cdr_count; i++) {
cdr_entry_t *cdr = &(*cdrs)[i];
#define F(f) g_string_free(cdr->f, TRUE);
#define FA(f, a) for (unsigned int j = 0; j < a; j++) g_string_free(cdr->f[j], TRUE);
#define F(f, x) g_string_free(cdr->f, TRUE);
#define FA(f, a, x) for (unsigned int j = 0; j < a; j++) g_string_free(cdr->f[j], TRUE);
#include "cdr_field_names.inc"
@ -1408,8 +1408,8 @@ static cdr_entry_t *alloc_cdrs(uint64_t cdr_count) {
for (uint64_t i = 0; i < cdr_count; i++) {
cdr_entry_t *cdr = &cdrs[i];
#define F(f) cdr->f = g_string_new("");
#define FA(f, a) for (unsigned int j = 0; j < a; j++) cdr->f[j] = g_string_new("");
#define F(f, x) cdr->f = g_string_new("");
#define FA(f, a, x) for (unsigned int j = 0; j < a; j++) cdr->f[j] = g_string_new("");
#include "cdr_field_names.inc"

@ -26,8 +26,8 @@ typedef struct {
int avg_rtt;
} mos_data_t;
#define F(f) GString *f;
#define FA(f, a) GString *f[a];
#define F(f, x) GString *f;
#define FA(f, a, x) GString *f[a];
typedef struct {
#include "cdr_field_names.inc"

@ -1,56 +1,56 @@
F(call_id)
F(source_user_id)
F(source_ext_subscriber_id)
F(source_ext_contract_id)
F(source_provider_id)
F(source_user)
F(source_domain)
F(source_cli)
F(source_ip)
FA(source_gpp, 10)
F(source_lnp_prefix)
F(source_user_out)
F(source_lnp_type)
F(destination_user_id)
F(destination_provider_id)
F(destination_ext_subscriber_id)
F(destination_ext_contract_id)
F(destination_user)
F(destination_domain)
F(destination_user_in)
F(destination_domain_in)
F(destination_dialed)
FA(destination_gpp, 10)
F(destination_lnp_prefix)
F(destination_user_out)
F(destination_lnp_type)
F(call_type)
F(call_status)
F(call_code)
F(peer_auth_user)
F(peer_auth_realm)
F(furnished_charging_info)
F(header_diversion)
F(header_pai)
F(header_u2u)
F(header_ppi)
F(group)
F(source_concurrent_calls_quota)
F(source_concurrent_calls_count)
F(source_concurrent_calls_count_customer)
F(destination_concurrent_calls_quota)
F(destination_concurrent_calls_count)
F(destination_concurrent_calls_count_customer)
F(hg_ext_response)
F(r_user)
F(r_ua)
F(source_last_hih)
F(acc_ref)
F(call_id, 255)
F(source_user_id, 36)
F(source_ext_subscriber_id, 255)
F(source_ext_contract_id, 255)
F(source_provider_id, 255)
F(source_user, 255)
F(source_domain, 255)
F(source_cli, 64)
F(source_ip, 64)
FA(source_gpp, 10, 255)
F(source_lnp_prefix, 255)
F(source_user_out, 255)
F(source_lnp_type, 255)
F(destination_user_id, 36)
F(destination_provider_id, 255)
F(destination_ext_subscriber_id, 255)
F(destination_ext_contract_id, 255)
F(destination_user, 255)
F(destination_domain, 255)
F(destination_user_in, 255)
F(destination_domain_in, 255)
F(destination_dialed, 255)
FA(destination_gpp, 10, 255)
F(destination_lnp_prefix, 255)
F(destination_user_out, 255)
F(destination_lnp_type, 255)
F(call_type, 0)
F(call_status, 0)
F(call_code, 3)
F(peer_auth_user, 255)
F(peer_auth_realm, 255)
F(furnished_charging_info, 0)
F(header_diversion, 0)
F(header_pai, 0)
F(header_u2u, 0)
F(header_ppi, 0)
F(group, 0)
F(source_concurrent_calls_quota, 0)
F(source_concurrent_calls_count, 0)
F(source_concurrent_calls_count_customer, 0)
F(destination_concurrent_calls_quota, 0)
F(destination_concurrent_calls_count, 0)
F(destination_concurrent_calls_count_customer, 0)
F(hg_ext_response, 0)
F(r_user, 0)
F(r_ua, 0)
F(source_last_hih, 0)
F(acc_ref, 255)

Loading…
Cancel
Save