Skip to content
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

Wrong Source and Destinations IPs with IPv6 #15

Open
teamwcp opened this issue Aug 19, 2024 · 3 comments
Open

Wrong Source and Destinations IPs with IPv6 #15

teamwcp opened this issue Aug 19, 2024 · 3 comments
Assignees

Comments

@teamwcp
Copy link

teamwcp commented Aug 19, 2024

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

@adubovikov
Copy link
Member

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

@adubovikov adubovikov self-assigned this Aug 19, 2024
@adubovikov
Copy link
Member

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

the flag is set wrong. Need to investigate.

@teamwcp
Copy link
Author

teamwcp commented Sep 2, 2024

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants