versatica / JsSIP

JsSIP, the JavaScript SIP library
https://jssip.net
Other
2.42k stars 744 forks source link

Why is there a 2-second delay when exiting? According to the source code, it seems to have no practical significance. #865

Closed Makaite closed 2 months ago

Makaite commented 2 months ago

Please, do NOT open an issue if you have problems or questions regarding the use of JsSIP. Use GitHub Discussions instead:

https://github.com/versatica/JsSIP/discussions

If you have found a bug in the software, or want to propose a new well documented feature or improvement, please delete this text and continue. :)

Makaite commented 2 months ago

I have found an explanation:If there are session wait a bit so CANCEL/BYE can be sent and their responses received.But my understanding is that before triggering the close, you need to wait for a message from the server and respond to it. Is this understanding correct.

ibc commented 2 months ago

Please open a discussion for this rather than an issue.

Makaite commented 2 months ago

I'm sorry,I will delete this issue.