Skip to content
Snippets Groups Projects
Commit dc383a7e authored by James Golovich's avatar James Golovich
Browse files

Make outgoing call spool only consider # a comment if at the beginning of a...

Make outgoing call spool only consider # a comment if at the beginning of a line or following whitespace (bug 1346)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 09e0fc20
No related branches found
No related tags found
No related merge requests found
...@@ -97,9 +97,13 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f) ...@@ -97,9 +97,13 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
lineno++; lineno++;
if (!feof(f)) { if (!feof(f)) {
/* Trim comments */ /* Trim comments */
c = strchr(buf, '#'); c = buf;
if (c) while ((c = strchr(c, '#'))) {
*c = '\0'; if ((c == buf) || (*(c-1) == ' ') || (*(c-1) == '\t'))
*c = '\0';
else
c++;
}
c = strchr(buf, ';'); c = strchr(buf, ';');
if (c) if (c)
*c = '\0'; *c = '\0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment