summaryrefslogtreecommitdiff
path: root/funcs/func_db.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-07-06 13:50:54 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-07-06 13:50:54 +0000
commitebc9c3765b6297bc24667501c216bb3c0946ec2e (patch)
tree57a7864bf42c32434b9fcd2d326bb88360394b04 /funcs/func_db.c
parentdae3eedb34f32a3ca3fc272bbb0533071d119d11 (diff)
Merged revisions 37143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37143 | tilghman | 2006-07-06 08:47:23 -0500 (Thu, 06 Jul 2006) | 2 lines Fix spelling/grammar (issue 7493) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_db.c')
-rw-r--r--funcs/func_db.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/funcs/func_db.c b/funcs/func_db.c
index 640c07a53..1fefa5cc9 100644
--- a/funcs/func_db.c
+++ b/funcs/func_db.c
@@ -102,15 +102,14 @@ static int function_db_write(struct ast_channel *chan, char *cmd, char *parse,
static struct ast_custom_function db_function = {
.name = "DB",
- .synopsis = "Read or Write from/to the Asterisk database",
+ .synopsis = "Read from or write to the Asterisk database",
.syntax = "DB(<family>/<key>)",
.desc =
- "This function will read or write a value from/to the Asterisk database.\n"
- "DB(...) will read a value from the database, while DB(...)=value\n"
- "will write a value to the database. On a read, this function\n"
- "returns the value from the datase, or NULL if it does not exist.\n"
- "On a write, this function will always return NULL. Reading a database value\n"
- "will also set the variable DB_RESULT.\n",
+"This function will read from or write a value to the Asterisk database. On a\n"
+"read, this function returns the corresponding value from the database, or blank\n"
+"if it does not exist. Reading a database value will also set the variable\n"
+"DB_RESULT. If you wish to find out if an entry exists, use the DB_EXISTS\n"
+"function.\n",
.read = function_db_read,
.write = function_db_write,
};