pyVoIP
pyVoIP copied to clipboard
IP Address in SIP headers may need to be different depending on the context.
Currently, everything runs off of one IP address which is the bind IP address. This is a problem as many people use 0.0.0.0 and any UAS/UAC that is trying to use headers to send a response would fail. Ideally, we would have four options, a bind IP address, a private network IP address, a private network subnet mask, and a public IP address or hostname.
In this way, we would have a bind address which can be 0.0.0.0, then when attempting to originate a call it will see if the IP address that is being connected to is outside of the private network with the private network IP address/subnet mask, and use either the private IP or hostname.
This change is being added to 2.0.