sippy / go-b2bua

The GO port of the Sippy B2BUA
BSD 2-Clause "Simplified" License
65 stars 16 forks source link

Do not append IP address into Call-Id header in Random Call-Id scenario #18

Closed kadabusha closed 6 months ago

kadabusha commented 6 months ago

In order to avoid disclosure of IP address assigned to the system in Call-Id field, this change would get the Call-Id generated without hostname's IP at the end.

bambyster commented 6 months ago

Actually there is a way to generate Call-ID in an arbitrary form. Just use the sippy_header.NewSipCallIdFromString() function and pass that new object explicitly either to UA.SetCallId() or as a parameter to NewSipRequest().