mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Revert accidental commit of the last change
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@117523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -128,11 +128,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
|
|||||||
char buf[256];
|
char buf[256];
|
||||||
char *c, *c2;
|
char *c, *c2;
|
||||||
int lineno = 0;
|
int lineno = 0;
|
||||||
struct ast_variable *var, *last = o->vars;
|
struct ast_variable *var;
|
||||||
|
|
||||||
while (last && last->next) {
|
|
||||||
last = last->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
while(fgets(buf, sizeof(buf), f)) {
|
while(fgets(buf, sizeof(buf), f)) {
|
||||||
lineno++;
|
lineno++;
|
||||||
@@ -226,13 +222,8 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
|
|||||||
if (c2) {
|
if (c2) {
|
||||||
var = ast_variable_new(c, c2);
|
var = ast_variable_new(c, c2);
|
||||||
if (var) {
|
if (var) {
|
||||||
/* Always insert at the end, because some people want to treat the spool file as a script */
|
var->next = o->vars;
|
||||||
if (last) {
|
o->vars = var;
|
||||||
last->next = var;
|
|
||||||
} else {
|
|
||||||
o->vars = var;
|
|
||||||
}
|
|
||||||
last = var;
|
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
ast_log(LOG_WARNING, "Malformed \"%s\" argument. Should be \"%s: variable=value\"\n", buf, buf);
|
ast_log(LOG_WARNING, "Malformed \"%s\" argument. Should be \"%s: variable=value\"\n", buf, buf);
|
||||||
|
Reference in New Issue
Block a user