[OpenSIPS-Devel] [OpenSIPS/opensips] a100b7: cfgutils: Add initial test suite for multi time rec

Liviu Chircu noreply at github.com
Fri Sep 25 15:36:29 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a100b7ad8cd3aefc42794a340e45c6e3ddabebe3
      https://github.com/OpenSIPS/opensips/commit/a100b7ad8cd3aefc42794a340e45c6e3ddabebe3
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M modules/cfgutils/test/cfgutils.c

  Log Message:
  -----------
  cfgutils: Add initial test suite for multi time rec


  Commit: dc9b295d03af6ba91bee2dea9745c04143cedcbe
      https://github.com/OpenSIPS/opensips/commit/dc9b295d03af6ba91bee2dea9745c04143cedcbe
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cpl_c/cpl_switches.h
    M modules/dialplan/dp_repl.c
    M modules/drouting/prefix_tree.c
    M time_rec.c
    M time_rec.h

  Log Message:
  -----------
  time rec support: Remove dead code

    * simplify "always false" if conditions
    * get rid of redundant (duplicate) memset() operations


  Commit: 285550d0bcfa7f223cf500f0cad7a2a6063ed0c6
      https://github.com/OpenSIPS/opensips/commit/285550d0bcfa7f223cf500f0cad7a2a6063ed0c6
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cfgutils/test/cfgutils.c

  Log Message:
  -----------
  cfgutils: Prepare for multi time-rec support

    * differentiate error codes (no match, bad input, internal error)
    * refactor into a validation function for a simple time rec


  Commit: 8338276fc3921f096015b5a6061f2049be133553
      https://github.com/OpenSIPS/opensips/commit/8338276fc3921f096015b5a6061f2049be133553
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cfgutils/test/cfgutils.c

  Log Message:
  -----------
  cfgutils: Enhance check_time_rec() with multi-rec support

This gives developers the ability to combine multiple time recurrences
into a compact, easy-to-evaluate string expressing a complex schedule.
The linking is done using the logical operators: AND ("&"), OR ("/")
and NEG ("!").

Assuming A, B and C are vanilla check_time_rec() time recurrence
strings, here are some example expressions that now become available:
    A & B
    A / B
    (A & B) / C
    A & !B
    !((A / B) & C) / D


  Commit: d4383f4c505748cf6633aeef700a496c98ea7fc0
      https://github.com/OpenSIPS/opensips/commit/d4383f4c505748cf6633aeef700a496c98ea7fc0
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cfgutils/doc/cfgutils_admin.xml

  Log Message:
  -----------
  cfgutils: Update check_time_rec() docs


  Commit: da73077965eeedeb47fa3480bbe1e0aca3c54ee3
      https://github.com/OpenSIPS/opensips/commit/da73077965eeedeb47fa3480bbe1e0aca3c54ee3
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c
    M modules/cfgutils/doc/cfgutils_admin.xml
    M modules/cfgutils/test/cfgutils.c
    M modules/cpl_c/cpl_switches.h
    M modules/dialplan/dp_repl.c
    M modules/drouting/prefix_tree.c
    M time_rec.c
    M time_rec.h

  Log Message:
  -----------
  Merge branch 'feature/multi-time-rec'


Compare: https://github.com/OpenSIPS/opensips/compare/eb5a900622e9...da73077965ee



More information about the Devel mailing list