Browse Source

modules/sipcapture: Added X-Rtp stats from Siemens and MediaProxy-Ng.

	Thanks Lorenzo Mangani for the patch.
Alexandr Dubovikov 11 years ago
parent
commit
a4b1683f89
1 changed files with 8 additions and 0 deletions
  1. 8 0
      modules/sipcapture/sipcapture.c

+ 8 - 0
modules/sipcapture/sipcapture.c

@@ -1634,6 +1634,14 @@ static int sip_capture(struct sip_msg *msg, str *_table, _capture_mode_data_t *
 	else if((tmphdr[3] = get_hdr_by_name(msg,"P-RTP-Stat", 10)) != NULL) {
 		sco.rtp_stat =  tmphdr[3]->body;
 	}	                         	
+	/* X-Siemens-RTP-stats */	
+	else if((tmphdr[3] = get_hdr_by_name(msg,"X-Siemens-RTP-stats", 19)) != NULL) {
+		sco.rtp_stat =  tmphdr[3]->body;
+	}	                         
+	/* X-NG-RTP-STATS */	
+	else if((tmphdr[3] = get_hdr_by_name(msg,"X-NG-RTP-STATS", 14)) != NULL) {
+		sco.rtp_stat =  tmphdr[3]->body;
+	}	                         	
 	/* RTP-RxStat */
         else if((tmphdr[3] = get_hdr_by_name(msg,"RTP-RxStat", 10)) != NULL) {
                 if(tmphdr[3]->body.len > 250) tmphdr[3]->body.len = 250;