From 7d7054eafa76f1b9cda588c6a46229f732b7ccad Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 12 Nov 2012 19:05:16 +0100 Subject: nat: Include the sccp_src_ref and sccp_dst_ref for this call This can help with some post analysis for failed calls and helps finding the connection in the pcap trace. --- openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c index 411d500d9..226486c32 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c @@ -435,7 +435,7 @@ static void handle_dlcx_response(struct bsc_connection *bsc, struct msgb *msg, } cmd->id = "0"; - cmd->variable = "nat.call_stats.v1"; + cmd->variable = "nat.call_stats.v2"; cmd->reply = talloc_asprintf(cmd, "bsc_id=%d,mg_ip_addr=%s,mg_port=%d,", bsc->cfg->nr, inet_ntoa(stat->net_addr), @@ -454,10 +454,14 @@ static void handle_dlcx_response(struct bsc_connection *bsc, struct msgb *msg, cmd->reply = talloc_asprintf_append(cmd->reply, "bsc_pkt_in=%u,bsc_pkt_out=%u," "bsc_bytes_in=%u,bsc_bytes_out=%u," - "bsc_jitter=%u,bsc_pkt_lost=%d", + "bsc_jitter=%u,bsc_pkt_lost=%d,", n_pr, b_ps, n_or, b_os, jitter, loss); + cmd->reply = talloc_asprintf_append(cmd->reply, + "sccp_src_ref=%u,sccp_dst_ref=%u", + sccp_src_ref_to_int(&stat->src_ref), + sccp_src_ref_to_int(&stat->remote_ref)); /* send it and be done */ ctrl_cmd_send_to_all(bsc->nat->ctrl, cmd); -- cgit v1.2.3