summaryrefslogtreecommitdiffstats
path: root/route.h
diff options
context:
space:
mode:
authorAndreas Eversberg2009-04-06 20:20:09 +0200
committerAndreas Eversberg2009-04-06 20:20:09 +0200
commit64143650bc9c04fadc99694c499cf34750bc2804 (patch)
tree1a26819112d615bbe1dbc7058382122e94fc0352 /route.h
parentMini-Fix: don't read settings, where not required. (diff)
downloadlcr-64143650bc9c04fadc99694c499cf34750bc2804.tar.gz
lcr-64143650bc9c04fadc99694c499cf34750bc2804.tar.xz
lcr-64143650bc9c04fadc99694c499cf34750bc2804.zip
Applied patch by Daniel: "execute"-action can now be performed on call init or on call hangup. A special parameter allows that.
-> Forking of executed program is now performed without getting zombie process. modified: README modified: action.cpp modified: apppbx.h modified: route.c modified: route.h
Diffstat (limited to 'route.h')
-rw-r--r--route.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/route.h b/route.h
index 06fb54f..837aebd 100644
--- a/route.h
+++ b/route.h
@@ -89,6 +89,12 @@ enum { /* how to parse text file during startup */
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 */
@@ -139,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_ON (1LL<<47)
/* action index
* NOTE: The given index is the actual entry number of action_defs[], so add/remove both lists!!!