瀏覽代碼

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

	Thanks Lorenzo Mangani for the patch.
Alexandr Dubovikov 11 年之前
父節點
當前提交
a4b1683f89
共有 1 個文件被更改,包括 8 次插入0 次删除
  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) {
 	else if((tmphdr[3] = get_hdr_by_name(msg,"P-RTP-Stat", 10)) != NULL) {
 		sco.rtp_stat =  tmphdr[3]->body;
 		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 */
 	/* RTP-RxStat */
         else if((tmphdr[3] = get_hdr_by_name(msg,"RTP-RxStat", 10)) != NULL) {
         else if((tmphdr[3] = get_hdr_by_name(msg,"RTP-RxStat", 10)) != NULL) {
                 if(tmphdr[3]->body.len > 250) tmphdr[3]->body.len = 250;
                 if(tmphdr[3]->body.len > 250) tmphdr[3]->body.len = 250;