<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hi <span>Ryan,<br></span><span></span><div><br><div><div>You need to handle RTCP pkt separately. you can't pass it to opensips because it expect a sip packet, not a json encoded object. You can use the following config to log your rtcp pkts to appropriate table. Change your HEP route as below,<br><div><br><span>modparam("sipcapture", "rtcp_table_name", "rtcp_capture")<br><br></span><br></div></div><div><br><span>route[my_hep_route] {<br><br> ### hep_get([data type,] chunk_id, vendor_id_pvar, chunk_data_pvar)<br> ### data type is optional for most of the generic chunks<br> ### Full list here: http://www.opensips.org/html/docs/modules/2.2.x/sipcapture#hep_set_id<br><br> #Protocol ID<br> hep_get("11", "$var(vid)", "$var(data)");<br><br> $var(proto) = $(var(data){s.int});<br><br> #xlog("L_INFO", "Dumping $var(data) pkts via HEP");<br> #Logs Or Stats<br> if($var(proto) == 100 || $var(proto) == 99) {<br> #hep_set("uint8", "2", , "1");<br> hep_get("utf8-string", "0x11", "$var(vid)", "$var(correlation_id)");<br> report_capture("logs_capture", "$var(correlation_id)", "1");<br> exit;<br> } else if ( $var(data) == "RTCP") {<br> hep_get("utf8-string", "0x11", "$var(vid)", "$var(correlation_id)");<br> report_capture("rtcp_capture", "$var(correlation_id)", "5");<br> exit;<br> }<br><br><br> if($var(data) == "SIP") {<br> hep_resume_sip();<br> } else {<br> exit;<br> }<br><br>}<br><br></span>Hope this helps. <br></div></div></div></div><div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_1559946322" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, 3 July 2018, 12:47:12 PM GMT+5:30, Ryan Delgrosso <ryandelgrosso@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Greetings all,<br></div><div dir="ltr"><br></div><div dir="ltr">I have recently built a homer system using the V5 Opensips deploy script <br></div><div dir="ltr">and am presently working on getting RTP from rtpengine into homer and <br></div><div dir="ltr">keep encountering this error on the opensips side in the homer server<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">ERROR:core:parse_method: invalid character {<br></div><div dir="ltr"><br></div><div dir="ltr">ERROR:core:parse_msg: message=<{ <br></div><div dir="ltr">"sender_information":{"ntp_timestamp_sec":3739588863,"ntp_timestamp_usec":814699461,"octets":640,"rtp_timestamp":2263688717, <br></div><div dir="ltr">"packets":4},"ssrc":303507491,"type":200,"report_count":0,"report_blocks":[],"sdes_ssrc":303507491,"sdes_report_count":1,"sdes_information": <br></div><div dir="ltr">[ {"sdes_chunk_ssrc":303507491,"type":1,"text":"jYeeYPmX6A/YszS6"}] }><br></div><div dir="ltr">ERROR:core:receive_msg: Unable to parse msg received from [<some <br></div><div dir="ltr">ip>:<some port>]<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">SIP packets from seem to come through just fine, and taking a network <br></div><div dir="ltr">capture shows both streams begin with "HEP3" so both seem to be V3 <br></div><div dir="ltr">streams. Ive also tried both UDP and TCP with the same results. I'm <br></div><div dir="ltr">confident I'm missing something pretty basic here but combing through <br></div><div dir="ltr">the modules docs and the homer docs hasn't yielded much<br></div><div dir="ltr"><br></div><div dir="ltr">Any help is much appreciated!<br></div><div dir="ltr"><br></div><div dir="ltr">-Ryan<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">Users mailing list<br></div><div dir="ltr"><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br></div><div dir="ltr"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></div>
</div>
</div></div></body></html>