mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user