Skip to content

UserAgent.stop() function takes too much time #863

@slavikbialik

Description

@slavikbialik

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:

  1. Clearing all SIP subscriptions.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions