aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_system.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-08-23 17:57:10 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-08-23 17:57:10 +0000
commita64eaf9e1c94f19cccbed70dd8b021b5556dfaaf (patch)
treedc2044a33c32e52f45c7409096da1bceb26e99cd /apps/app_system.c
parent1128564a802d311afe1108857f4a00e81acdb38a (diff)
Version 0.1.9 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@353 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_system.c')
-rwxr-xr-xapps/app_system.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/app_system.c b/apps/app_system.c
index bb10543e2..a4369125f 100755
--- a/apps/app_system.c
+++ b/apps/app_system.c
@@ -31,10 +31,11 @@ static char *app = "System";
static char *synopsis = "Execute a system command";
static char *descrip =
-" System(command): Executes a command by using system(). Returns -1 on failure to execute\n"
-" the specified command. If the command itself executes but is in error, and if there exists\n"
-" a priority n + 101, where 'n' is the priority of the current instance, then the channel will\n"
-" will be setup to continue at that priority level. Otherwise, System returns 0.\n";
+" System(command): Executes a command by using system(). Returns -1 on\n"
+"failure to execute the specified command. If the command itself executes\n"
+"but is in error, and if there exists a priority n + 101, where 'n' is the\n"
+"priority of the current instance, then the channel will be setup to\n"
+"continue at that priority level. Otherwise, System returns 0.\n";
STANDARD_LOCAL_USER;
@@ -58,7 +59,7 @@ static int skel_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "Unable to execute '%s'\n", data);
res = -1;
} else {
- if (res && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101))
+ if (res && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
chan->priority+=100;
res = 0;
}