aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-12 19:05:16 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-16 09:17:21 +0200
commit7d7054eafa76f1b9cda588c6a46229f732b7ccad (patch)
treee5e50ca8da5250c7daca7bb31fbd22f1993ba7e1 /openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
parent7c831ecd191bab20ab5330d16da147e9a12bbba8 (diff)
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.
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c8
1 files 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 411d500d..226486c3 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);