[sr-dev] git:master:81006ee1: tmrec: more details about duration format for time recurrences

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 1 09:18:48 CEST 2015


Module: kamailio
Branch: master
Commit: 81006ee1246b8f700ce9ce20814d4522780d7ceb
URL: https://github.com/kamailio/kamailio/commit/81006ee1246b8f700ce9ce20814d4522780d7ceb

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-09-01T09:17:39+02:00

tmrec: more details about duration format for time recurrences

---

Modified: modules/tmrec/doc/tmrec_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/81006ee1246b8f700ce9ce20814d4522780d7ceb.diff
Patch: https://github.com/kamailio/kamailio/commit/81006ee1246b8f700ce9ce20814d4522780d7ceb.patch

---

diff --git a/modules/tmrec/doc/tmrec_admin.xml b/modules/tmrec/doc/tmrec_admin.xml
index c70bdb2..b791226 100644
--- a/modules/tmrec/doc/tmrec_admin.xml
+++ b/modules/tmrec/doc/tmrec_admin.xml
@@ -126,9 +126,14 @@ modparam("tmrec", "separator", ";")
 			For a recurring interval, the <quote>duration</quote> parameter MUST
 			be small enough such that subsequent intervals do not overlap. 
 			For non-recurring intervals, durations of any positive length are 
-			permitted.  Zero-length duration means <quote>forever</quote>. 
-			Negative-length durations are not allowed. See RFC 2445 for
-			the format of duration.
+			permitted. Zero-length duration means <quote>forever</quote>. 
+			Negative-length durations are not allowed.
+			</para>
+			<para>
+			See RFC 2445 for the format of duration. In short for common cases
+			when the duration doesn't exeed a data, it must start with PT
+			followed by the value for hours, minutes or seconds - e.g., a
+			duration of 8 hours must be written as PT8H.
 			</para>
 		</listitem>
 		<listitem>
@@ -253,7 +258,7 @@ modparam("tmrec", "separator", ";")
 		Next is an example of evaluating multiple Byxxx parameters.
 		</para>
 		<para>
-		startdate=<quote>20100101T093000</quote> duration=<quote>10H30M</quote>
+		startdate=<quote>20100101T093000</quote> duration=<quote>PT10H30M</quote>
 		frequency=<quote>yearly</quote> interval=<quote>4</quote> 
 		bymonth=<quote>3</quote> byday=<quote>SU</quote>
 		</para>




More information about the sr-dev mailing list