the purpose of the new function still matches the name of the module -- 'time recurrence' operations. The module can be renamed, to timeops or so to keep a pattern with other module names -- not sure when will be time for it, before next release, so feel free to add new functions there meanwhile. But for the function makes no sense, it uses tmrec library, which has a special format based on ical specs.Hi Daniel, We're currently porting the Perl Time::Period module (http://search.cpan.org/~pryan/Period-1.20/Period.pm) into a kamailio function. This allows for powerful period definitions, which we'd export as in_time_period("$TS", "<period definition>") into the config file. Would you mind renaming tmrec into something more generic like time_utils and the existing function tmrec_match into ical_match or something similar? We'd then integrate in_time_period() into this module as well and push it to the repo, if there are no objections from you guys.
Andreas On 01/11/2012 03:51 PM, Daniel-Constantin Mierla wrote:Module: sip-router Branch: master Commit: bf692bcf4708e0c1d084bea8def9fc0d96d3f832 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bf692bcf4708e0c1d084bea8def9fc0d96d3f832 Author: Daniel-Constantin Mierla <miconda@gmail.com> Committer: Daniel-Constantin Mierla <miconda@gmail.com> Date: Wed Jan 11 15:50:24 2012 +0100 tmrec: new module for time recurrence matching - recurrence definitions based on RFC2445 --- modules/tmrec/Makefile | 17 ++ modules/tmrec/README | 231 +++++++++++++++++++++++++++ modules/tmrec/doc/Makefile | 4 + modules/tmrec/doc/tmrec.xml | 37 +++++ modules/tmrec/doc/tmrec_admin.xml | 311 +++++++++++++++++++++++++++++++++++++ modules/tmrec/tmrec_mod.c | 222 ++++++++++++++++++++++++++ 6 files changed, 822 insertions(+), 0 deletions(-) Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=bf692bcf4708e0c1d084bea8def9fc0d96d3f832 _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
_______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Daniel-Constantin Mierla -- http://www.asipto.com http://linkedin.com/in/miconda -- http://twitter.com/miconda