rtcagent icon indicating copy to clipboard operation
rtcagent copied to clipboard

Wrong Source and Destinations IPs with IPv6

Open teamwcp opened this issue 1 year ago • 3 comments

I have tried using rtcagent with IPv6 and its sending wrong src and destination IPs.

Aug 19 06:50:04 SIPLB-Dev rtcagent[28776]: kamailio_2024/08/19 06:50:04 LETS SEND HEP
Aug 19 06:50:04 SIPLB-Dev rtcagent[28776]: kamailio_2024/08/19 06:50:04 event ==== ID:PID:54385, Comm:kamailio
Aug 19 06:50:04 SIPLB-Dev rtcagent[28776]: , TID:54385, Received 818 bytes from 42.5.208.28:5060, TimeML: 1445124394701952, RealTime: 2024-08-19 06:50:04.199206453 +0000 UTC, SrcIP: 42.5.208.28, SrcPort: 5060, DstIP: 42.5.208.28, DstPort: 0, Payload:
Aug 19 06:50:04 SIPLB-Dev rtcagent[28776]: SIP/2.0 200 OK
Aug 19 06:50:04 SIPLB-Dev rtcagent[28776]: Via: SIP/2.0/TCP [X:d01c:944:X:44e6:a8fd:X:453c]:6060;branch=z9hG4bKa11e.32b9b6b0c8da333f27b538eda1b6d8d0.0;i=6;rport=38367
Aug 19 06:50:04 SIPLB-Dev rtcagent[28776]: Via: SIP/2.0/TLS [X:4a43:X:d692:287f:e154:X:318f]:49512;received=X:4a43:X:d692:287f:e154:X:318f;rport=49512;branch=z9hG4bKPjg6gqdLiVm7-vShyul3pKsGgzEPdSZGbh;alias

SrcIP: 42.5.208.28, SrcPort: 5060, DstIP: 42.5.208.28, DstPort: 0

teamwcp avatar Aug 19 '24 07:08 teamwcp

thank you for the report, let us try to check.

adubovikov avatar Aug 19 '24 08:08 adubovikov

https://github.com/sipcapture/rtcagent/blob/main/kern/kamailio.h#L160

the flag is set wrong. Need to investigate.

adubovikov avatar Aug 19 '24 15:08 adubovikov

@adubovikov How can I set this flag while starting rtcagent ? and some traffic is on IPv6 but most of the traffic in on IPv4, Will setting this flag cause any issue to IPv4 traffic?

teamwcp avatar Sep 02 '24 05:09 teamwcp