增加video相关的统计信息

  1. <configuration name="cdr_csv.conf" description="CDR CSV Format">
  2. <settings>
  3. <!-- 'cdr-csv' will always be appended to log-base -->
  4. <!--<param name="log-base" value="/var/log"/>-->
  5. <param name="default-template" value="example"/>
  6. <!-- This is like the info app but after the call is hung up -->
  7. <!--<param name="debug" value="true"/>-->
  8. <param name="rotate-on-hup" value="true"/>
  9. <!-- may be a b or ab -->
  10. <param name="legs" value="a"/>
  11. <!-- Only log in Master.csv -->
  12. <!-- <param name="master-file-only" value="true"/> -->
  13. </settings>
  14. <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>
  15. </templates>
  16. </configuration>

在最新的fs1.10.3中,变量名称前面不需要加variable! 老版本1.6.20中需要加variable前缀。

更多的变量参考:
Channel_Hangup_Complete: 带视频呼出

音频相关的环境变量

  1. "${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}"