osmo-mgw/src/libosmo-mgcp
Stefan Sperling 1e174875bf add MGCP CRCX command statistics to osmo-mgw
Add a counter group for CRCX commands. The group contains counters for
successful connection processing as well as various error conditions.
This provides a quick overview of CRCX failures on each trunk throughout
the lifetime of the osmo-mgw process.

For example, after running the TTCN3 mgw test suite, the counters show
the following values:

OsmoMGW> show rate-counters
crxc statistics:
             crcx:success:         88 (0/s 88/m 0/h 0/d) CRCX command processed successfully.
          crcx:bad_action:          0 (0/s 0/m 0/h 0/d) bad action in CRCX command.
     crcx:unhandled_param:          1 (0/s 1/m 0/h 0/d) unhandled parameter in CRCX command.
      crcx:missing_callid:          1 (0/s 1/m 0/h 0/d) missing CallId in CRCX command.
        crcx:invalid_mode:          1 (0/s 1/m 0/h 0/d) connection invalid mode in CRCX command.
      crcx:limit_exceeded:          0 (0/s 0/m 0/h 0/d) limit of concurrent connections was reached.
       crcx:unkown_callid:          0 (0/s 0/m 0/h 0/d) unknown CallId in CRCX command.
     crcx:alloc_conn_fail:          0 (0/s 0/m 0/h 0/d) connection allocation failure.
 crcx:no_remote_conn_desc:          1 (0/s 1/m 0/h 0/d) no opposite end specified for connection.
   crcx:start_rtp_failure:          0 (0/s 0/m 0/h 0/d) failure to start RTP processing.
       crcx:conn_rejected:          0 (0/s 0/m 0/h 0/d) connection rejected by policy.
OsmoMGW>

These same counters are now also shown by 'show mgcp stats'
in the context of the trunk which they belong to.

With input from Philipp Maier.

Change-Id: Ida82fc340d5c66180e5fe9a0d195e9be6dc64c61
Related: OS#2660
2018-10-29 10:17:20 +00:00
..
Makefile.am mgw: clean up codec negotiation (sdp) 2018-06-23 11:39:44 +00:00
g711common.h create libosmo-mgcp and osmo-mgw by copying legacy code 2017-10-05 01:40:43 +00:00
mgcp_codec.c mgcp_network: translate payload type numbers in RTP packets 2018-07-31 17:18:14 +00:00
mgcp_conn.c mgcp_conn_get(): match conn Id ('I:') despite leading zeros 2018-09-07 04:14:51 +02:00
mgcp_endp.c mgcp: fix use-after-free and add callback for endpoint cleanup 2018-02-06 08:21:24 +00:00
mgcp_msg.c fix mgcp_verify_ci(): off-by-one in max len check 2018-09-03 23:08:08 +02:00
mgcp_network.c check_rtp_origin(): Avoid using memcmp for comparing integer types 2018-10-21 12:01:04 +02:00
mgcp_osmux.c osmux: Avoid processing further frames if conn not found 2018-10-16 16:45:43 +02:00
mgcp_protocol.c add MGCP CRCX command statistics to osmo-mgw 2018-10-29 10:17:20 +00:00
mgcp_sdp.c mgcp_sdp: restructure mgcp_write_response_sdp() (audio) 2018-08-05 07:17:17 +00:00
mgcp_stat.c stat+vty: fix printing of rate counter values 2018-07-09 17:24:55 +02:00
mgcp_vty.c add MGCP CRCX command statistics to osmo-mgw 2018-10-29 10:17:20 +00:00