Answer the question
In order to leave comments, you need to log in
How to increase the lifetime of a SIP session?
Hi friends!
The site has zoiper webphone installed. when you first open the page, there is a long (15-30 sec) account registration on the telephony server. With the next updates, one passes in 1-2 seconds. those. the session is currently live. If you reload the page after some time, then registration again lasts 15-30 seconds).
I understand this is the life settings of the sip session.
1. tell me where to change this parameter in the asterisk config in order to increase the session lifetime up to 10-15 minutes (so that subsequent sip-user registrations pass quickly).
2. correct me if I'm fighting in the wrong direction.
Answer the question
In order to leave comments, you need to log in
a SIP session is opened from a client-server browser session, so its lifetime is limited by some cookie and does not depend on the asterisk, the context is simply lost when the page is refreshed and that's it.
Thinking aloud...
I also think that the lifetime of a SIP session has nothing to do with it.
It, the time of life is the time from registration to registration.
The main task of registration is to receive incoming calls/messages from clients behind NAT. If there are none, then there is no need to enter registration on Asterisk - the server.
Here we are talking more about slow authorization, and increasing or decreasing the session lifetime will not speed it up in any way.
I can’t say anything about Zoiper - I haven’t tried it, but there is another option that the connection is fading somewhere on the routers, and in this case connection keep-alive on the client and qualify=yes and qualifyfreq=XX on the server can help.
Well, just in case, about registration...
maxexpiry=XX
minexpiry=XX
defaultexpiry=XX (sec)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question