closes issue #11108 -- where the 'dialplan save' cli command saves a file where the semicolon is not escaped. Fixed this; User also wanted comments to be preserved across dialplan save, but this is impossible at this point in time, because comments are not stored in the dialplan. They are 'compiled' out of extensions.conf. The only way to preserve those comments is to use the config file reader/writer that the GUI uses to allow online user edits. extensions.conf is first and foremost, a config file, and is read in by the normal config-file reading routines. Then, it is processed into a dialplan (context/exten structs).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2007-10-31 17:49:39 +00:00
parent 6addd141d9
commit 3176ba94c3

View File

@@ -1334,7 +1334,7 @@ static int handle_save_dialplan(int fd, int argc, char *argv[])
if (*s == '|')
*t = ',';
else {
if (*s == ',')
if (*s == ',' || *s == ';')
*t++ = '\\';
*t = *s;
}