livekit / sip

SIP to WebRTC bridge for LiveKit
132 stars 30 forks source link

Implement Via headers for requests for outbound calls #218

Closed biglittlebigben closed 1 week ago

biglittlebigben commented 1 month ago

For outbound calls, when making requests (BYE/REFER), the Via header should have the IP address/port of the instance sending the request.

We use the private IP because the Transaction logic in sipgo uses this information to bind the socket when making establishing the connection. This should work for UDP, but this will still fail for TCP.