Module: kamailio
Branch: 4.4
Commit: ae7f6d49ed1caf4a133f72012196a876d258e159
URL: 
https://github.com/kamailio/kamailio/commit/ae7f6d49ed1caf4a133f72012196a876d258e159

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: GitHub <nore...@github.com>
Date: 2016-11-30T11:14:08+01:00

Merge pull request #869 from giavac/gv/correlation_id_backport

sipcapture: remove workaround of correlation_id

---

Modified: modules/sipcapture/sipcapture.c

---

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

---

diff --git a/modules/sipcapture/sipcapture.c b/modules/sipcapture/sipcapture.c
index 425a79b..57f1c05 100644
--- a/modules/sipcapture/sipcapture.c
+++ b/modules/sipcapture/sipcapture.c
@@ -2307,7 +2307,6 @@ int receive_logging_json_msg(char * buf, unsigned int 
len, struct hep_generic_re
        if(correlation_id) {
                corrtmp.s = correlation_id;
                corrtmp.len = strlen(correlation_id);
-               if(!strncmp(log_table, "rtcp_capture",12)) corrtmp.len--;
        }
 
        db_keys[0] = &date_column;
@@ -2482,7 +2481,6 @@ static int report_capture(struct sip_msg *msg, str 
*_table, str* _corr,  str *_d
        else if(correlation_id) {
                corrtmp.s = correlation_id;
                corrtmp.len = strlen(correlation_id);
-               if(!strncmp(_table->s, "rtcp_capture",12)) corrtmp.len--;
        }
 
        db_keys[0] = &date_column;


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to