<div dir="ltr">Hi There<div><br></div><div>I am new to Kamailio and have just installed and got it up and running as  a sipcapture node. It is working well and logging all the hep sip traffic in my homer database. </div><div><br></div><div>I have an issue with rtcp extracted to the msg column is not json. It is some kind of weird encoded string (not base64), this is not readable by homer in any way. <br></div><div><br></div><div>When I use nonsip_hook I am able to extract the json from the hep and put it in the msg field. However when I return 1 from the hep route on sip to go back to main route I get parsing errors like so on all the sip messages:-</div><div><br></div><div><div>Oct 27 15:03:41 ip-172-31-19-41 /usr/local/sbin/kamailio[22518]: ERROR: sipcapture [sipcapture.c:2711]: nosip_hep_msg(): couldn't parse sip message</div><div>Oct 27 15:03:41 ip-172-31-19-41 /usr/local/sbin/kamailio[22518]: ERROR: <core> [core/receive.c:186]: receive_msg(): core parsing of SIP message failed (<a href="http://178.78.120.2:44389/1">178.78.120.2:44389/1</a>)</div><div>Oct 27 15:03:41 ip-172-31-19-41 /usr/local/sbin/kamailio[22518]: ERROR: <core> [core/parser/msg_parser.c:331]: parse_headers(): bad header field [(null)]</div><div>Oct 27 15:03:41 ip-172-31-19-41 /usr/local/sbin/kamailio[22518]: WARNING: <core> [core/receive.c:193]: receive_msg(): parsing relevant headers failed</div><div>Oct 27 15:03:41 ip-172-31-19-41 /usr/local/sbin/kamailio[22517]: ERROR: <core> [core/parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad message (offset: 0)</div><div>Oct 27 15:03:41 ip-172-31-19-41 /usr/local/sbin/kamailio[22517]: ERROR: <core> [core/parser/msg_parser.c:675]: parse_msg(): ERROR: parse_msg: message=<HEP3#002,></div></div><div><br></div><div><br></div><div>It never actually enters the main route. With nonsip_hook off, I enter the main route and all my sip messages are there in homer, just missing rtcp as the data is a weird encoded string. </div><div><br></div><div>Hope someone can help</div><div><br></div><div>Thanks</div><div>Nathan</div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:helvetica,arial,sans-serif;font-size:10px;line-height:12px"><span style="box-sizing:border-box;font-weight:bold">Nathan Leyton</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box">/</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box">Chief Technology Officer</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box"><br style="box-sizing:border-box"></span><a href="mailto:nathan@callhandling.co.uk" style="box-sizing:border-box;color:rgb(71,124,204);text-decoration:none;display:inline;background-color:transparent">nathan@callhandling.co.uk</a><span style="box-sizing:border-box"><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span>/<span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span></span><span style="box-sizing:border-box">07482 917 412</span></p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(0,0,0);font-family:helvetica,arial,sans-serif;font-size:10px;line-height:12px"><span style="box-sizing:border-box;font-weight:bold;color:rgb(33,33,33)">Call Handling Ltd</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box"><br style="box-sizing:border-box"></span><span style="box-sizing:border-box;color:rgb(33,33,33)">Office:<span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span></span><span style="box-sizing:border-box;color:rgb(33,33,33)">0333 321 0888</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box;color:rgb(33,33,33)">/ Fax:<span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span></span><span style="box-sizing:border-box;color:rgb(33,33,33)">0333 321 0877</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box"><br style="box-sizing:border-box"></span><span style="box-sizing:border-box;color:rgb(33,33,33)">Bakerloo Chambers</span><span style="box-sizing:border-box;display:block"></span><span style="box-sizing:border-box;color:rgb(33,33,33)">304 Edgware Road, London, W2 1DY</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-Apple-converted-space"> </span><span style="box-sizing:border-box"><br style="box-sizing:border-box"></span><a href="http://www.callhandling.co.uk/" style="box-sizing:border-box;color:rgb(71,124,204);text-decoration:none;display:inline;background-color:transparent">www.callhandling.co.uk</a></p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(0,0,0);font-size:0px;line-height:0;font-family:helvetica,arial,sans-serif"></p><p style="box-sizing:border-box;margin:0px 0px 10px;color:rgb(0,0,0);font-family:helvetica,arial,sans-serif;font-size:10px;line-height:12px"><a href="https://htmlsig.com/t/0000001BREBFR" style="box-sizing:border-box;color:rgb(36,169,57);text-decoration:none;background-color:transparent"><img alt="htmlsig.com" border="0" height="54" width="300" style="box-sizing: border-box; border: 0px; vertical-align: middle;" src="https://htmlsigs.s3.amazonaws.com/banners/files/000/118/625/medium/che_logo_email.png"></a></p></div></div>