Quellcode durchsuchen

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

	Thanks Lorenzo Mangani for the patch.
Alexandr Dubovikov vor 11 Jahren
Ursprung
Commit
a4b1683f89
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  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;