Browse Source

Add codec info in CDR logging

Log in CDR also the Payload Type of most of the packets for a media.
pull/143/head
Stefan Mititelu 11 years ago
parent
commit
159d86dc92
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      daemon/call.c

+ 8
- 0
daemon/call.c View File

@ -2805,6 +2805,14 @@ void call_destroy(struct call *c) {
STR_FMT(&rtp_pt->encoding), rtp_pt->clock_rate,
STR_FMT(&rtp_pt->encoding_parameters));
/* add PayloadType(codec) info in CDR logging */
if (_log_facility_cdr && rtp_pt) {
cdrbufcur += sprintf(cdrbufcur,
"payload_type=%u, ", rtp_pt->payload_type);
} else if (_log_facility_cdr && !rtp_pt) {
cdrbufcur += sprintf(cdrbufcur, "payload_type=unknown, ");
}
for (o = md->streams.head; o; o = o->next) {
ps = o->data;


Loading…
Cancel
Save