onsip / SIP.js

A simple, intuitive, and powerful JavaScript signaling library
https://sipjs.com
MIT License
1.88k stars 700 forks source link

Ability to disable autoStop feature using SimpleUser #1074

Open DVDripXvid opened 6 months ago

DVDripXvid commented 6 months ago

Is your feature request related to a problem? Please describe. autoStop feature is enabled by default and SimpleUser does not gives us the option to disable it. https://github.com/onsip/SIP.js/blob/2e1c525279c8d6deebb6ecaf3d14477ab7b63310/src/platform/web/session-manager/session-manager.ts#L77

Describe the solution you'd like An autoStop property on SimpleUserOptions

Describe alternatives you've considered Disable autoStop feature by default

Probably the extensibility option for SimpleUser would also give us the option to disable it: https://github.com/onsip/SIP.js/pull/1054

Additional context We also use beforeunload event to do a confirmation thus it might happen that page will actually remain intact. Too bad that autoStop already kicked in.