sippy / rtpproxy

The RTPproxy is a high-performance software proxy for RTP streams that can work together with Sippy B2BUA, Kamailio, OpenSIPS and SER.
http://rtpproxy.org
BSD 2-Clause "Simplified" License
405 stars 114 forks source link

STATS: output buffer overflow, is this expected behavior? #129

Closed vasilakisfil closed 1 year ago

vasilakisfil commented 2 years ago

Hello,

Building a Rust wrapper around rtpproxy, and while testing I noticed the following behavior:

DBUG:GLOBAL:rtpp_command_split:395: received command "2c37b5b1-fcb8-453f-8cf0-1e0c26d3e2ff GV nsess_created nsess_destroyed nsess_timeout nsess_complete nsess_nortp nsess_owrtp npkts_discard total_duration ncmds_rcvd ncmds_rcvd_ndups ncmds_succd ncmds_errs ncmds_repld rtpa_nsent rtpa_nrcvd rtpa_ndups rtpa_perrs"
ERR:GLOBAL:handle_get_stats:67: STATS: output buffer overflow

Is this expected? Does it mean that I tried to gather too many stats at once?

sobomax commented 1 year ago

@vasilakisfil you are right. At the moment response buffer is limited to 256 bytes.

    char buf_t[256];

There is not a design limitation, rather it's just I've never run over that limit in my usage scenario. The best solution is to make this buffer dynamic, however for the time being I've increased that limit 4x to 1024. Hope it helps!