[asterisk-commits] file: branch 1.4 r73930 - /branches/1.4/pbx/pbx_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jul 8 20:13:58 CDT 2007


Author: file
Date: Sun Jul  8 20:13:57 2007
New Revision: 73930

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73930
Log:
Add a few sanity checks when writing out the dialplan. (issue #10157 reported by dome)

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=73930&r1=73929&r2=73930
==============================================================================
--- branches/1.4/pbx/pbx_config.c (original)
+++ branches/1.4/pbx/pbx_config.c Sun Jul  8 20:13:57 2007
@@ -1353,9 +1353,9 @@
 						incomplete = 1;	/* error encountered or label > 125 chars */
 					
 					fprintf(output, "exten => %s%s%s,%d%s,%s(%s)\n",
-					    ast_get_extension_name(p), sep, cid,
+					    ast_get_extension_name(p), (ast_strlen_zero(sep) ? "" : sep), (ast_strlen_zero(cid) ? "" : cid),
 					    ast_get_extension_priority(p), label,
-					    ast_get_extension_app(p), tempdata);
+					    ast_get_extension_app(p), (ast_strlen_zero(tempdata) ? "" : tempdata));
 				}
 			}
 		}




More information about the asterisk-commits mailing list