[asterisk-commits] irroot: branch irroot/app_queue_skill r322175 - /team/irroot/app_queue_skill/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 7 02:27:19 CDT 2011


Author: irroot
Date: Tue Jun  7 02:27:15 2011
New Revision: 322175

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=322175
Log:
Adding conf samples

Added:
    team/irroot/app_queue_skill/configs/queueskillrules.conf.sample   (with props)
    team/irroot/app_queue_skill/configs/queueskills.conf.sample   (with props)

Added: team/irroot/app_queue_skill/configs/queueskillrules.conf.sample
URL: http://svnview.digium.com/svn/asterisk/team/irroot/app_queue_skill/configs/queueskillrules.conf.sample?view=auto&rev=322175
==============================================================================
--- team/irroot/app_queue_skill/configs/queueskillrules.conf.sample (added)
+++ team/irroot/app_queue_skill/configs/queueskillrules.conf.sample Tue Jun  7 02:27:15 2011
@@ -1,0 +1,67 @@
+; This file describes skill routing rules. The Queue() application can get the
+; 'skill_ruleset' argument which is the name of one skill routing ruleset. If
+; set, a selection of queue members is defined by running these rules on each
+; member, based on skills set (see the queueskills.conf file).
+;
+; A ruleset is a list of rules. Each rule has two parts:
+;     - the first part is a dynamical condition. If its evaluation is false, the
+;       next rule is tried;
+;     - the second part is tested against queue member's skills, to define a
+;       selection.
+;
+; Operators:
+; ----------
+;
+; You can define these rules with some arithmetic and logical operators:
+;      operand1 / operand2  (division)
+;      operand1 * operand2  (multiplication)
+;      operand1 - operand2  (subtraction)
+;      operand1 + operand2  (addition)
+;      operand1 ! operand2  (is not equal)
+;      operand1 = operand2  (is equal)
+;      operand1 > operand2  (is greater than)
+;      operand1 < operand2  (is lesser than)
+;      operand1 & operand2  (both are true)
+;      operand1 | operand2  (at least one of them are true)
+;
+; '/' is the operator with the higher priority, and '|' the one with the lower
+; priority. You can use brackets '()' to overload operator priorities.
+;
+; Dynamical part:
+; ---------------
+; The first part is evaluated after create a selection of queue members with
+; the second part, and determine if we keep this rule or if we switch to the
+; next one.
+;
+; On this part, these variables can be used:
+;     EWT (Estimated Waiting Time)      The waiting time estimated for the
+;                                       current selection of members
+;     WT  (Waiting time)                The time that caller has been waited
+;
+; Skills part:
+; ------------
+; This second part is evaluated against every queue member's skills, to know
+; if it is selected or not.
+;
+; Variables are skills names, which you can check with below operators. You can
+; also use meta-variables, started with a '$', to substitute them with data set
+; on the Queue() call. For example, if you call Queue() with the skill rouleset
+; argument equal to:
+;      tech(os=linux)
+; every $os occurrence will be replaced to 'linux'.
+;
+; Examples:
+; ---------
+;
+; [tech]
+; rule => WT < 60, technic & ($os > 29 & $lang > 39 | $os > 39 & $lang > 19)
+; rule => WT < 120, technic & ($os > 19 & $lang > 39 | $os > 29 & $lang > 19)
+; rule => WT < 3600, technic & $os > 10 & $lang > 19
+; rule => technic
+;
+; [client-crappy]
+; rule => technic = 0 & (sympathy > 20 | linux > 10 & windows > 10)
+;
+; [client-cool]
+; rule => EWT < 120, technic = 0 & (sympathy > 60)
+; rule => technic = 0

Propchange: team/irroot/app_queue_skill/configs/queueskillrules.conf.sample
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/irroot/app_queue_skill/configs/queueskillrules.conf.sample
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/irroot/app_queue_skill/configs/queueskillrules.conf.sample
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: team/irroot/app_queue_skill/configs/queueskills.conf.sample
URL: http://svnview.digium.com/svn/asterisk/team/irroot/app_queue_skill/configs/queueskills.conf.sample?view=auto&rev=322175
==============================================================================
--- team/irroot/app_queue_skill/configs/queueskills.conf.sample (added)
+++ team/irroot/app_queue_skill/configs/queueskills.conf.sample Tue Jun  7 02:27:15 2011
@@ -1,0 +1,46 @@
+; Describe skills groups here to assign them to queue members. You can set
+; weight to each skills. It'll be used by skill rules to know if a queue member
+; can answer to a call.
+; See the queueskillrules.conf to get more information about these rules.
+;
+; Examples:
+;
+; [linux1]
+; technic = 1
+; linux = 50
+; windows = 10
+; french = 50
+; english = 10
+;
+; [linux2]
+; technic = 1
+; linux = 30
+; windows = 20
+; french = 50
+; english = 50
+;
+; [windows1]
+; technic = 1
+; linux = 10
+; windows = 50
+; french = 30
+; english = 30
+;
+; [windows2]
+; technic = 1
+; linux = 20
+; windows = 30
+; french = 40
+; english = 10
+;
+; [commercial1]
+; technic = 0
+; linux = 10
+; windows = 20
+; sympathy = 100
+;
+; [commercial2]
+; technic = 0
+; linux = 0
+; windows = 20
+; sympathy = 50

Propchange: team/irroot/app_queue_skill/configs/queueskills.conf.sample
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/irroot/app_queue_skill/configs/queueskills.conf.sample
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/irroot/app_queue_skill/configs/queueskills.conf.sample
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list