-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubleshoot sending RTCP-XR to Homer via Kamailio #638
Comments
I did a pcap and see Kamailio is sending the PUBLISH message to Homer on port 9060. I am attaching it here. |
After consideration, I think the issue is with Homer and/or Heplify. I recall being told SIP messages need to be encapsulated into HEP to be Read by Homer. From using sngrep, I now see the Asterisk is sending SIP PUBLISH messages encapsulated into HEP because I have HEP enabled on Asterisk. What I have tried:
So what is going on? Why is RTXP-XR not getting into Homer? I am thinking this is a bug. |
Thanks for opening an issue to discuss this.
I think there's quite a bit of confusion here. HEP is our encapsulation format and its used by our integrtations. RTCP-XR are out-of-band messages, not part of the SIP session. Sending them to HOMER as HEP will only have them ingested, and not interpreted. HOMER is not a collector of RTCP messages.
That's right. You can use the TODO
|
RTCP-XR may not be SIP, but I can see they are sent as PUBLISH messages within SIP. So this is really confusing. I recall seeing this proclaiming Homer can do it, but there really was no explanation how it was done, and this presentation was done before HEP even existed. https://youtu.be/N76odN3z9iU?si=Of0jxfipBSOQ5Gcz.
Yes, I have, but I saw no RTCP-XR being displayed in Homer I can do another test and present the results here. However, what do you mean by "extract the XR values into a native format"? |
Let's go step by step to get this working
Right. SIP PUBLISH/NOTIFY out-of-band messages are used as "transport" to deliver the RTCP statistics from the client inside the message body. Unlike other SIP messages, those are usually handled "destructively" by extracting the values and converting them to a HEP TYPE 35 media report correlated to the originating session(s) and discarding the vector message(s). As you know - HOMER is NOT a SIP server and it cannot receive SIP messages directly and provide a response to a public client - this is why we prefer the gateway approach as a parallel service (which can be done in many ways, including xrcollector or by using Kamailio/OpenSIPS to form the media report) into a HEP TYPE 5 (RTCP) report which can be received, stored and used by our stack. This allows scaling the approach and controlling resources without exposing HEP services, etc.
Yes please! Let's see where this fails - if its our fault a fix will be in order and if the instructions are inaccurate we'll fix them up. Thanks! |
Here are my current test results based on Asterisk still sending to Kamailio, with Kamailio still sending to Homer, and the telephone sending to the heplify-xrcollector. Asterisk: 192.168.1.74 Results from heplify-xrcollector
Looking inside table hep_proto_35_default:
Looking at Homer: So, where is the RCTP-XR data supposed to be shown? P.S. "and if the instructions are inaccurate..." What instructions? |
Per instructions here: https://github.com/sipcapture/homer/wiki/Example:-RTCPXR You need to specify the address of homer via the -hs option inside the xr-collector command to send the HEP where it needs to go. (Unless of course the default is the same as where you would send it) |
Thanks for taking the time to respond, but I have been through all of that. As I reported before, I can see the RTCP-XR data in the database, but nothing is showing up in Homer. I even tried Homer 5 like the Dangerous Demo video, but still nothing |
I recall in version 5, there was installations of Homer with Kamailio and OpenSIPS so I hope one can help me here.
I have setup Homer 7 (Docker image) and Kamailio installed on the same server.
I managed to setup Kamailio to send SIP PUBLISH messages to Homer on Port 9060.
It appears to be set up correctly. Here is the kamailio.cfg
https://pastebin.com/fpKjC7DN
Doing a test with a telephone, I can see via sngrep a PUBLISH message is being sent from the PBX, and Kamailio log is reporting :
From my understanding RTCP-XR data should be in the database "homer_data" and in the table "hep_proto_35_default" using Homer 7 Docker image. At this time, I am seeing nothing there. In the past I ran Negbie's hepify-xrcollector-test in which that table is filled with RTCP-XR data from the test program.
Is any means to check if it really is getting a proper XR-RTCP PUBLISH SIP message, and seeing the reason it is not making it into the database?
The text was updated successfully, but these errors were encountered: