streambuf_printf(replybuffer,"\nTotal statistics (does not include current running sessions):\n\n");
streambuf_printf(replybuffer," Uptime of rtpengine :%llu seconds\n",(unsignedlonglong)time(NULL)-m->totalstats.started);
streambuf_printf(replybuffer," Uptime of rtpengine :%llu seconds\n",(unsignedlonglong)time(NULL)-rtpe_totalstats.started);
streambuf_printf(replybuffer," Total managed sessions :"UINT64F"\n",num_sessions);
streambuf_printf(replybuffer," Total rejected sessions :"UINT64F"\n",atomic64_get(&m->totalstats.total_rejected_sess));
streambuf_printf(replybuffer," Total timed-out sessions via TIMEOUT :"UINT64F"\n",atomic64_get(&m->totalstats.total_timeout_sess));
streambuf_printf(replybuffer," Total timed-out sessions via SILENT_TIMEOUT :"UINT64F"\n",atomic64_get(&m->totalstats.total_silent_timeout_sess));
streambuf_printf(replybuffer," Total timed-out sessions via FINAL_TIMEOUT :"UINT64F"\n",atomic64_get(&m->totalstats.total_final_timeout_sess));
streambuf_printf(replybuffer," Total regular terminated sessions :"UINT64F"\n",atomic64_get(&m->totalstats.total_regular_term_sess));
streambuf_printf(replybuffer," Total forced terminated sessions :"UINT64F"\n",atomic64_get(&m->totalstats.total_forced_term_sess));
streambuf_printf(replybuffer," Total relayed packets :"UINT64F"\n",atomic64_get(&m->totalstats.total_relayed_packets));
streambuf_printf(replybuffer," Total relayed packet errors :"UINT64F"\n",atomic64_get(&m->totalstats.total_relayed_errors));
streambuf_printf(replybuffer," Total number of streams with no relayed packets :"UINT64F"\n",atomic64_get(&m->totalstats.total_nopacket_relayed_sess));
streambuf_printf(replybuffer," Total number of 1-way streams :"UINT64F"\n",atomic64_get(&m->totalstats.total_oneway_stream_sess));
streambuf_printf(replybuffer," Total rejected sessions :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_rejected_sess));
streambuf_printf(replybuffer," Total timed-out sessions via TIMEOUT :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_timeout_sess));
streambuf_printf(replybuffer," Total timed-out sessions via SILENT_TIMEOUT :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_silent_timeout_sess));
streambuf_printf(replybuffer," Total timed-out sessions via FINAL_TIMEOUT :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_final_timeout_sess));
streambuf_printf(replybuffer," Total regular terminated sessions :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_regular_term_sess));
streambuf_printf(replybuffer," Total forced terminated sessions :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_forced_term_sess));
streambuf_printf(replybuffer," Total relayed packets :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_relayed_packets));
streambuf_printf(replybuffer," Total relayed packet errors :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_relayed_errors));
streambuf_printf(replybuffer," Total number of streams with no relayed packets :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_nopacket_relayed_sess));
streambuf_printf(replybuffer," Total number of 1-way streams :"UINT64F"\n",atomic64_get(&rtpe_totalstats.total_oneway_stream_sess));
streambuf_printf(replybuffer," Average call duration :%ld.%06ld\n\n",avg.tv_sec,avg.tv_usec);