What happened to hack config params? #974
|
hack_via_tcp I noticed that these params were removed and are no longer available in recent releases. Just curious why they were removed and if there was new functionality added to handle these scenarios? I'm currently using a fake static IP in my contact_uri and was looking to possible set hack_ip_in_contact = true. Using JsSIP 3.13.8 with Kamailio 6.1. Thanks |
Replies: 1 comment
|
Those options were removed as part of the 2.0 socket refactor; their behavior moved rather than disappearing. In 3.13.8, The Via overrides now belong to the socket: const socket = new JsSIP.WebSocketInterface('wss://example.com');
socket.via_transport = 'WS'; // old hack_via_ws behavior
// socket.via_transport = 'TCP'; // old hack_via_tcp behavior
const ua = new JsSIP.UA({
sockets: [socket],
contact_uri: 'sip:user@192.0.2.10;transport=ws'
});
|
Those options were removed as part of the 2.0 socket refactor; their behavior moved rather than disappearing.
In 3.13.8,
contact_urireplaceshack_ip_in_contact. Its host is also used as the Via sent-by host, so your static fake-IP URI already covers that case. The old flag generated a random TEST-NET address, so adding it would not be equivalent to your current static value.The Via overrides now belong to the socket: