};
/* parameter ID bits */
#define PARAM_PROCEEDING 1LL
#define PARAM_ALERTING (1LL<<1)
#define PARAM_CONNECT (1LL<<2)
};
/* parameter ID bits */
#define PARAM_PROCEEDING 1LL
#define PARAM_ALERTING (1LL<<1)
#define PARAM_CONNECT (1LL<<2)
#define PARAM_PREFIX (1LL<<5)
#define PARAM_CAPA (1LL<<6)
#define PARAM_BMODE (1LL<<7)
#define PARAM_PREFIX (1LL<<5)
#define PARAM_CAPA (1LL<<6)
#define PARAM_BMODE (1LL<<7)
#define PARAM_INTERFACES (1LL<<19)
#define PARAM_ADDRESS (1LL<<20)
#define PARAM_SAMPLE (1LL<<21)
#define PARAM_INTERFACES (1LL<<19)
#define PARAM_ADDRESS (1LL<<20)
#define PARAM_SAMPLE (1LL<<21)
#define PARAM_RULESET (1LL<<23)
#define PARAM_CAUSE (1LL<<24)
#define PARAM_LOCATION (1LL<<25)
#define PARAM_RULESET (1LL<<23)
#define PARAM_CAUSE (1LL<<24)
#define PARAM_LOCATION (1LL<<25)
#define PARAM_CALLERIDTYPE (1LL<<37)
#define PARAM_CALLTO (1LL<<38)
#define PARAM_ROOM (1LL<<39)
#define PARAM_CALLERIDTYPE (1LL<<37)
#define PARAM_CALLTO (1LL<<38)
#define PARAM_ROOM (1LL<<39)
-#define PARAM_TIMEOUT (1LL<<40)
-#ifdef PBX
-#define PARAM_NOPASSWORD (1LL<<41)
-#endif
-
+#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)
+#define PARAM_ON (1LL<<47)
+#define PARAM_KEYPAD (1LL<<48)
-#define ACTION_H323 3
-#define ACTION_CHAN 4
-#define ACTION_VBOX_RECORD 5
-#define ACTION_PARTYLINE 6
-#define ACTION_LOGIN 7
-#define ACTION_CALLERID 8
-#define ACTION_CALLERIDNEXT 9
-#define ACTION_FORWARD 10
-#define ACTION_REDIAL 11
-#define ACTION_REPLY 12
-#define ACTION_POWERDIAL 13
-#define ACTION_CALLBACK 14
-#define ACTION_ABBREV 15
-#define ACTION_TEST 16
-#define ACTION_PLAY 17
-#define ACTION_VBOX_PLAY 18
-#define ACTION_CALCULATOR 19
-#define ACTION_TIMER 20
-#define ACTION_GOTO 21
-#define ACTION_MENU 22
-#define ACTION_DISCONNECT 23
-#define ACTION_HELP 24
-#define ACTION_DEFLECT 25
-#define ACTION_SETFORWARD 26
-#define ACTION_EXECUTE 27
-#define ACTION_FILE 28
-#define ACTION_PICK 29
-#define ACTION_PASSWORD 30
-#define ACTION_PASSWORD_WRITE 31
-#define ACTION_NOTHING 32
-#define ACTION_EFI 33
+#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
int line; /* line parsed from */
struct route_cond *cond_first; /* link to condition list */
struct route_action *action_first; /* link to action list */
int line; /* line parsed from */
struct route_cond *cond_first; /* link to condition list */
struct route_action *action_first; /* link to action list */
};
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 */
};
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 */
struct route_rule *rule_first; /* linke to rule list */
};
struct cond_defs { /* defintion of all conditions */
struct route_rule *rule_first; /* linke to rule list */
};
struct cond_defs { /* defintion of all conditions */
};
struct param_defs { /* definition of all options */
unsigned long long id; /* ID of parameter (just for checking) */
};
struct param_defs { /* definition of all options */
unsigned long long id; /* ID of parameter (just for checking) */
};
struct action_defs { /* definition of all actions */
int id; /* ID of parameter (just for checking) */
};
struct action_defs { /* definition of all actions */
int id; /* ID of parameter (just for checking) */
void (EndpointAppPBX::*init_func)(void);
void (EndpointAppPBX::*dialing_func)(void);
void (EndpointAppPBX::*hangup_func)(void);
unsigned long long params;
void (EndpointAppPBX::*init_func)(void);
void (EndpointAppPBX::*dialing_func)(void);
void (EndpointAppPBX::*hangup_func)(void);
unsigned long long params;
extern struct route_ruleset *ruleset_main;
extern struct route_action action_external;
extern struct route_action action_internal;
extern struct route_ruleset *ruleset_main;
extern struct route_action action_external;
extern struct route_action action_internal;
extern struct route_action action_vbox;
extern struct route_action action_partyline;
extern struct route_action action_password;
extern struct route_action action_vbox;
extern struct route_action action_partyline;
extern struct route_action action_password;
void ruleset_debug(struct route_ruleset *ruleset_start);
extern char ruleset_error[256];
struct route_ruleset *ruleset_parse(void);
void ruleset_debug(struct route_ruleset *ruleset_start);
extern char ruleset_error[256];
struct route_ruleset *ruleset_parse(void);