Skip to content
Discussion options

You must be logged in to vote

Those options were removed as part of the 2.0 socket refactor; their behavior moved rather than disappearing.

In 3.13.8, contact_uri replaces hack_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:

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;trans…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jschwinn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants