mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
issue #5354
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2005-11-10 Kevin P. Fleming <kpfleming@digium.com>
|
2005-11-10 Kevin P. Fleming <kpfleming@digium.com>
|
||||||
|
|
||||||
|
* pbx/pbx_ael.c: handle switch default cases inside macros properly (issue #5354)
|
||||||
|
|
||||||
* configs/voicemail.conf.sample (format): add strong warning about changing format list when mailboxes contain messages (issue #5689)
|
* configs/voicemail.conf.sample (format): add strong warning about changing format list when mailboxes contain messages (issue #5689)
|
||||||
|
|
||||||
* many files: ensure that system headers are included before Asterisk headers (issue #5693)
|
* many files: ensure that system headers are included before Asterisk headers (issue #5693)
|
||||||
|
@@ -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);
|
mlen = strlen(exten) + 128 + strlen(args) + strlen(name);
|
||||||
margs = alloca(mlen);
|
margs = alloca(mlen);
|
||||||
app = "Goto";
|
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, ',', '|');
|
ast_process_quotes_and_slashes(margs, ',', '|');
|
||||||
oargs = args;
|
oargs = args;
|
||||||
args = margs;
|
args = margs;
|
||||||
@@ -523,7 +523,7 @@ static int __build_step(const char *what, const char *name, const char *filename
|
|||||||
(*pos)++;
|
(*pos)++;
|
||||||
}
|
}
|
||||||
app = "NoOp";
|
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))
|
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);
|
ast_log(LOG_WARNING, "Unable to add step at priority '%d' of %s '%s'\n", *pos, what, name);
|
||||||
else {
|
else {
|
||||||
@@ -543,15 +543,15 @@ static int __build_step(const char *what, const char *name, const char *filename
|
|||||||
if (curcase) {
|
if (curcase) {
|
||||||
/* Handle fall through */
|
/* Handle fall through */
|
||||||
char tmp[strlen(newcase) + strlen(name) + 40];
|
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);
|
ast_add_extension2(con, 0, margs, cpos, NULL, NULL, "Goto", strdup(tmp), FREE, registrar);
|
||||||
}
|
}
|
||||||
curcase = newcase;
|
curcase = newcase;
|
||||||
cpos = 1;
|
cpos = 1;
|
||||||
if (pattern)
|
if (pattern)
|
||||||
snprintf(margs, mlen, "_sw-%s-%d-%s", name, *pos - 2, curcase);
|
snprintf(margs, mlen, "_sw-%d-%s", *pos - 2, curcase);
|
||||||
else
|
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")) {
|
if (!strcasecmp(rest, "break")) {
|
||||||
char tmp[strlen(exten) + 10];
|
char tmp[strlen(exten) + 10];
|
||||||
sprintf(tmp, "%s|%d", exten, *pos - 1);
|
sprintf(tmp, "%s|%d", exten, *pos - 1);
|
||||||
|
Reference in New Issue
Block a user