[sr-dev] git:master:d26e99aa: modules/sipcapture: extended X-RTP-Stat types

GitHub noreply at github.com
Fri Aug 26 12:45:13 CEST 2016


Module: kamailio
Branch: master
Commit: d26e99aaecff3e9654a4a1e4e641e1678d078330
URL: https://github.com/kamailio/kamailio/commit/d26e99aaecff3e9654a4a1e4e641e1678d078330

Author: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2016-08-26T12:42:41+02:00

modules/sipcapture: extended X-RTP-Stat types

added X-RTP-Stat-T38 and X-RTP-Stat-Add.

---

Modified: modules/sipcapture/sipcapture.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d26e99aaecff3e9654a4a1e4e641e1678d078330.diff
Patch: https://github.com/kamailio/kamailio/commit/d26e99aaecff3e9654a4a1e4e641e1678d078330.patch

---

diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c
index ddce49c..47e193c 100644
--- a/modules/sipcapture/sipcapture.c
+++ b/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); }
 
 




More information about the sr-dev mailing list