From 3176ba94c3f8d6ba60b3093c881dc4a135b1f4d0 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Wed, 31 Oct 2007 17:49:39 +0000 Subject: [PATCH] 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 --- pbx/pbx_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }