summaryrefslogtreecommitdiffstats
path: root/route.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-16 11:42:46 +0100
committerAndreas Eversberg2010-01-16 11:42:46 +0100
commit76c5d82d4cbdd9d75e6b6db9e51eb22d10fb44bd (patch)
treef507f2500bc308bbd3a22a01559095428c4acf24 /route.c
parent new file: checkout-branch.sh (diff)
downloadlcr-76c5d82d4cbdd9d75e6b6db9e51eb22d10fb44bd.tar.gz
lcr-76c5d82d4cbdd9d75e6b6db9e51eb22d10fb44bd.tar.xz
lcr-76c5d82d4cbdd9d75e6b6db9e51eb22d10fb44bd.zip
Added "release" action and timeout to "execute" action.
modified: README modified: action.cpp modified: apppbx.cpp modified: apppbx.h modified: dss1.cpp modified: mISDN.cpp modified: message.h modified: route.c modified: route.h modified: socket_server.c
Diffstat (limited to 'route.c')
-rw-r--r--route.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/route.c b/route.c
index a448f39..959b584 100644
--- a/route.c
+++ b/route.c
@@ -342,6 +342,10 @@ struct action_defs action_defs[] = {
"disconnect", NULL, &EndpointAppPBX::action_dialing_disconnect, NULL,
PARAM_CONNECT | PARAM_CAUSE | PARAM_LOCATION | PARAM_SAMPLE | PARAM_DISPLAY,
"Caller gets disconnected optionally with given cause and given sample and given display text."},
+ { ACTION_RELEASE,
+ "release", NULL, &EndpointAppPBX::action_dialing_release, NULL,
+ PARAM_CONNECT | PARAM_CAUSE | PARAM_LOCATION | PARAM_DISPLAY,
+ "Same as 'disconnect', but using RELEASE message on ISDN."},
{ ACTION_DEFLECT,
"deflect", NULL, &EndpointAppPBX::action_dialing_deflect, NULL,
PARAM_DEST,
@@ -354,7 +358,7 @@ struct action_defs action_defs[] = {
// "The call forward is set within the telephone network of the external line."},
{ ACTION_EXECUTE,
"execute", &EndpointAppPBX::action_init_execute, NULL, &EndpointAppPBX::action_hangup_execute,
- PARAM_CONNECT | PARAM_EXECUTE | PARAM_PARAM | PARAM_ON,
+ PARAM_CONNECT | PARAM_EXECUTE | PARAM_PARAM | PARAM_ON | PARAM_TIMEOUT,
"Executes the given script file. The file must terminate quickly, because it will halt the PBX."},
{ ACTION_FILE,
"file", NULL, NULL, &EndpointAppPBX::action_hangup_file,