Add FXS support
[lcr.git] / route.h
diff --git a/route.h b/route.h
index 1606410..ba49f49 100644 (file)
--- a/route.h
+++ b/route.h
@@ -76,6 +76,10 @@ enum { /* what to check during runtime */
        MATCH_IDLE,
        MATCH_REMOTE,
        MATCH_NOTREMOTE,
+       MATCH_POTS_FLASH,
+       MATCH_POTS_CW,
+       MATCH_POTS_CALLS,
+       MATCH_POTS_LAST,
 };
 
 enum { /* how to parse text file during startup */
@@ -149,6 +153,7 @@ enum { /* defines when a statement should be executed */
 #define PARAM_EXTEN            (1LL<<46)
 #define PARAM_ON               (1LL<<47)
 #define PARAM_KEYPAD           (1LL<<48)
+#define PARAM_POTS_CALL                (1LL<<49)
 
 /* action index
  * NOTE: The given index is the actual entry number of action_defs[], so add/remove both lists!!!
@@ -156,36 +161,41 @@ enum { /* defines when a statement should be executed */
 #define        ACTION_EXTERNAL         0
 #define        ACTION_INTERNAL         1
 #define        ACTION_OUTDIAL          2
-#define        ACTION_REMOTE           3
-#define        ACTION_VBOX_RECORD      4
-#define        ACTION_PARTYLINE        5
-#define        ACTION_LOGIN            6
-#define        ACTION_CALLERID         7
-#define        ACTION_CALLERIDNEXT     8
-#define        ACTION_FORWARD          9
-#define        ACTION_REDIAL           10
-#define        ACTION_REPLY            11
-#define        ACTION_POWERDIAL        12      
-#define        ACTION_CALLBACK         13
-#define        ACTION_ABBREV           14
-#define        ACTION_TEST             15
-#define        ACTION_PLAY             16
-#define        ACTION_VBOX_PLAY        17
-#define        ACTION_CALCULATOR       18
-#define        ACTION_TIMER            19
-#define        ACTION_GOTO             20
-#define        ACTION_MENU             21
-#define        ACTION_DISCONNECT       22
-#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
+#define        ACTION_VBOX_RECORD      3
+#define        ACTION_PARTYLINE        4
+#define        ACTION_LOGIN            5
+#define        ACTION_CALLERID         6
+#define        ACTION_CALLERIDNEXT     7
+#define        ACTION_FORWARD          8
+#define        ACTION_REDIAL           9
+#define        ACTION_REPLY            10
+#define        ACTION_POWERDIAL        11      
+#define        ACTION_CALLBACK         12
+#define        ACTION_ABBREV           13
+#define        ACTION_TEST             14
+#define        ACTION_PLAY             15
+#define        ACTION_VBOX_PLAY        16
+#define        ACTION_CALCULATOR       17
+#define        ACTION_TIMER            18
+#define        ACTION_GOTO             19
+#define        ACTION_MENU             20
+#define        ACTION_DISCONNECT       21
+#define        ACTION_RELEASE          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_POTS_RETRIEVE    32
+#define        ACTION_POTS_RELEASE     33
+#define        ACTION_POTS_REJECT      34
+#define        ACTION_POTS_ANSWER      35
+#define        ACTION_POTS_3PTY        36
+#define        ACTION_POTS_TRANSFER    37
 
 struct route_cond { /* an item */
        struct route_cond       *next;                  /* next entry */