增加video相关的统计信息
<configuration name="cdr_csv.conf" description="CDR CSV Format">
<settings>
<!-- 'cdr-csv' will always be appended to log-base -->
<!--<param name="log-base" value="/var/log"/>-->
<param name="default-template" value="example"/>
<!-- This is like the info app but after the call is hung up -->
<!--<param name="debug" value="true"/>-->
<param name="rotate-on-hup" value="true"/>
<!-- may be a b or ab -->
<param name="legs" value="a"/>
<!-- Only log in Master.csv -->
<!-- <param name="master-file-only" value="true"/> -->
</settings>
<templates> <template name="example">"${caller_id_name}","${caller_id_number}","${destination_number}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${rtp_video_in_packet_count}","${rtp_video_in_media_packet_count}","${rtp_video_in_skip_packet_count}","${rtp_video_out_packet_count}","${rtp_video_out_media_packet_count}"</template>
</templates>
</configuration>
在最新的fs1.10.3中,变量名称前面不需要加variable! 老版本1.6.20中需要加variable前缀。
更多的变量参考:
Channel_Hangup_Complete: 带视频呼出
音频相关的环境变量
"${variable_rtp_audio_in_raw_bytes}", "${variable_rtp_audio_in_media_bytes}", "${variable_rtp_audio_in_packet_count}", "${variable_rtp_audio_in_media_packet_count}", "${variable_rtp_audio_in_skip_packet_count}", "${variable_rtp_audio_in_jitter_packet_count}", "${variable_rtp_audio_in_dtmf_packet_count}", "${variable_rtp_audio_in_cng_packet_count}", "${variable_rtp_audio_in_flush_packet_count}", "${variable_rtp_audio_in_largest_jb_size}", "${variable_rtp_audio_in_jitter_min_variance}", "${variable_rtp_audio_in_jitter_max_variance}", "${variable_rtp_audio_in_jitter_loss_rate}", "${variable_rtp_audio_in_jitter_burst_rate}", "${variable_rtp_audio_in_mean_interval}", "${variable_rtp_audio_in_flaw_total}", "${variable_rtp_audio_in_quality_percentage}", "${variable_rtp_audio_in_mos}", "${variable_rtp_audio_out_raw_bytes}", "${variable_rtp_audio_out_media_bytes}", "${variable_rtp_audio_out_packet_count}", "${variable_rtp_audio_out_media_packet_count}", "${variable_rtp_audio_out_skip_packet_count}", "${variable_rtp_audio_out_dtmf_packet_count}", "${variable_rtp_audio_out_cng_packet_count}", "${variable_rtp_audio_rtcp_packet_count}", "${variable_rtp_audio_rtcp_octet_count}"