[OpenSIPS-Users] hep message parsing error question
Pasan Meemaduma
pasandev at ymail.com
Tue Jul 3 03:26:47 EDT 2018
Hi Ryan,
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,
modparam("sipcapture", "rtcp_table_name", "rtcp_capture")
route[my_hep_route] {
### hep_get([data type,] chunk_id, vendor_id_pvar, chunk_data_pvar)
### data type is optional for most of the generic chunks
### Full list here: http://www.opensips.org/html/docs/modules/2.2.x/sipcapture#hep_set_id
#Protocol ID
hep_get("11", "$var(vid)", "$var(data)");
$var(proto) = $(var(data){s.int});
#xlog("L_INFO", "Dumping $var(data) pkts via HEP");
#Logs Or Stats
if($var(proto) == 100 || $var(proto) == 99) {
#hep_set("uint8", "2", , "1");
hep_get("utf8-string", "0x11", "$var(vid)", "$var(correlation_id)");
report_capture("logs_capture", "$var(correlation_id)", "1");
exit;
} else if ( $var(data) == "RTCP") {
hep_get("utf8-string", "0x11", "$var(vid)", "$var(correlation_id)");
report_capture("rtcp_capture", "$var(correlation_id)", "5");
exit;
}
if($var(data) == "SIP") {
hep_resume_sip();
} else {
exit;
}
}
Hope this helps.
On Tuesday, 3 July 2018, 12:47:12 PM GMT+5:30, Ryan Delgrosso <ryandelgrosso at gmail.com> wrote:
Greetings all,
I have recently built a homer system using the V5 Opensips deploy script
and am presently working on getting RTP from rtpengine into homer and
keep encountering this error on the opensips side in the homer server
ERROR:core:parse_method: invalid character {
ERROR:core:parse_msg: message=<{
"sender_information":{"ntp_timestamp_sec":3739588863,"ntp_timestamp_usec":814699461,"octets":640,"rtp_timestamp":2263688717,
"packets":4},"ssrc":303507491,"type":200,"report_count":0,"report_blocks":[],"sdes_ssrc":303507491,"sdes_report_count":1,"sdes_information":
[ {"sdes_chunk_ssrc":303507491,"type":1,"text":"jYeeYPmX6A/YszS6"}] }>
ERROR:core:receive_msg: Unable to parse msg received from [<some
ip>:<some port>]
SIP packets from seem to come through just fine, and taking a network
capture shows both streams begin with "HEP3" so both seem to be V3
streams. Ive also tried both UDP and TCP with the same results. I'm
confident I'm missing something pretty basic here but combing through
the modules docs and the homer docs hasn't yielded much
Any help is much appreciated!
-Ryan
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180703/aa2941a1/attachment.html>
More information about the Users
mailing list