Module: sip-router Branch: master Commit: a4b1683f89708e311f6a37b4ab57004391e49cc9 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a4b1683f...
Author: Alexandr Dubovikov alexandr.dubovikov@gmail.com Committer: Alexandr Dubovikov alexandr.dubovikov@gmail.com Date: Mon Feb 3 11:07:48 2014 +0100
modules/sipcapture: Added X-Rtp stats from Siemens and MediaProxy-Ng.
Thanks Lorenzo Mangani for the patch.
---
modules/sipcapture/sipcapture.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c index dc46ab8..f89b98c 100644 --- a/modules/sipcapture/sipcapture.c +++ b/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;