aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-11 00:14:13 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-11 00:14:13 +0000
commit0406912cf949f4d6886b16c21ef024432b0a9a3c (patch)
treef93251a986d28fef59970754fd672cd5aa7caabc /pbx
parent7eb5087ca1d6a0048d9cdab43a373404ea04ade2 (diff)
issue #5354
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7060 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_ael.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 287738418..51328d02e 100755
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -512,7 +512,7 @@ static int __build_step(const char *what, const char *name, const char *filename
mlen = strlen(exten) + 128 + strlen(args) + strlen(name);
margs = alloca(mlen);
app = "Goto";
- sprintf(margs, "sw-%s-%d-%s|1", name, *pos, args);
+ sprintf(margs, "sw-%d-%s|1", *pos, args);
ast_process_quotes_and_slashes(margs, ',', '|');
oargs = args;
args = margs;
@@ -523,7 +523,7 @@ static int __build_step(const char *what, const char *name, const char *filename
(*pos)++;
}
app = "NoOp";
- sprintf(margs, "Finish switch-%s-%d", name, *pos - 1);
+ sprintf(margs, "Finish switch-%d", *pos - 1);
if (ast_add_extension2(con, 0, exten, *pos, *label, NULL, app, strdup(args), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add step at priority '%d' of %s '%s'\n", *pos, what, name);
else {
@@ -543,15 +543,15 @@ static int __build_step(const char *what, const char *name, const char *filename
if (curcase) {
/* Handle fall through */
char tmp[strlen(newcase) + strlen(name) + 40];
- sprintf(tmp, "sw-%s-%d-%s|%d", name, *pos - 2, newcase, 1);
+ sprintf(tmp, "sw-%d-%s|%d", *pos - 2, newcase, 1);
ast_add_extension2(con, 0, margs, cpos, NULL, NULL, "Goto", strdup(tmp), FREE, registrar);
}
curcase = newcase;
cpos = 1;
if (pattern)
- snprintf(margs, mlen, "_sw-%s-%d-%s", name, *pos - 2, curcase);
+ snprintf(margs, mlen, "_sw-%d-%s", *pos - 2, curcase);
else
- snprintf(margs, mlen, "sw-%s-%d-%s", name, *pos - 2, curcase);
+ snprintf(margs, mlen, "sw-%d-%s", *pos - 2, curcase);
if (!strcasecmp(rest, "break")) {
char tmp[strlen(exten) + 10];
sprintf(tmp, "%s|%d", exten, *pos - 1);