Quantcast
Channel: VOIP-info.org Page Changes
Viewing all articles
Browse latest Browse all 2667

Asterisk func db_exists

$
0
0
Diff from version 10 to 11 (current)

@@ -5,13 +5,13 @@

 !!Description:
  DB_EXISTS(<family>/<key>)
 
-This function will check to see if a key exists in the Asterisk database.
-Checking for existence of a database key will also set the variable DB_RESULT to the key's value if it exists.
+This function checks whether a key exists in the Asterisk database.
+Checking for existence of a database key also sets the variable DB_RESULT to the key's value if it exists.
 !!Return value
-If the key exists, the function will return "1". If not, it will return "0".
+If the key exists, the function returns "1". If not, it returns "0".
 !!Example
 ^~pp~exten => s,1,Set(foo=${DB_EXISTS(cidname/7079994444)})~/pp~^
-The following example can be used to replace the LookupBlacklist application. If there's a blacklist match it jumps to context "blacklisted" ext. s, priority 1:
+The following example can be used to replace the LookupBlacklist application. If there is a blacklist match it jumps to context "blacklisted" ext. s, priority 1:
 ^~pp~exten => s,1,GotoIf(${DB_EXISTS(blacklist/${CALLERIDNUM})}?blacklisted,s,1)
 exten => s,2,NoOp( ${CALLERIDNUM} not on Blacklist)
 exten => s,3,Dial(SIP/......)~/pp~^
UserCommentTimeVersion
khb2014-02-22 09:5511

Viewing all articles
Browse latest Browse all 2667

Trending Articles