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

Private Networking CIDR on Kubernetes - local hostports undefined #174

Open
Catharsis68 opened this issue Oct 29, 2024 · 1 comment
Open

Comments

@Catharsis68
Copy link
Contributor

Catharsis68 commented Oct 29, 2024

drachtio-server: 0.8.26-rc4
Version: 0.9.2

we are currently running the tag 0.9.2 on a Kubernetes environment.

Reproduce:

  1. Set a CIDR that should be considered as private network via webapp: Settings > Admin > Private Network CIDR 5.56.247.42/32
  2. Create a Carrier with that IP as SIP Gateway for incoming traffic
  3. Send a request from that IP e.g via SIPp

Expected:

  1. sbc-inbound has access to localHostports from srf
  2. Private IPs are negotiated in the PCAP Contact header
  • Contact: sip:10.1.206.25:5060;transport=udp

Actual:

  • Contact: sip:undefined;transport=udp

200 OK (INVITE)
Screenshot from 2024-10-28 12-03-54

Screenshot from 2024-10-28 11-59-02

@Catharsis68
Copy link
Contributor Author

Catharsis68 commented Oct 29, 2024

Update: we have updated the drachtio-server to 0.8.27-rc1

The contact header is no-longer undefined but still the public IP is advertised in the Contact header
Screenshot from 2024-10-29 15-26-58

sbc-inbound app.js with attached debugger
Screenshot from 2024-10-29 17-18-03

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

1 participant