From 2977f19cac0215ebc8c93c5c9bd1a09a448816fe Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 19 Jan 2006 18:58:45 +0000 Subject: Deprecate the use of Random in 1.3, 1.4 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8270 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_random.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/app_random.c b/apps/app_random.c index 57ef4dd32..f7d09e87a 100644 --- a/apps/app_random.c +++ b/apps/app_random.c @@ -39,6 +39,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/pbx.h" #include "asterisk/module.h" +/* TODO This app should be removed from trunk following the release of 1.4 */ + static char *tdesc = "Random goto"; static char *app_random = "Random"; @@ -47,14 +49,13 @@ static char *random_synopsis = "Conditionally branches, based upon a probability static char *random_descrip = "Random([probability]:[[context|]extension|]priority)\n" -" probability := INTEGER in the range 1 to 100\n"; +" probability := INTEGER in the range 1 to 100\n" +"DEPRECATED: Use GotoIf($[${RAND(1,100)} > ]?