瀏覽代碼

Merge pull request #757 from adubovikov/master

modules/sipcapture: extended X-RTP-Stat types
Alexandr Dubovikov 9 年之前
父節點
當前提交
9721f55598
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      modules/sipcapture/sipcapture.c

+ 8 - 1
modules/sipcapture/sipcapture.c

@@ -1860,7 +1860,14 @@ static int sip_capture(struct sip_msg *msg, str *_table, _capture_mode_data_t *
 	else if((tmphdr[3] = get_hdr_by_name(msg,"RTP-RxStat", 10)) != NULL) {
 		sco.rtp_stat =  tmphdr[3]->body;
 	}
-
+	/* X-RTP-Stat-Add */
+	else if((tmphdr[3] = get_hdr_by_name(msg,"X-RTP-Stat-Add", 14)) != NULL) {
+		sco.rtp_stat =  tmphdr[3]->body;
+	}
+	/* X-RTP-Stat-T38 */
+	else if((tmphdr[3] = get_hdr_by_name(msg,"X-RTP-Stat-T38", 14)) != NULL) {
+		sco.rtp_stat =  tmphdr[3]->body;
+	}
 	else { EMPTY_STR(sco.rtp_stat); }