sipcapture / heplify-server

HEP Capture Server for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
184 stars 85 forks source link

Invites too large and being discarded #375

Closed rmmacala closed 4 years ago

rmmacala commented 4 years ago

I am using Kamailio to duplicate SIP messages and send them to a homer7 server. A tcpdump shows the INVITES are reaching the homer server but they are not being stored in the database and do not show on the GUI. The INVITES are longer than 1500 and Kamailio returns a:

14(37) ERROR: <core> [core/udp_server.c:594]: udp_send(): sendto(sock, buf: 0x7f2e423d70f8, len: 1537, 0, dst: (10.0.1.59:9060), tolen: 16) - err: Message too long (90) 14(37) ERROR: siptrace [../../core/forward.h:228]: msg_send_buffer(): udp_send failed 14(37) ERROR: siptrace [siptrace_hep.c:215]: trace_send_hep3_duplicate(): cannot send hep duplicate message

Can Homer be configured to accept these messages or is this a kamailio siptrace issue?

I used the https://github.com/sipcapture/homer/wiki/Examples%3A-Kamailio configuration as an example. The siptrace module duplicate_uri is UDP only.

negbie commented 4 years ago

Hi @rmmacala did you try to use TCP?

negbie commented 4 years ago

Ah just saw that you mention it's UDP only. Mby you can run a heplify client as a sidecar?

negbie commented 4 years ago

And keep in mind that heplify-server will only accept HEP3. As far as I can tell you are using HEP2 (trace_send_hep2_duplicate)

rmmacala commented 4 years ago

I will double check my HEP version. I am not overly familiar with Kamailio configuration and integration with Homer, is there alternative way to send the SIP traffic to the homer server? otherwise, yes, a heplify sidecar might be my only option.

rmmacala commented 4 years ago

edited original post with a more recent log capture, before was a bad copy paste on my part. currently using HEP3 to send to homer from kamailio.

negbie commented 4 years ago

IMHO the fastest way to get you up and running is to download latest heplify version here https://github.com/sipcapture/heplify/releases and point it to heplify-server.

rmmacala commented 4 years ago

Alright, I can close this issue then. Seems like heplify might be the only way to send TCP. Thanks.

negbie commented 4 years ago

Your welcome. If you still have some troubles just post it here and I'm sure it's fixed in no time!