DoubangoTelecom / sipml5

The world's first HTML5 SIP client (WebRTC)
BSD 3-Clause "New" or "Revised" License
935 stars 455 forks source link

Registration "Expiring" #334

Open gabrielhl91 opened 4 years ago

gabrielhl91 commented 4 years ago

Good afternoon, i'm having some troubles with my application, i'm using sipml5 and asterisk 13.24.1, and there's an issue that keeps reoccurring, wich is my Registration seems to expire, and then it registers the SIP account again on asterisk, that happens like 1000 times a day on only one account. I'm kinda lost, and don't know for sure if it's an issue with asterisk, webRTC or the library, any suggestions?

Thanks! Capture

thisis-akash commented 3 months ago

As far as I know till now, we initialise a SIP stack and then use it to initialise sessions within it or using it. SIP stack is ideally expected to be initialised only once. You can initialise multiple stacks if you have to or want to but for a one single feature, there should not be a need to do it. We start audio/video and other sessions after it as we need. Now these sessions have an expiry beyond which it sends a REGISTER request, I think its typically 300s/5min. This is normal. You can adjust expiry as per your requirements though. (I don't know if you can turn it off, check the docs)