From 698b0b090b41c6925a4ae13543ffe52c986a7641 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 15 Apr 2004 18:41:17 +0000
Subject: [PATCH] Make substring deprecated

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_substring.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/apps/app_substring.c b/apps/app_substring.c
index 3217a5e139..78d270ecad 100755
--- a/apps/app_substring.c
+++ b/apps/app_substring.c
@@ -26,9 +26,11 @@
 #include <pthread.h>
 
 
-static char *tdesc = "Save substring digits in a given variable";
+static char *tdesc = "(Deprecated) Save substring digits in a given variable";
 
 static char *descrip =
+"  (Deprecated, use ${variable:a:b} instead)\n"
+"\n"
 "  SubString(variable=string_of_digits|count1|count2): Assigns the substring\n"
 "of string_of_digits to a given variable. Parameter count1 may be positive\n"
 "or negative. If it's positive then we skip the first count1 digits from the\n"
@@ -48,7 +50,7 @@ static char *descrip =
 
 static char *app = "SubString";
 
-static char *synopsis = "Save substring digits in a given variable";
+static char *synopsis = "(Deprecated) Save substring digits in a given variable";
 
 STANDARD_LOCAL_USER;
 
-- 
GitLab