[Asterisk-cvs] asterisk ChangeLog,1.96,1.97 pbx.c,1.301,1.302

kpfleming kpfleming
Thu Nov 10 19:41:59 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10630

Modified Files:
	ChangeLog pbx.c 
Log Message:
issue #5673


Index: ChangeLog
===================================================================
RCS file: /usr/cvsroot/asterisk/ChangeLog,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- ChangeLog	11 Nov 2005 00:21:42 -0000	1.96
+++ ChangeLog	11 Nov 2005 00:32:45 -0000	1.97
@@ -1,5 +1,9 @@
 2005-11-10  Kevin P. Fleming  <kpfleming at digium.com>
 
+	* pbx.c: remove apps that were deprecated before 1.0 was released (issue #5673)
+
+	* apps/app_striplsd.c, apps/app_substring.c: remove apps that were deprecated before 1.0 was released (issue #5673)
+
 	* include/asterisk/lock.h (PTHREAD_MUTEX_RECURSIVE_NP): work around header problems on Cygwin (issue #5668)
 
 	* pbx/pbx_ael.c: handle switch default cases inside macros properly (issue #5354)

Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -d -r1.301 -r1.302
--- pbx.c	9 Nov 2005 21:48:59 -0000	1.301
+++ pbx.c	11 Nov 2005 00:32:45 -0000	1.302
@@ -187,9 +187,6 @@
 
 int ast_pbx_outgoing_cdr_failed(void);
 
-static int pbx_builtin_prefix(struct ast_channel *, void *);
-static int pbx_builtin_suffix(struct ast_channel *, void *);
-static int pbx_builtin_stripmsd(struct ast_channel *, void *);
 static int pbx_builtin_answer(struct ast_channel *, void *);
 static int pbx_builtin_goto(struct ast_channel *, void *);
 static int pbx_builtin_hangup(struct ast_channel *, void *);
@@ -355,15 +352,6 @@
 	"variables or functions without having any effect." 
 	},
 
-	{ "Prefix", pbx_builtin_prefix, 
-	"Prepend digits to the current extension",
-	"  Prefix(digits): This application will insert the specified digits to the\n"
-	"beginning of the current extension. Call processing will then continue at\n"
-	"the next priority, but at the new extension.\n"
-	"  For example, if priority 3 of extension 1212 is Prefix(555), the next step\n"
-	"executed will be priority 4 of 5551212.\n"
-	},
-
 	{ "Progress", pbx_builtin_progress,
 	"Indicate progress",
 	"  Progress(): This application will request that in-band progress information\n"
@@ -485,26 +473,6 @@
 	"Set for more information.\n"
 	},
 
-	{ "StripMSD", pbx_builtin_stripmsd,
-	"Strip leading digits",
-	"  StripMSD(count): Strips the leading 'count' digits from the channel's\n"
-	"associated extension. For example, the number 5551212 when stripped with a\n"
-	"count of 3 would be changed to 1212. The channel will continue dialplan\n"
-	"execution at the next priority for the *new* extension.\n"
-	"  So, for example, if priority 3 of 5551212 is StripMSD 3, the next step\n"
-	"executed will be priority 4 of 1212.\n"
-	},
-
-	{ "Suffix", pbx_builtin_suffix, 
-	"Append trailing digits",
-	"  Suffix(digits): Appends the digit string specified by digits to the\n"
-	"channel's associated extension. For example, the number 555 when suffixed\n"
-	"with '1212' will become 5551212. The channel will continune dialplan execution\n"
-	"at the next priority for the *new* extension.\n"
-	"  So, for example, if priority 3 of 555 is Suffix 1212, the next step\n"
-	"executed will be priority 4 of 5551212.\n"
-	},
-
 	{ "Wait", pbx_builtin_wait, 
 	"Waits for some time", 
 	"  Wait(seconds): This application waits for a specified number of seconds.\n"
@@ -5492,51 +5460,6 @@
 	return -1;
 }
 
-static int pbx_builtin_stripmsd(struct ast_channel *chan, void *data)
-{
-	char newexten[AST_MAX_EXTENSION] = "";
-
-	if (!data || !atoi(data)) {
-		ast_log(LOG_DEBUG, "Ignoring, since number of digits to strip is 0\n");
-		return 0;
-	}
-	if (strlen(chan->exten) > atoi(data)) {
-		ast_copy_string(newexten, chan->exten + atoi(data), sizeof(newexten));
-	}
-	ast_copy_string(chan->exten, newexten, sizeof(chan->exten));
-	return 0;
-}
-
-static int pbx_builtin_prefix(struct ast_channel *chan, void *data)
-{
-	char newexten[AST_MAX_EXTENSION];
-
-	if (ast_strlen_zero(data)) {
-		ast_log(LOG_DEBUG, "Ignoring, since there is no prefix to add\n");
-		return 0;
-	}
-	snprintf(newexten, sizeof(newexten), "%s%s", (char *)data, chan->exten);
-	ast_copy_string(chan->exten, newexten, sizeof(chan->exten));
-	if (option_verbose > 2)
-		ast_verbose(VERBOSE_PREFIX_3 "Prepended prefix, new extension is %s\n", chan->exten);
-	return 0;
-}
-
-static int pbx_builtin_suffix(struct ast_channel *chan, void *data)
-{
-	char newexten[AST_MAX_EXTENSION];
-
-	if (ast_strlen_zero(data)) {
-		ast_log(LOG_DEBUG, "Ignoring, since there is no suffix to add\n");
-		return 0;
-	}
-	snprintf(newexten, sizeof(newexten), "%s%s", chan->exten, (char *)data);
-	ast_copy_string(chan->exten, newexten, sizeof(chan->exten));
-	if (option_verbose > 2)
-		ast_verbose(VERBOSE_PREFIX_3 "Appended suffix, new extension is %s\n", chan->exten);
-	return 0;
-}
-
 static int pbx_builtin_gotoiftime(struct ast_channel *chan, void *data)
 {
 	int res=0;




More information about the svn-commits mailing list