#define PARAM_CALLERIDTYPE (1LL<<37)
#define PARAM_CALLTO (1LL<<38)
#define PARAM_ROOM (1LL<<39)
-#define PARAM_TIMEOUT (1LL<<40)
-#define PARAM_NOPASSWORD (1LL<<41)
-#define PARAM_STRIP (1LL<<42)
-#define PARAM_APPLICATION (1LL<<43)
+#define PARAM_JINGLE (1LL<<40)
+#define PARAM_TIMEOUT (1LL<<41)
+#define PARAM_NOPASSWORD (1LL<<42)
+#define PARAM_STRIP (1LL<<43)
+#define PARAM_APPLICATION (1LL<<44)
+#define PARAM_CONTEXT (1LL<<45)
+#define PARAM_EXTEN (1LL<<46)
/* action index
#define ACTION_GOTO 20
#define ACTION_MENU 21
#define ACTION_DISCONNECT 22
-#define ACTION_HELP 23
-#define ACTION_DEFLECT 24
-#define ACTION_SETFORWARD 25
-#define ACTION_EXECUTE 26
-#define ACTION_FILE 27
-#define ACTION_PICK 28
-#define ACTION_PASSWORD 29
-#define ACTION_PASSWORD_WRITE 30
-#define ACTION_NOTHING 31
-#define ACTION_EFI 32
+#define ACTION_DEFLECT 23
+#define ACTION_SETFORWARD 24
+#define ACTION_EXECUTE 25
+#define ACTION_FILE 26
+#define ACTION_PICK 27
+#define ACTION_PASSWORD 28
+#define ACTION_PASSWORD_WRITE 29
+#define ACTION_NOTHING 30
+#define ACTION_EFI 31
struct route_cond { /* an item */
struct route_cond *next; /* next entry */
int line; /* line parsed from */
struct route_cond *cond_first; /* link to condition list */
struct route_action *action_first; /* link to action list */
+// int temp_couldmatch; /* stores, if the dialing could match. this is used to make a list of rules, that could match */
};
struct route_ruleset { /* the ruleset is a list of rules */
struct route_ruleset *next; /* next item */
char file[128]; /* filename */
int line; /* line parsed from */
- char name[64]; /* name of rule */
+ char name[64]; /* name of ruleset */
struct route_rule *rule_first; /* linke to rule list */
};