From: Tilghman Lesher Date: Thu, 19 Jan 2006 18:58:45 +0000 (+0000) Subject: Deprecate the use of Random in 1.3, 1.4 X-Git-Tag: 1.4.0-beta1~2891 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2977f19cac0215ebc8c93c5c9bd1a09a448816fe;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_random.c b/apps/app_random.c index 57ef4dd323..f7d09e87a6 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)} > ]?