[asterisk-commits] murf: branch 1.4 r87849 - /branches/1.4/pbx/pbx_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 31 12:49:40 CDT 2007


Author: murf
Date: Wed Oct 31 12:49:39 2007
New Revision: 87849

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87849
Log:
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).

Modified:
    branches/1.4/pbx/pbx_config.c

Modified: branches/1.4/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_config.c?view=diff&rev=87849&r1=87848&r2=87849
==============================================================================
--- branches/1.4/pbx/pbx_config.c (original)
+++ branches/1.4/pbx/pbx_config.c Wed Oct 31 12:49:39 2007
@@ -1334,7 +1334,7 @@
 							if (*s == '|')
 								*t = ',';
 							else {
-								if (*s == ',')
+								if (*s == ',' || *s == ';')
 									*t++ = '\\';
 								*t = *s;
 							}




More information about the asterisk-commits mailing list