COND_TYPE_IP,
COND_TYPE_CAPABILITY,
COND_TYPE_BMODE,
+ COND_TYPE_HLC,
COND_TYPE_IFATTR,
};
PARAM_TYPE_YESNO,
PARAM_TYPE_CAPABILITY,
PARAM_TYPE_BMODE,
+ PARAM_TYPE_HLC,
PARAM_TYPE_DIVERSION,
PARAM_TYPE_DESTIN,
PARAM_TYPE_PORTS,
PARAM_TYPE_TYPE,
PARAM_TYPE_CALLERIDTYPE,
+ PARAM_TYPE_ON,
+};
+
+enum { /* defines when a statement should be executed */
+ INFO_ON_INIT,
+ INFO_ON_HANGUP,
};
/* parameter ID bits */
#define PARAM_APPLICATION (1LL<<44)
#define PARAM_CONTEXT (1LL<<45)
#define PARAM_EXTEN (1LL<<46)
-
+#define PARAM_ON (1LL<<47)
+#define PARAM_KEYPAD (1LL<<48)
/* action index
* NOTE: The given index is the actual entry number of action_defs[], so add/remove both lists!!!
#define ACTION_GOTO 20
#define ACTION_MENU 21
#define ACTION_DISCONNECT 22
-#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
+#define ACTION_RELEASE 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
struct route_cond { /* an item */
struct route_cond *next; /* next entry */