aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/mgcp_internal.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2014-09-17 12:33:09 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2014-09-17 19:34:25 +0200
commitee11bc0f5c69d8ffa78b5de1de0ec365e4de4a12 (patch)
treea54e835329c8fd3219463377be584723bbbeda3b /openbsc/include/openbsc/mgcp_internal.h
parent8d2fe43c7f6034aaa1883cb7bba919a54c317517 (diff)
osmux: send osmux stats in MGCP DLCX responses
This allows us to know what number of messages and bytes has been received per active osmux endpoint. Note that an Osmux message is composed of several chunks. Each chunk contains an osmux header plus several voice data frames. P: PS=385, OS=11188, PR=195, OR=5655, PL=0, JI=49 X-Osmo-CP: EC TIS=0, TOS=0, TIR=0, TOR=0 X-Osmux-ST: CR=51, BR=3129 The new 'X-Osmux-ST:' notifies the received chunks and bytes.
Diffstat (limited to 'openbsc/include/openbsc/mgcp_internal.h')
-rw-r--r--openbsc/include/openbsc/mgcp_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h
index 34c3d973a..3bccb39df 100644
--- a/openbsc/include/openbsc/mgcp_internal.h
+++ b/openbsc/include/openbsc/mgcp_internal.h
@@ -190,6 +190,11 @@ struct mgcp_endpoint {
struct osmux_in_handle *in;
/* handle to unbatch messages */
struct osmux_out_handle out;
+ /* statistics */
+ struct {
+ uint32_t chunks;
+ uint32_t octets;
+ } stats;
} osmux;
};