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 ?


I am loading my web app on two computers from the same IP address via

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 ‘’ closed
== WebSocket connection from ‘’ 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 @ 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.