Sip.js extension gets disconnected when another sip extension connects

EDIT: this happens only when both sip clients are registering from the same public ip
what am I doing wrong ?

PC1 10.1.1.4
PC2 10.1.1.5

I am loading my web app on two computers from the same IP address via https://10.1.1.4:4200

when I refresh one of the pages the other one gets disconnected.

– Removed contact ‘sip:[email protected]:53460;transport=ws;x-ast-orig-host=g41f6lnjnnu0.invalid:0’ from AOR ‘1004’ due to shutdown
== Contact 1004/sip:[email protected]:53460;transport=ws;x-ast-orig-host=g41f6lnjnnu0.invalid:0 has been deleted
== Endpoint 1004 is now Unreachable
– Removed contact ‘sip:[email protected]:53560;transport=ws;x-ast-orig-host=c4q90vbgpk9a.invalid:0’ from AOR ‘1000’ due to shutdown
== Contact 1000/sip:[email protected]:53560;transport=ws;x-ast-orig-host=c4q90vbgpk9a.invalid:0 has been deleted
== Endpoint 1000 is now Unreachable
== WebSocket connection from ‘83.33.123.221:53560’ closed
== WebSocket connection from ‘83.33.123.221:32824’ for protocol ‘sip’ accepted using version ‘13’
– Added contact ‘sip:[email protected]:32824;transport=ws;x-ast-orig-host=qg212770nlbj.invalid:0’ to AOR ‘1000’ with expiration of 600 seconds
== Endpoint 1000 is now Reachable
– Contact 1000/sip:[email protected]:32824;transport=ws;x-ast-orig-host=qg212770nlbj.invalid:0 is now Reachable. RTT: 34.411 msec

What version of Asterisk? An older version had a bug that would incorrectly terminate other connections.

Asterisk 16.28.0~dfsg-0+deb11u2 built by nobody @ buildd.debian.org on a unknown running Linux on 2023-02-22 22:11:00 UTC

Entirely possible you’re getting hit by that bug then, which was fixed in 16.30.0[1].

[1] [ASTERISK-30369] res_pjsip: Websockets from same IP shut down when they shouldn't be - Digium/Asterisk JIRA

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.