-
Notifications
You must be signed in to change notification settings - Fork 726
Description
Describe the bug
For some reason when using "UserAgent.stop()" function it takes around 30 seconds to stop everything until it responses with the appropriate promise.
What I'm trying to achieve is a full unregister command, where it not only make an unregister but also:
- Clearing all SIP subscriptions.
- Closing the web socket connection.
From what I understand, the "stop()" function does exactly that. Only it is taking too much time.
Logs
Here are the logs from the console: logs
Observed behavior
Only after around ~32 seconds we can see at: 15:14:05.797
The following log:
sip.subscribe-dialog | Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY.
Only after the above log it is disposing the publishers and the transport (WS) level.
What makes me think that it may occur as a result of that SUBSCRIBE message that it's timer expired, but not entirely sure.
Environment Information
- Kamailio 5.3.5 (Web Socket)
- Google Chrome 85.0.4183.121
- SIP.JS 0.17.1