From: Steve Murphy Date: Wed, 31 Oct 2007 17:49:39 +0000 (+0000) Subject: closes issue #11108 -- where the 'dialplan save' cli command saves a file where the... X-Git-Tag: 1.4.14~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3176ba94c3f8d6ba60b3093c881dc4a135b1f4d0;p=thirdparty%2Fasterisk.git 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 --- diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 5f2a963112..4a106b96c3 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -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; }