@ -32,23 +32,23 @@ static void cli_incoming_list_totals(char* buffer, int len, struct callmaster* m
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Uptime of rtpengine :%llu seconds\n",(unsignedlonglong)time(NULL)-m->totalstats.started);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total managed sessions :%llu\n",(unsignedlonglong)m->totalstats.total_managed_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total managed sessions :"UINT64F"\n",m->totalstats.total_managed_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total timed-out sessions via TIMEOUT :%llu\n",(unsignedlonglong)m->totalstats.total_timeout_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total timed-out sessions via TIMEOUT :"UINT64F"\n",m->totalstats.total_timeout_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total timed-out sessions via SILENT_TIMEOUT :%llu\n",(unsignedlonglong)m->totalstats.total_silent_timeout_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total timed-out sessions via SILENT_TIMEOUT :"UINT64F"\n",m->totalstats.total_silent_timeout_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total regular terminated sessions :%llu\n",(unsignedlonglong)m->totalstats.total_regular_term_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total regular terminated sessions :"UINT64F"\n",m->totalstats.total_regular_term_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total forced terminated sessions :%llu\n",(unsignedlonglong)m->totalstats.total_forced_term_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total forced terminated sessions :"UINT64F"\n",m->totalstats.total_forced_term_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total relayed packets :%llu\n",(unsignedlonglong)m->totalstats.total_relayed_packets);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total relayed packets :"UINT64F"\n",m->totalstats.total_relayed_packets);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total relayed packet errors :%llu\n",(unsignedlonglong)m->totalstats.total_relayed_errors);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total relayed packet errors :"UINT64F"\n",m->totalstats.total_relayed_errors);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total number of streams with no relayed packets :%llu\n",(unsignedlonglong)m->totalstats.total_nopacket_relayed_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total number of streams with no relayed packets :"UINT64F"\n",m->totalstats.total_nopacket_relayed_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total number of 1-way streams :%llu\n",(unsignedlonglong)m->totalstats.total_oneway_stream_sess);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Total number of 1-way streams :"UINT64F"\n",m->totalstats.total_oneway_stream_sess);
ADJUSTLEN(printlen,outbufend,replybuffer);
printlen=snprintf(replybuffer,(outbufend-replybuffer)," Average call duration :%ld.%06ld\n\n",m->totalstats.total_average_call_dur.tv_sec,m->totalstats.total_average_call_dur.tv_usec);
ADJUSTLEN(printlen,outbufend,replybuffer);
@ -148,14 +148,14 @@ static void cli_incoming_list_callid(char* buffer, int len, struct callmaster* m
continue;
printlen=snprintf(replybuffer,(outbufend-replybuffer),"------ Media #%u, port %5u <> %15s:%-5hu%s, "
"%llu p, %llu b, %llu e, %llu last_packet\n",
""UINT64F" p, "UINT64F" b, "UINT64F" e, %llu last_packet\n",