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

Modified Files:
        UPGRADE.txt 
Log Message:
Update groupcount / db documentation (bug #4200, etc)


Index: UPGRADE.txt
===================================================================
RCS file: /usr/cvsroot/asterisk/UPGRADE.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- UPGRADE.txt 3 Apr 2005 00:25:21 -0000       1.8
+++ UPGRADE.txt 8 May 2005 17:17:34 -0000       1.9
@@ -38,6 +38,27 @@
 * The CallerPres application has been removed.  Use SetCallerPres 
   instead.  It accepts both numeric and symbolic names.
 
+* The applications GetGroupCount, GetGroupMatchCount, SetGroup, and
+  CheckGroup have been deprecated in favor of functions.  Here is a
+  table of their replacements:
+
+  GetGroupCount([EMAIL PROTECTED]             GROUP_COUNT([EMAIL PROTECTED])   
SetVar(GROUPCOUNT=${GROUP_COUNT()})
+  GroupMatchCount([EMAIL PROTECTED])       GROUP_MATCH_COUNT([EMAIL 
PROTECTED])        SetVar(GROUPCOUNT=${GROUP_MATCH_COUNT(SIP/.*)})
+  SetGroup([EMAIL PROTECTED])         GROUP([category])=groupname              
SetVar(GROUP()=test)
+  CheckGroup([EMAIL PROTECTED])                       N/A                      
                GotoIf($[ ${GROUP_COUNT()} > 5 ]?103)
+
+  Note that CheckGroup does not have a direct replacement.  There is
+  also a new function called GROUP_LIST() which will return a space
+  separated list of all of the groups set on a channel.  The GROUP()
+  function can also return the name of the group set on a channel when
+  used in a read environment.
+
+* The applications DBGet and DBPut have been deprecated in favor of
+  functions.  Here is a table of their replacements:
+
+  DBGet(foo=family/key)        SetVar(foo=${DB(family/key)})
+  DBPut(family/key=${foo})     SetVar(${DB(family/key)}=${foo})
+
 Queues:
 
 * A queue is now considered empty not only if there are no members but if

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to