<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 28.01.2022 18:46, Kingsley Tart
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:68cd768a9eaace315b7a4451cfc142e5f4bfc879.camel@dns99.co.uk">
<div><br>
</div>
<pre>+--------+---------+--------------+---------------------------+----------+---------+--------+----------+--------------+--------------+-------------+</pre>
<pre>| ruleid | groupid | prefix | timerec | priority | routeid | gwlist | sort_alg | sort_profile | attrs | description |</pre>
<pre>+--------+---------+--------------+---------------------------+----------+---------+--------+----------+--------------+--------------+-------------+</pre>
<pre>| 173 | 0 | 441476292509 | 20220124T000000|404999 | 1 | NULL | #gw9 | N | NULL | endpoint=gw9 | NULL |</pre>
<pre>| 174 | 0 | 441476292509 | 20220128T163000|504096247 | 1 | NULL | #gw1 | N | NULL | endpoint=gw1 | NULL |</pre>
<pre>+--------+---------+--------------+---------------------------+----------+---------+--------+----------+--------------+--------------+-------------+</pre>
</blockquote>
<p><font face="monospace">Hi Kingsley,</font></p>
<p><font face="monospace">The 3.1 release is the final release using
the classic timerec support. Since 3.2, the time recurrence
parsing and evaluation is much more consistent and well-tested
across all modules using this concept.</font></p>
<p><font face="monospace">Still, in order to fix your issue on 3.1,
the format I linked is the ONLY way in order to define an [A, B)
interval, where B is non-inclusive. Looking at your examples,
both strings seem wrong ("20220124T000000|404999" and "20220128T163000|504096247"),
because of the poorly formatted DURATION field -- the second
one. Example correct strings for that field: </font><font
face="monospace"><font face="monospace">P7W (7 weeks), </font>PT24H
(24 hours), PT1M30S (1 minute 30 seconds), etc.. The official
format is detailed here<sup>[1]</sup>. Fun fact: MySQL's Galera
engine uses this exact format as well, in order to represent
time durations in its config file.</font></p>
<p><font face="monospace">[1]:
<a class="moz-txt-link-freetext" href="https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.6">https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.6</a><br>
</font></p>
<p><font face="monospace">Hope this helps,<br>
</font></p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
</body>
</html>