projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding various arguments to 'execute' condition and 'execute' action.
[lcr.git]
/
action.cpp
diff --git
a/action.cpp
b/action.cpp
index
1da9103
..
b7dfc58
100644
(file)
--- a/
action.cpp
+++ b/
action.cpp
@@
-1965,7
+1965,7
@@
void EndpointAppPBX::action_execute(void)
int iWaitStatus;
char *command = (char *)"";
char isdn_port[10];
int iWaitStatus;
char *command = (char *)"";
char isdn_port[10];
- char *argv[1
1
]; /* check also number of args below */
+ char *argv[1
2
]; /* check also number of args below */
int i = 0;
/* get script / command */
int i = 0;
/* get script / command */
@@
-1989,6
+1989,7
@@
void EndpointAppPBX::action_execute(void)
argv[i++] = e_callerinfo.name;
SPRINT(isdn_port, "%d", e_callerinfo.isdn_port);
argv[i++] = isdn_port;
argv[i++] = e_callerinfo.name;
SPRINT(isdn_port, "%d", e_callerinfo.isdn_port);
argv[i++] = isdn_port;
+ argv[i++] = e_callerinfo.imsi;
argv[i++] = NULL; /* check also number of args above */
switch (pid = fork ()) {
case -1:
argv[i++] = NULL; /* check also number of args above */
switch (pid = fork ()) {
case -1: