projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes and improves parsing of config file.
[lcr.git]
/
route.h
diff --git
a/route.h
b/route.h
index
a2d9d3b
..
837aebd
100644
(file)
--- a/
route.h
+++ b/
route.h
@@
-41,6
+41,7
@@
enum { /* what to check during runtime */
MATCH_PORT,
MATCH_INTERFACE,
MATCH_CALLERID,
MATCH_PORT,
MATCH_INTERFACE,
MATCH_CALLERID,
+ MATCH_CALLERID2,
MATCH_EXTENSION,
MATCH_DIALING,
MATCH_ENBLOCK,
MATCH_EXTENSION,
MATCH_DIALING,
MATCH_ENBLOCK,
@@
-88,6
+89,12
@@
enum { /* how to parse text file during startup */
PARAM_TYPE_PORTS,
PARAM_TYPE_TYPE,
PARAM_TYPE_CALLERIDTYPE,
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 */
};
/* parameter ID bits */
@@
-138,7
+145,7
@@
enum { /* how to parse text file during startup */
#define PARAM_APPLICATION (1LL<<44)
#define PARAM_CONTEXT (1LL<<45)
#define PARAM_EXTEN (1LL<<46)
#define PARAM_APPLICATION (1LL<<44)
#define PARAM_CONTEXT (1LL<<45)
#define PARAM_EXTEN (1LL<<46)
-
+#define PARAM_ON (1LL<<47)
/* action index
* NOTE: The given index is the actual entry number of action_defs[], so add/remove both lists!!!
/* action index
* NOTE: The given index is the actual entry number of action_defs[], so add/remove both lists!!!