Skip to content

Heplify parsing issue when using TCP #691

Open
@rnt-stephsav

Description

@rnt-stephsav

Hi,
I'm using TCP from kamailio node to heplify (latest release), I well see heplify received many TCP including all SIP messages separatelly but when parsing to postgres db it sends one write query with all SIP messages inside and then I get error:

2025/07/09 16:14:18.000126 tcp.go:95: WARN unexpected EOF, unusal packet size with 20048 bytes                                                                                                                                                            
2025/07/09 16:14:18.000153 tcp.go:67: INFO closing TCP connection from 10.4.6.97:37942

When I check in Webapp I see only one message for the call an Invite but in Invite Message all SIP messages are inside same message before it generated the error

09/07/2025 18:13:48.118 +02:00: xxxxxxx:5092 -> xxxxxxx:5060
INVITE sip:+yyyyyyy@xxxxxxx:5060;transport=udp;user=phone SIP/2.0
Via: SIP/2.0/UDP xxxxxxx:5092;branch=z9hG4bK-683-1-0
To: <sip:+yyyyyyy@xxxxxxx;user=phone>
From: <sip:+yyyyyyy@xxxxxxx;user=phone>;tag=1
Call-ID: 1-683@xxxxxxx
CSeq: 1 INVITE
Content-Length: 266
Max-Forwards: 62
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,INFO,PRACK,UPDATE
Contact: <sip:+yyyyyyy@xxxxxxx:5092;user=phone;transport=udp>
Accept: application/sdp
P-Asserted-Identity: <sip:+yyyyyyy@xxxxxxx:5092;user=phone>
P-Early-Media: supported
Supported: timer,100rel
Session-Expires: 1800
Min-SE: 90
Content-Disposition: session;handling=required
Content-Type: application/sdp

v=0
o=user1 53655765 2353687637 IN IP4 xxxxxxx
s=-
c=IN IP4 xxxxxxx
t=0 0
m=audio 6000 RTP/AVP 8 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20

SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP xx.xx.xx.xx:5092;branch=z9hG4bK-683-1-0;rport=5092
To: <sip:[email protected];user=phone>
From: <sip:[email protected];user=phone>;tag=1
Call-ID: 1-683@xxxxxxx
CSeq: 1 INVITE
Server: kamailio (5.8.0 (x86_64/linux))
Content-Length: 0

INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP xx.xx.xx.xx;branch=z9hG4bK98c8.0b66dcca778922e5f4e4e689b8ec76d5.0
To: <sip:+yyyyyyy@xxxxxxx;user=phone>
From: <sip:+yyyyyyy@xxxxxxx;user=phone>;tag=1
Call-ID: [email protected]
CSeq: 1 INVITE
Content-Length: 539
Max-Forwards: 61
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,INFO,PRACK,UPDATE
Accept: application/sdp
P-Asserted-Identity: <sip:[email protected]:5092;user=phone>
P-Early-Media: supported
Supported: timer,100rel
Session-Expires: 1800
Min-SE: 90
Content-Disposition: session;handling=required
Content-Type: application/sdp
P-hint: outbound
Contact: <sip:[email protected]>

v=0
o=user1 53655765 2353687637 IN IP4 xx.xx.xx.xx
s=-
c=IN IP4 xx.xx.xx.xx
t=0 0
m=audio 33272 RTP/AVP 8 18 96 97 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:96 AMR-WB/16000
a=fmtp:96 octet-align=1;mode-change-capability=2
a=rtpmap:97 telephone-event/16000
a=fmtp:97 0-15
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20

SIP/2.0 100 Trying
Via: SIP/2.0/UDP xx.xx.xx.xx;branch=z9hG4bK98c8.0b66dcca778922e5f4e4e689b8ec76d5.0
To: <sip:[email protected];user=phone>
From: <sip:[email protected];user=phone>;tag=1
Call-ID: [email protected]
CSeq: 1 INVITE
Server: Kamailio I-CSCF
Content-Length: 0

SIP/2.0 480 Temporarily Unavailable - HSS Identity not registered
Via: SIP/2.0/UDP xx.xx.xx.xx;branch=z9hG4bK98c8.0b66dcca778922e5f4e4e689b8ec76d5.0
To: <sip:[email protected];user=phone>;tag=3e233551431ce154977025d091b9e3b5-60a10000
From: <sip:[email protected];user=phone>;tag=1
Call-ID: [email protected]
CSeq: 1 INVITE
Server: Kamailio I-CSCF
Content-Length: 0

ACK sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP xx.xx.xx.xx;branch=z9hG4bK98c8.0b66dcca778922e5f4e4e689b8ec76d5.0
To: <sip:[email protected];user=phone>;tag=3e233551431ce154977025d091b9e3b5-60a10000
From: <sip:[email protected];user=phone>;tag=1
Call-ID: [email protected]
CSeq: 1 ACK
Content-Length: 0
Max-Forwards: 61

INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP xx.xx.xx.xx;branch=z9hG4bK98c8.0b66dcca778922e5f4e4e689b8ec76d5.1
To: <sip:[email protected];user=phone>
From: <sip:[email protected];user=phone>;tag=1
Call-ID: [email protected]
CSeq: 1 INVITE
Content-Length: 271
Max-Forwards: 61
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,INFO,PRACK,UPDATE
Accept: application/sdp
P-Asserted-Identity: <sip:[email protected]:5092;user=phone>
P-Early-Media: supported
Supported: timer,100rel
Session-Expires: 1800
Min-SE: 90
Content-Disposition: session;handling=required
Content-Type: application/sdp
P-hint: outbound
P-hint-mss: outbound mss
Contact: <sip:[email protected]>

v=0
o=user1 53655765 2353687637 IN IP4 xx.xx.xx.xx
s=-
c=IN IP4 xx.xx.xx.xx
t=0 0
m=audio 39266 RTP/AVP 8 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions