diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-31 17:49:39 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-31 17:49:39 +0000 |
commit | d5671f10b113b83d74989582c712ea262a995551 (patch) | |
tree | 8300efd8b0e1a007417044684851cd0483b236dc /pbx | |
parent | 2a44536ad7596ee0c57b865b21b141d11a2c1d46 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@87849 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 5f2a96311..4a106b96c 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; } |