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

Author: Mikko Lehto <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2017-07-28T10:39:23+02:00

sipcapture: fix custom field variable naming

---

Modified: src/modules/sipcapture/sipcapture.c

---

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

---

diff --git a/src/modules/sipcapture/sipcapture.c 
b/src/modules/sipcapture/sipcapture.c
index 1c365f8168..0132090dca 100644
--- a/src/modules/sipcapture/sipcapture.c
+++ b/src/modules/sipcapture/sipcapture.c
@@ -1887,7 +1887,7 @@ static int sip_capture(struct sip_msg *msg, str *_table, 
_capture_mode_data_t *
        else { EMPTY_STR(sco.custom1); }
        
        /* Custom - field2 */
-       if(custom_field3_header.len > 0 && (tmphdr[5] = 
get_hdr_by_name(msg,custom_field2_header.s, custom_field2_header.len)) != NULL) 
{
+       if(custom_field2_header.len > 0 && (tmphdr[5] = 
get_hdr_by_name(msg,custom_field2_header.s, custom_field2_header.len)) != NULL) 
{
                sco.custom2 =  tmphdr[5]->body;
        }
        else { EMPTY_STR(sco.custom2); }


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to