THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#365 - modules/app_lua: sr.xavp.get() allow get all values of a name
User who did this - Víctor Seva (linuxmaniac)
Reason for closing: Implemented
Additional comments about closing: Documentation updated too
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=365
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#365 - modules/app_lua: sr.xavp.get() allow get all values of a name
User who did this - Daniel-Constantin Mierla (miconda)
----------
I see the wiki is presenting a third parameter for getting one or all values of an xavp:
- http://www.kamailio.org/wiki/embeddedapi/devel/lua#srxavpget
Patch can be committed, but the docs have to be synchronized with the right prototype.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=365#comment1261
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: 4.0
Commit: 7273c7cbc63d9cc44e9340859d9f5d1692fee4a6
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7273c7c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 2 11:25:56 2014 +0100
tmrec: updated the examples with tmrec duration
- hint to read rfc2445 for duration format
(cherry picked from commit 99d1170469c60206992c083f2ba0e9dc6b580d37)
(cherry picked from commit df0218611b8f27ccaa924b8f88560c2e81966823)
---
modules/tmrec/README | 6 +++---
modules/tmrec/doc/tmrec_admin.xml | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/modules/tmrec/README b/modules/tmrec/README
index a9b331f..84b7a56 100644
--- a/modules/tmrec/README
+++ b/modules/tmrec/README
@@ -138,7 +138,7 @@ modparam("tmrec", "separator", ";")
subsequent intervals do not overlap. For non-recurring intervals,
durations of any positive length are permitted. Zero-length
duration means "forever". Negative-length durations are not
- allowed.
+ allowed. See RFC 2445 for the format of duration.
* frequency - can be one of the following values: "daily" - specify
repeating periods based on an interval of a day or more; "weekly" -
specify repeating periods based on an interval of a week or more;
@@ -222,9 +222,9 @@ modparam("tmrec", "separator", ";")
Example 1.2. tmrec_match usage
...
- if(tmrec_match("20120101T000000|24H|weekly|||SA,SU")
+ if(tmrec_match("20120101T000000|PT24H|weekly|||SA,SU")
xdbg("it is weekend!\n");
- if(tmrec_match("20120101T083000|10H|weekly|||MO,TU,WE,TH,FR")
+ if(tmrec_match("20120101T083000|PT10H|weekly|||MO,TU,WE,TH,FR")
xdbg("it is with working hours\n");
...
diff --git a/modules/tmrec/doc/tmrec_admin.xml b/modules/tmrec/doc/tmrec_admin.xml
index 782b1f1..7a429eb 100644
--- a/modules/tmrec/doc/tmrec_admin.xml
+++ b/modules/tmrec/doc/tmrec_admin.xml
@@ -127,7 +127,8 @@ modparam("tmrec", "separator", ";")
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.
+ Negative-length durations are not allowed. See RFC 2445 for
+ the format of duration.
</para>
</listitem>
<listitem>
@@ -274,9 +275,9 @@ modparam("tmrec", "separator", ";")
<title><function>tmrec_match</function> usage</title>
<programlisting format="linespecific">
...
- if(tmrec_match("20120101T000000|24H|weekly|||SA,SU")
+ if(tmrec_match("20120101T000000|PT24H|weekly|||SA,SU")
xdbg("it is weekend!\n");
- if(tmrec_match("20120101T083000|10H|weekly|||MO,TU,WE,TH,FR")
+ if(tmrec_match("20120101T083000|PT10H|weekly|||MO,TU,WE,TH,FR")
xdbg("it is with working hours\n");
...
</programlisting>
Module: sip-router
Branch: 4.1
Commit: df0218611b8f27ccaa924b8f88560c2e81966823
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=df02186…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 2 11:25:56 2014 +0100
tmrec: updated the examples with tmrec duration
- hint to read rfc2445 for duration format
(cherry picked from commit 99d1170469c60206992c083f2ba0e9dc6b580d37)
---
modules/tmrec/README | 8 ++++----
modules/tmrec/doc/tmrec_admin.xml | 7 ++++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/modules/tmrec/README b/modules/tmrec/README
index 6cffee0..84b7a56 100644
--- a/modules/tmrec/README
+++ b/modules/tmrec/README
@@ -138,7 +138,7 @@ modparam("tmrec", "separator", ";")
subsequent intervals do not overlap. For non-recurring intervals,
durations of any positive length are permitted. Zero-length
duration means "forever". Negative-length durations are not
- allowed.
+ allowed. See RFC 2445 for the format of duration.
* frequency - can be one of the following values: "daily" - specify
repeating periods based on an interval of a day or more; "weekly" -
specify repeating periods based on an interval of a week or more;
@@ -222,9 +222,9 @@ modparam("tmrec", "separator", ";")
Example 1.2. tmrec_match usage
...
- if(tmrec_match("20120101T000000|24H|weekly|||SA,SU")
+ if(tmrec_match("20120101T000000|PT24H|weekly|||SA,SU")
xdbg("it is weekend!\n");
- if(tmrec_match("20120101T083000|10H|weekly|||MO,TU,WE,TH,FR")
+ if(tmrec_match("20120101T083000|PT10H|weekly|||MO,TU,WE,TH,FR")
xdbg("it is with working hours\n");
...
@@ -298,7 +298,7 @@ if(is_leap_year("2010"))
Example 1.4. time_period_match usage
...
-if(time_period_match("wd{1-5} hr{8-16}, wd{1-5} hr{17} min{0-29}"))
+if(time_period_match("wd{2-6} hr{8-16}, wd{1-5} hr{17} min{0-29}"))
xdbg("Monday to Friday, 8:00 to 17:30\n");
if(time_period_match("weekday { sat sun }, weekday {mo-fr} hr {17-8},wd{mo-wed}h
diff --git a/modules/tmrec/doc/tmrec_admin.xml b/modules/tmrec/doc/tmrec_admin.xml
index 782b1f1..7a429eb 100644
--- a/modules/tmrec/doc/tmrec_admin.xml
+++ b/modules/tmrec/doc/tmrec_admin.xml
@@ -127,7 +127,8 @@ modparam("tmrec", "separator", ";")
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.
+ Negative-length durations are not allowed. See RFC 2445 for
+ the format of duration.
</para>
</listitem>
<listitem>
@@ -274,9 +275,9 @@ modparam("tmrec", "separator", ";")
<title><function>tmrec_match</function> usage</title>
<programlisting format="linespecific">
...
- if(tmrec_match("20120101T000000|24H|weekly|||SA,SU")
+ if(tmrec_match("20120101T000000|PT24H|weekly|||SA,SU")
xdbg("it is weekend!\n");
- if(tmrec_match("20120101T083000|10H|weekly|||MO,TU,WE,TH,FR")
+ if(tmrec_match("20120101T083000|PT10H|weekly|||MO,TU,WE,TH,FR")
xdbg("it is with working hours\n");
...
</programlisting>
Module: sip-router
Branch: 4.1
Commit: 2ac00f9083846b958da5396cb4f5a51527957324
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2ac00f9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jan 3 10:11:26 2014 +0100
acc: regenerated README
---
modules/acc/README | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/acc/README b/modules/acc/README
index f6b1c5c..7a6361c 100644
--- a/modules/acc/README
+++ b/modules/acc/README
@@ -1109,7 +1109,9 @@ modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)")
If set to 1, use INSERT DELAYED to add records to accounting tables
when the DB driver has support for it. If no INSERT DELAYED support is
- offered by DB driver, then standard INSERT is used.
+ offered by DB driver, then standard INSERT is used. Beware that MySQL
+ InnoDB engine doesn't support INSERT DELAYED, thus be sure the acc
+ tables are defined with different type (e.g., MyISAM).
Default value is 0 (no INSERT DELAYED).
Module: sip-router
Branch: 4.1
Commit: 4ac82cdf92ae6c0e2ff9c1238bfe28cfcefea99c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4ac82cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jan 3 10:04:39 2014 +0100
acc: added note about MySQL InnoDB not supporting INSERT DELAYED
- reported by Daniel Tryba
(cherry picked from commit d26eff22c8a543c63a40cd7d91bb3c70f04aabc6)
---
modules/acc/doc/acc_admin.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/acc/doc/acc_admin.xml b/modules/acc/doc/acc_admin.xml
index 97858be..33ca1f8 100644
--- a/modules/acc/doc/acc_admin.xml
+++ b/modules/acc/doc/acc_admin.xml
@@ -1093,7 +1093,9 @@ modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)")
<para>
If set to 1, use INSERT DELAYED to add records to accounting tables
when the DB driver has support for it. If no INSERT DELAYED support
- is offered by DB driver, then standard INSERT is used.
+ is offered by DB driver, then standard INSERT is used. Beware that
+ MySQL InnoDB engine doesn't support INSERT DELAYED, thus be sure
+ the acc tables are defined with different type (e.g., MyISAM).
</para>
<para>
Default value is 0 (no INSERT DELAYED).
Module: sip-router
Branch: master
Commit: d26eff22c8a543c63a40cd7d91bb3c70f04aabc6
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d26eff2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jan 3 10:04:39 2014 +0100
acc: added note about MySQL InnoDB not supporting INSERT DELAYED
- reported by Daniel Tryba
---
modules/acc/doc/acc_admin.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/acc/doc/acc_admin.xml b/modules/acc/doc/acc_admin.xml
index e233cb4..c59aa0e 100644
--- a/modules/acc/doc/acc_admin.xml
+++ b/modules/acc/doc/acc_admin.xml
@@ -1093,7 +1093,9 @@ modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)")
<para>
If set to 1, use INSERT DELAYED to add records to accounting tables
when the DB driver has support for it. If no INSERT DELAYED support
- is offered by DB driver, then standard INSERT is used.
+ is offered by DB driver, then standard INSERT is used. Beware that
+ MySQL InnoDB engine doesn't support INSERT DELAYED, thus be sure
+ the acc tables are defined with different type (e.g., MyISAM).
</para>
<para>
Default value is 0 (no INSERT DELAYED).