[OpenSIPS-Users] Expires value - [ZVP-JQSVP-142]

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Oct 11 09:37:21 UTC 2022


Hi Artem,

I see - so at each re-registration cycle you loose 1 secs, dropping from 
the 120 provisioned all the way the minimum of 29...., right ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
   https://www.opensips.org/events/Summit-2022Athens/

On 10/11/22 11:23 AM, Artem Fomenko wrote:
>
> Hello Bogdan-Andrei,
>
> I have a conversation with VoIP provider, he decrease "expires" time 
> by 1 sec on each registration from 120 sec (our expiry value) to 29 
> sec (according 30 sec - minimal provider's value). So registration 
> become to process too often. It is not make any problems for now. The 
> provider motivates its behavior by the following:
>
>     "
>
>     In fact, this is the time left to the end of the registration,
>     which is indicated in the "expires" parameter sent in our 200 OK.
>     "The time left to the end of the registration" was my
>     interpretation, but I think it's a reasonable one.  When your side
>     requests "expires=120", our side honors this request, but due to
>     the actual record in the location registrar occurring milliseconds
>     later, the required "expires" time becomes 119.
>
>     Imagine that a bigger delay happens between receiving INVITE and
>     the actual recording to the location registrar, let's say about 2
>     seconds. In this case, if 200 OK was generated with "expires=120"
>     and sent 2 seconds later after receiving the first INVITE, your
>     side would think that the registration ends 2 seconds later than
>     actually it was requested.
>
>     "
>
> this is not a violation of RFC3261 Section 10.3 step 8:
>
>     "
>     The registrar returns a 200 (OK) response.  The response MUST contain Contact header field values enumerating all current bindings.  Each Contact value MUST feature an "expires" parameter indicating its expiration interval chosen by the registrar.
>
>     "
>
> But in my opinion, the interpretation of the provider is not entirely 
> correct. Despite this, I would like to know your opinion on this issue.
>
> Regards,
>
> LiveAgent 	
>
> *Artem Fomenko*
>
> *Development Team*
>
> +421 2 33 456 826 (EU & Worldwide)
>
> +1-888-257-8754 (USA & Canada)
>
> www.liveagent.com 
> <https://mandrillapp.com/track/click/31141827/www.liveagent.com?p=eyJzIjoiNVY3bUczMHNFUVR5eHRJNF8wcDJJVGRVelFVIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3d3dy5saXZlYWdlbnQuY29tXFxcL1wiLFwiaWRcIjpcImZmYzkxOWU5ZTM1ZTQ2OTg4ZDAxN2I1NDk5YzI1YzBlXCIsXCJ1cmxfaWRzXCI6W1wiMWE5YWE2OGRhMDk4NmJjYmZkOTY4OWZjOGM3NDcyMTRmNGQ2Y2U1ZlwiXX0ifQ>
>
> *How nice was my reply?*
>
> 1 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoiN0t4TFY3T2xvcm5sNHFQZmxQM1NDRk1DaVRzIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz0xXCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	2 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoicTAyYnJnd2c3cW9xV1R2Q2hMbmhJQnpXcW1FIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz0yXCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	3 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoielM5ZWV1UTJ3VzRONkJmME9nT1RwU2lUbkFBIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz0zXCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	4 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoibWF5bmNzQkZIUi1uaUJCZzBLUmxONVY5SEE0IiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz00XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	5 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoiVW9yaTM0ZGJrTkpnOUdOVExuUDhtTWhqNGRjIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz01XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	6 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoid2Z1WTRUTzNtTG1JZWtjMTA0QVNyVFBKOVJvIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz02XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	7 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoiZ3V1cm82ZnBRUThwWHMzS0pCYTlzMW53TjBzIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz03XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	8 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoicjE4Z1psNFdEeUJWLW4wYzM0S3pEUTIzUUxNIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz04XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	9 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoiNHZMWGQzZ1pGNTdDTmtseHNEX01FejBmaWk4IiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz05XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI3MjAwNGI3M2Q2MjJlY2M4ZDFjZTliMWUzMDdhYTU1ODMzZDFjNDE2XCJdfSJ9> 
> 	10 
> <https://mandrillapp.com/track/click/31141827/survey.nicereply.com?p=eyJzIjoidjhtQUxwNWlLVDlVU0hnblNUbU53bGgwbDZZIiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cnZleS5uaWNlcmVwbHkuY29tXFxcL3F1YWxpdHl1bml0cXVcXFwvd3VvNXZ3cm5cXFwvZnd1YWNjOTE_cz0xMFwiLFwiaWRcIjpcImZmYzkxOWU5ZTM1ZTQ2OTg4ZDAxN2I1NDk5YzI1YzBlXCIsXCJ1cmxfaWRzXCI6W1wiNzIwMDRiNzNkNjIyZWNjOGQxY2U5YjFlMzA3YWE1NTgzM2QxYzQxNlwiXX0ifQ> 
>
> *Rate the answer or view the ticket history here 
> <https://mandrillapp.com/track/click/31141827/support.qualityunit.com?p=eyJzIjoiRUJUTFhOMGF4Z3Z0a3Atb2xGTlZweHlUVWY0IiwidiI6MSwicCI6IntcInVcIjozMTE0MTgyNyxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3N1cHBvcnQucXVhbGl0eXVuaXQuY29tXFxcL3RpY2tldF9IR0ZlMXV5Y0RYOVhrR3A4XCIsXCJpZFwiOlwiZmZjOTE5ZTllMzVlNDY5ODhkMDE3YjU0OTljMjVjMGVcIixcInVybF9pZHNcIjpbXCI5YTBkNGI5MzYwMGExOGRkYTU0YzMzNDc1OTg1M2NhMzFmM2U4MTdmXCJdfSJ9>* 
>
>
>
>
> -----Original message-----
> From: Bogdan-Andrei Iancu <bogdan at opensips.org>
> Sent: 2022-10-10 16:50:42
>
>
>
>     Hi Artem,
>
>     This is the intended behavior of the module, re-register with the
>     last "expires" provided by the server - if the server had a good
>     reason to lower the registration time on first register, it will
>     most probably do it for the re-register's also. So does not make
>     too much of a sense to keep using the initial DB value - or do you
>     have some good reason not to update ?
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com
>     OpenSIPS Summit 27-30 Sept 2022, Athens
>        https://www.opensips.org/events/Summit-2022Athens/
>
>     On 9/23/22 7:15 PM, Artem Fomenko via Users wrote:
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221011/1b35d322/attachment.html>


More information about the Users mailing list