summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
commitfd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch)
tree42d2a87726d196f4db1c68489007520a4c597062 /funcs
parent9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff)
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'funcs')
-rw-r--r--funcs/Makefile2
-rw-r--r--funcs/func_audiohookinherit.c1
-rw-r--r--funcs/func_base64.c2
-rw-r--r--funcs/func_blacklist.c2
-rw-r--r--funcs/func_config.c4
-rw-r--r--funcs/func_curl.c9
-rw-r--r--funcs/func_cut.c8
-rw-r--r--funcs/func_db.c4
-rw-r--r--funcs/func_devstate.c4
-rw-r--r--funcs/func_dialplan.c2
-rw-r--r--funcs/func_enum.c26
-rw-r--r--funcs/func_extstate.c8
-rw-r--r--funcs/func_frame_trace.c2
-rw-r--r--funcs/func_global.c2
-rw-r--r--funcs/func_groupcount.c12
-rw-r--r--funcs/func_iconv.c9
-rw-r--r--funcs/func_jitterbuffer.c1
-rw-r--r--funcs/func_lock.c8
-rw-r--r--funcs/func_logic.c8
-rw-r--r--funcs/func_md5.c4
-rw-r--r--funcs/func_odbc.c9
-rw-r--r--funcs/func_pitchshift.c1
-rw-r--r--funcs/func_presencestate.c7
-rw-r--r--funcs/func_rand.c8
-rw-r--r--funcs/func_sha1.c4
-rw-r--r--funcs/func_sorcery.c1
-rw-r--r--funcs/func_speex.c22
-rw-r--r--funcs/func_sprintf.c4
-rw-r--r--funcs/func_srv.c4
-rw-r--r--funcs/func_strings.c34
-rw-r--r--funcs/func_sysinfo.c5
-rw-r--r--funcs/func_timeout.c4
-rw-r--r--funcs/func_uri.c6
-rw-r--r--funcs/func_version.c2
-rw-r--r--funcs/func_vmcount.c6
-rw-r--r--funcs/func_volume.c18
36 files changed, 121 insertions, 132 deletions
diff --git a/funcs/Makefile b/funcs/Makefile
index 1caa7c3e4..3f65070e3 100644
--- a/funcs/Makefile
+++ b/funcs/Makefile
@@ -1,6 +1,6 @@
#
# Asterisk -- An open source telephony toolkit.
-#
+#
# Makefile for dialplan functions
#
# Copyright (C) 2005-2006, Digium, Inc.
diff --git a/funcs/func_audiohookinherit.c b/funcs/func_audiohookinherit.c
index 737f04e18..2d79abaaf 100644
--- a/funcs/func_audiohookinherit.c
+++ b/funcs/func_audiohookinherit.c
@@ -87,4 +87,3 @@ static int load_module(void)
}
}
AST_MODULE_INFO_STANDARD_DEPRECATED(ASTERISK_GPL_KEY, "Audiohook inheritance placeholder function");
-
diff --git a/funcs/func_base64.c b/funcs/func_base64.c
index 16619d532..136a36147 100644
--- a/funcs/func_base64.c
+++ b/funcs/func_base64.c
@@ -18,7 +18,7 @@
/*! \file
*
* \brief Use the base64 as functions
- *
+ *
* \ingroup functions
*/
diff --git a/funcs/func_blacklist.c b/funcs/func_blacklist.c
index fdc899b9a..85e254b2b 100644
--- a/funcs/func_blacklist.c
+++ b/funcs/func_blacklist.c
@@ -23,7 +23,7 @@
* \author Mark Spencer <markster@digium.com>
*
* \ingroup functions
- *
+ *
*/
/*** MODULEINFO
diff --git a/funcs/func_config.c b/funcs/func_config.c
index 7279cc900..57510df01 100644
--- a/funcs/func_config.c
+++ b/funcs/func_config.c
@@ -23,7 +23,7 @@
*
* \author Russell Bryant <russell@digium.com>
* \author Tilghman Lesher <func_config__200803@the-tilghman.com>
- *
+ *
* \ingroup functions
*/
@@ -105,7 +105,7 @@ static int config_function_read(struct ast_channel *chan, const char *cmd, char
ast_log(LOG_ERROR, "AST_CONFIG() requires a category\n");
return -1;
}
-
+
if (ast_strlen_zero(args.variable)) {
ast_log(LOG_ERROR, "AST_CONFIG() requires a variable\n");
return -1;
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index 2974b3c52..ebb3dce23 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -18,18 +18,18 @@
*/
/*! \file
- *
+ *
* \brief Curl - Load a URL
*
* \author Tilghman Lesher <curl-20050919@the-tilghman.com>
*
- * \note Brian Wilkins <bwilkins@cfl.rr.com> (Added POST option)
+ * \note Brian Wilkins <bwilkins@cfl.rr.com> (Added POST option)
*
* \extref Depends on the CURL library - http://curl.haxx.se/
- *
+ *
* \ingroup functions
*/
-
+
/*** MODULEINFO
<depend>curl</depend>
<support_level>core</support_level>
@@ -941,4 +941,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "Load external URL",
.unload = unload_module,
.load_pri = AST_MODPRI_REALTIME_DEPEND2,
);
-
diff --git a/funcs/func_cut.c b/funcs/func_cut.c
index c8cda134b..f8bc4941e 100644
--- a/funcs/func_cut.c
+++ b/funcs/func_cut.c
@@ -16,7 +16,7 @@
*/
/*! \file
- *
+ *
* \brief CUT function
*
* \author Tilghman Lesher <app_cut__v003@the-tilghman.com>
@@ -39,7 +39,7 @@
/*** DOCUMENTATION
<function name="SORT" language="en_US">
<synopsis>
- Sorts a list of key/vals into a list of keys, based upon the vals.
+ Sorts a list of key/vals into a list of keys, based upon the vals.
</synopsis>
<syntax>
<parameter name="keyval" required="true" argsep=":">
@@ -59,7 +59,7 @@
</function>
<function name="CUT" language="en_US">
<synopsis>
- Slices and dices strings, based upon a named delimiter.
+ Slices and dices strings, based upon a named delimiter.
</synopsis>
<syntax>
<parameter name="varname" required="true">
@@ -75,7 +75,7 @@
</syntax>
<description>
<para>Cut out information from a string (<replaceable>varname</replaceable>), based upon a named delimiter.</para>
- </description>
+ </description>
</function>
***/
diff --git a/funcs/func_db.c b/funcs/func_db.c
index b2ccb237e..126e3e9dc 100644
--- a/funcs/func_db.c
+++ b/funcs/func_db.c
@@ -1,9 +1,9 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 2005-2006, Russell Bryant <russelb@clemson.edu>
+ * Copyright (C) 2005-2006, Russell Bryant <russelb@clemson.edu>
*
- * func_db.c adapted from the old app_db.c, copyright by the following people
+ * func_db.c adapted from the old app_db.c, copyright by the following people
* Copyright (C) 2005, Mark Spencer <markster@digium.com>
* Copyright (C) 2003, Jefferson Noxon <jeff@debian.org>
*
diff --git a/funcs/func_devstate.c b/funcs/func_devstate.c
index 5789e2b0b..e6159e9bd 100644
--- a/funcs/func_devstate.c
+++ b/funcs/func_devstate.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2007, Digium, Inc.
*
- * Russell Bryant <russell@digium.com>
+ * Russell Bryant <russell@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -20,7 +20,7 @@
*
* \brief Manually controlled blinky lights
*
- * \author Russell Bryant <russell@digium.com>
+ * \author Russell Bryant <russell@digium.com>
*
* \ingroup functions
*
diff --git a/funcs/func_dialplan.c b/funcs/func_dialplan.c
index 6eaa03c89..829c9fba8 100644
--- a/funcs/func_dialplan.c
+++ b/funcs/func_dialplan.c
@@ -20,7 +20,7 @@
*
* \author Gregory Nietsky AKA irroot <gregory@networksentry.co.za>
* \author Russell Bryant <russell@digium.com>
- *
+ *
* \ingroup functions
*/
diff --git a/funcs/func_enum.c b/funcs/func_enum.c
index 2e86625ae..6929e3ccd 100644
--- a/funcs/func_enum.c
+++ b/funcs/func_enum.c
@@ -79,7 +79,7 @@
<parameter name="resultnum" required="true">
<para>The number of the result that you want to retrieve.</para>
<para>Results start at <literal>1</literal>. If this argument is specified
- as <literal>getnum</literal>, then it will return the total number of results
+ as <literal>getnum</literal>, then it will return the total number of results
that are available or -1 on error.</para>
</parameter>
</syntax>
@@ -87,7 +87,7 @@
<para>This function will retrieve results from a previous use
of the ENUMQUERY function.</para>
</description>
- </function>
+ </function>
<function name="ENUMLOOKUP" language="en_US">
<synopsis>
General or specific querying of NAPTR records for ENUM or ENUM-like DNS pointers.
@@ -117,10 +117,10 @@
<option name="d">
<para>for a direct DNS lookup without any flipping of digits.</para>
</option>
- </optionlist>
+ </optionlist>
</parameter>
<parameter name="record#">
- <para>If no <replaceable>record#</replaceable> is given,
+ <para>If no <replaceable>record#</replaceable> is given,
defaults to <literal>1</literal>.</para>
</parameter>
<parameter name="zone-suffix">
@@ -224,7 +224,7 @@ struct enum_result_datastore {
unsigned int id;
};
-static void erds_destroy(struct enum_result_datastore *data)
+static void erds_destroy(struct enum_result_datastore *data)
{
int k;
@@ -238,7 +238,7 @@ static void erds_destroy(struct enum_result_datastore *data)
ast_free(data);
}
-static void erds_destroy_cb(void *data)
+static void erds_destroy_cb(void *data)
{
struct enum_result_datastore *erds = data;
erds_destroy(erds);
@@ -247,7 +247,7 @@ static void erds_destroy_cb(void *data)
static const struct ast_datastore_info enum_result_datastore_info = {
.type = "ENUMQUERY",
.destroy = erds_destroy_cb,
-};
+};
static int enum_query_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
{
@@ -268,7 +268,7 @@ static int enum_query_read(struct ast_channel *chan, const char *cmd, char *data
}
parse = ast_strdupa(data);
-
+
AST_STANDARD_APP_ARGS(args, parse);
if (!chan) {
@@ -306,9 +306,9 @@ static int enum_query_read(struct ast_channel *chan, const char *cmd, char *data
ast_channel_lock(chan);
ast_channel_datastore_add(chan, datastore);
ast_channel_unlock(chan);
-
+
res = 0;
-
+
finish:
return res;
@@ -321,7 +321,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
char *parse, *p;
unsigned int num;
int res = -1, k;
- AST_DECLARE_APP_ARGS(args,
+ AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(id);
AST_APP_ARG(resultnum);
);
@@ -335,7 +335,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
ast_log(LOG_ERROR, "ENUMRESULT can not be used without a channel!\n");
goto finish;
}
-
+
parse = ast_strdupa(data);
AST_STANDARD_APP_ARGS(args, parse);
@@ -381,7 +381,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
continue;
p = strchr(erds->context->naptr_rrs[k].result, ':');
-
+
if (p && strcasecmp(erds->context->naptr_rrs[k].tech, "ALL"))
ast_copy_string(buf, p + 1, len);
else
diff --git a/funcs/func_extstate.c b/funcs/func_extstate.c
index d20fb2a0b..1aa74266c 100644
--- a/funcs/func_extstate.c
+++ b/funcs/func_extstate.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2007, Digium, Inc.
*
- * Modified from func_devstate.c by Russell Bryant <russell@digium.com>
+ * Modified from func_devstate.c by Russell Bryant <russell@digium.com>
* Adam Gundy <adam@starsilk.net>
* See http://www.asterisk.org for more information about
@@ -21,7 +21,7 @@
*
* \brief Get the state of a hinted extension for dialplan control
*
- * \author Adam Gundy <adam@starsilk.net>
+ * \author Adam Gundy <adam@starsilk.net>
*
* \ingroup functions
*/
@@ -42,7 +42,7 @@
<function name="EXTENSION_STATE" language="en_US">
<synopsis>
Get an extension's state.
- </synopsis>
+ </synopsis>
<syntax argsep="@">
<parameter name="extension" required="true" />
<parameter name="context">
@@ -115,7 +115,7 @@ static int extstate_read(struct ast_channel *chan, const char *cmd, char *data,
return -1;
}
- ast_copy_string(buf,
+ ast_copy_string(buf,
ast_extstate_str(ast_extension_state(chan, context, exten)), len);
return 0;
diff --git a/funcs/func_frame_trace.c b/funcs/func_frame_trace.c
index e88cafaf6..59c8a1461 100644
--- a/funcs/func_frame_trace.c
+++ b/funcs/func_frame_trace.c
@@ -439,5 +439,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Frame Trace for internal ast_frame debugging.");
-
-
diff --git a/funcs/func_global.c b/funcs/func_global.c
index 795ddaf61..4b5e0d659 100644
--- a/funcs/func_global.c
+++ b/funcs/func_global.c
@@ -70,7 +70,7 @@
<para>Implements a shared variable area, in which you may share variables between
channels.</para>
<para>The variables used in this space are separate from the general namespace of
- the channel and thus <variable>SHARED(foo)</variable> and <variable>foo</variable>
+ the channel and thus <variable>SHARED(foo)</variable> and <variable>foo</variable>
represent two completely different variables, despite sharing the same name.</para>
<para>Finally, realize that there is an inherent race between channels operating
at the same time, fiddling with each others' internal variables, which is why
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index 2b6ed4052..f6dd5c6ba 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -17,7 +17,7 @@
/*! \file
*
* \brief Channel group related dialplan functions
- *
+ *
* \ingroup functions
*/
@@ -79,7 +79,7 @@
</parameter>
</syntax>
<description>
- <para><replaceable>category</replaceable> can be employed for more fine grained group management. Each channel
+ <para><replaceable>category</replaceable> can be employed for more fine grained group management. Each channel
can only be member of exactly one group per <replaceable>category</replaceable>.</para>
</description>
</function>
@@ -193,14 +193,14 @@ static int group_function_read(struct ast_channel *chan, const char *cmd,
if (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, data))
break;
}
-
+
if (gi) {
ast_copy_string(buf, gi->group, len);
ret = 0;
}
-
+
ast_app_group_list_unlock();
-
+
return ret;
}
@@ -265,7 +265,7 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
snprintf(tmp1, sizeof(tmp1), "%s", gi->group);
}
}
-
+
ast_app_group_list_unlock();
ast_copy_string(buf, tmp1, len);
diff --git a/funcs/func_iconv.c b/funcs/func_iconv.c
index 10ba1bb5f..a925c1ce0 100644
--- a/funcs/func_iconv.c
+++ b/funcs/func_iconv.c
@@ -43,7 +43,7 @@
/*** DOCUMENTATION
<function name="ICONV" language="en_US">
<synopsis>
- Converts charsets of strings.
+ Converts charsets of strings.
</synopsis>
<syntax>
<parameter name="in-charset" required="true">
@@ -66,10 +66,10 @@
***/
-/*!
+/*!
* Some systems define the second arg to iconv() as (const char *),
- * while others define it as (char *). Cast it to a (void *) to
- * suppress compiler warnings about it.
+ * while others define it as (char *). Cast it to a (void *) to
+ * suppress compiler warnings about it.
*/
#define AST_ICONV_CAST void *
@@ -141,4 +141,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Charset conversions");
-
diff --git a/funcs/func_jitterbuffer.c b/funcs/func_jitterbuffer.c
index 65aea5377..e4c68eda7 100644
--- a/funcs/func_jitterbuffer.c
+++ b/funcs/func_jitterbuffer.c
@@ -179,4 +179,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Jitter buffer for read side of channel.");
-
diff --git a/funcs/func_lock.c b/funcs/func_lock.c
index 88bf6e5bd..5cb831019 100644
--- a/funcs/func_lock.c
+++ b/funcs/func_lock.c
@@ -23,7 +23,7 @@
* \author Tilghman Lesher <func_lock_2007@the-tilghman.com>
*
* \ingroup functions
- *
+ *
*/
/*** MODULEINFO
@@ -73,7 +73,7 @@
</syntax>
<description>
<para>Attempts to grab a named lock exclusively, and prevents other channels
- from obtaining the same lock. Returns <literal>1</literal> if the lock was
+ from obtaining the same lock. Returns <literal>1</literal> if the lock was
available or <literal>0</literal> otherwise.</para>
<note>
<para>If <literal>live_dangerously</literal> in <literal>asterisk.conf</literal>
@@ -90,9 +90,9 @@
<parameter name="lockname" required="true" />
</syntax>
<description>
- <para>Unlocks a previously locked mutex. Returns <literal>1</literal> if the channel
+ <para>Unlocks a previously locked mutex. Returns <literal>1</literal> if the channel
had a lock or <literal>0</literal> otherwise.</para>
- <note><para>It is generally unnecessary to unlock in a hangup routine, as any locks
+ <note><para>It is generally unnecessary to unlock in a hangup routine, as any locks
held are automatically freed when the channel is destroyed.</para></note>
<note>
<para>If <literal>live_dangerously</literal> in <literal>asterisk.conf</literal>
diff --git a/funcs/func_logic.c b/funcs/func_logic.c
index 1ec0b0c50..d26774933 100644
--- a/funcs/func_logic.c
+++ b/funcs/func_logic.c
@@ -16,9 +16,9 @@
*/
/*! \file
- *
+ *
* \brief Conditional logic dialplan functions
- *
+ *
* \author Anthony Minessale II
*
* \ingroup functions
@@ -83,7 +83,7 @@
</syntax>
<description>
<para>Returns the data following <literal>?</literal> if true, else the data following <literal>:</literal></para>
- </description>
+ </description>
</function>
<function name="IFTIME" language="en_US">
<synopsis>
@@ -182,7 +182,7 @@ static int acf_if(struct ast_channel *chan, const char *cmd, char *data, char *b
-- and if you mod the ast_app_separate_args func instead, you'll really
mess things up badly, because the rest of everything depends on null args
for non-specified stuff. */
-
+
AST_NONSTANDARD_APP_ARGS(args1, data, '?');
AST_NONSTANDARD_APP_ARGS(args2, args1.remainder, ':');
diff --git a/funcs/func_md5.c b/funcs/func_md5.c
index 101c1fd72..adbdbc272 100644
--- a/funcs/func_md5.c
+++ b/funcs/func_md5.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2005-2006, Digium, Inc.
* Copyright (C) 2005, Olle E. Johansson, Edvina.net
- * Copyright (C) 2005, Russell Bryant <russelb@clemson.edu>
+ * Copyright (C) 2005, Russell Bryant <russelb@clemson.edu>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -19,7 +19,7 @@
/*! \file
*
* \brief MD5 digest related dialplan functions
- *
+ *
* \author Olle E. Johansson <oej@edvina.net>
* \author Russell Bryant <russelb@clemson.edu>
*
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 06e4a6ada..ed8987ea4 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -54,8 +54,8 @@
<parameter name="result-id" required="true" />
</syntax>
<description>
- <para>For queries which are marked as mode=multirow, the original
- query returns a <replaceable>result-id</replaceable> from which results
+ <para>For queries which are marked as mode=multirow, the original
+ query returns a <replaceable>result-id</replaceable> from which results
may be fetched. This function implements the actual fetch of the results.</para>
<para>This also sets <variable>ODBC_FETCH_STATUS</variable>.</para>
<variablelist>
@@ -78,7 +78,7 @@
<parameter name="result-id" required="true" />
</syntax>
<description>
- <para>For queries which are marked as mode=multirow, this will clear
+ <para>For queries which are marked as mode=multirow, this will clear
any remaining rows of the specified resultset.</para>
</description>
</application>
@@ -90,7 +90,7 @@
<parameter name="string" required="true" />
</syntax>
<description>
- <para>Used in SQL templates to escape data which may contain single ticks
+ <para>Used in SQL templates to escape data which may contain single ticks
<literal>'</literal> which are otherwise used to delimit data.</para>
<para>Example: SELECT foo FROM bar WHERE baz='${SQL_ESC(${ARG1})}'</para>
</description>
@@ -1917,4 +1917,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "ODBC lookups",
.unload = unload_module,
.reload = reload,
);
-
diff --git a/funcs/func_pitchshift.c b/funcs/func_pitchshift.c
index a995d42f1..a2bdfc584 100644
--- a/funcs/func_pitchshift.c
+++ b/funcs/func_pitchshift.c
@@ -508,4 +508,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Audio Effects Dialplan Functions");
-
diff --git a/funcs/func_presencestate.c b/funcs/func_presencestate.c
index 0f2a43142..6005e48bb 100644
--- a/funcs/func_presencestate.c
+++ b/funcs/func_presencestate.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2011, Digium, Inc.
*
- * David Vossel <dvossel@digium.com>
+ * David Vossel <dvossel@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -453,7 +453,7 @@ struct test_string {
int value;
const char *subtype;
const char *message;
- const char *options;
+ const char *options;
} outputs;
};
@@ -465,7 +465,7 @@ AST_TEST_DEFINE(test_valid_parse_data)
char *message;
char *options;
enum ast_test_result_state res = AST_TEST_PASS;
-
+
struct test_string tests [] = {
{ "away",
{ AST_PRESENCE_AWAY,
@@ -882,4 +882,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "Gets or sets a presen
.unload = unload_module,
.load_pri = AST_MODPRI_DEVSTATE_PROVIDER,
);
-
diff --git a/funcs/func_rand.c b/funcs/func_rand.c
index bc514b80c..bf208e9e2 100644
--- a/funcs/func_rand.c
+++ b/funcs/func_rand.c
@@ -18,7 +18,7 @@
/*! \file
*
* \brief Generate Random Number
- *
+ *
* \author Claude Patry <cpatry@gmail.com>
* \author Tilghman Lesher ( http://asterisk.drunkcoder.com/ )
* \ingroup functions
@@ -39,15 +39,15 @@
/*** DOCUMENTATION
<function name="RAND" language="en_US">
<synopsis>
- Choose a random number in a range.
+ Choose a random number in a range.
</synopsis>
<syntax>
<parameter name="min" />
<parameter name="max" />
</syntax>
<description>
- <para>Choose a random number between <replaceable>min</replaceable> and <replaceable>max</replaceable>.
- <replaceable>min</replaceable> defaults to <literal>0</literal>, if not specified, while <replaceable>max</replaceable> defaults
+ <para>Choose a random number between <replaceable>min</replaceable> and <replaceable>max</replaceable>.
+ <replaceable>min</replaceable> defaults to <literal>0</literal>, if not specified, while <replaceable>max</replaceable> defaults
to <literal>RAND_MAX</literal> (2147483647 on many systems).</para>
<para>Example: Set(junky=${RAND(1,8)});
Sets junky to a random number between 1 and 8, inclusive.</para>
diff --git a/funcs/func_sha1.c b/funcs/func_sha1.c
index a3787b108..6c96ecd05 100644
--- a/funcs/func_sha1.c
+++ b/funcs/func_sha1.c
@@ -18,7 +18,7 @@
/*! \file
*
* \brief SHA1 digest related dialplan functions
- *
+ *
* \author Claude Patry <cpatry@gmail.com>
*
* \ingroup functions
@@ -47,7 +47,7 @@
<para>Generate a SHA1 digest via the SHA1 algorythm.</para>
<para>Example: Set(sha1hash=${SHA1(junky)})</para>
<para>Sets the asterisk variable sha1hash to the string <literal>60fa5675b9303eb62f99a9cd47f9f5837d18f9a0</literal>
- which is known as his hash</para>
+ which is known as his hash</para>
</description>
</function>
***/
diff --git a/funcs/func_sorcery.c b/funcs/func_sorcery.c
index d4d8be2f2..7703e2be9 100644
--- a/funcs/func_sorcery.c
+++ b/funcs/func_sorcery.c
@@ -216,4 +216,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Get a field from a sorcery object");
-
diff --git a/funcs/func_speex.c b/funcs/func_speex.c
index 78ac4baab..1a88fae7f 100644
--- a/funcs/func_speex.c
+++ b/funcs/func_speex.c
@@ -4,7 +4,7 @@
* Copyright (C) 2008, Digium, Inc.
*
* Brian Degenhardt <bmd@digium.com>
- * Brett Bryant <bbryant@digium.com>
+ * Brett Bryant <bbryant@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -21,8 +21,8 @@
*
* \brief Noise reduction and automatic gain control (AGC)
*
- * \author Brian Degenhardt <bmd@digium.com>
- * \author Brett Bryant <bbryant@digium.com>
+ * \author Brian Degenhardt <bmd@digium.com>
+ * \author Brett Bryant <bbryant@digium.com>
*
* \ingroup functions
*
@@ -63,7 +63,7 @@
channel that it is executed on. Using <literal>rx</literal> for audio received
and <literal>tx</literal> for audio transmitted to the channel. When using this
function you set a target audio level. It is primarily intended for use with
- analog lines, but could be useful for other channels as well. The target volume
+ analog lines, but could be useful for other channels as well. The target volume
is set with a number between <literal>1-32768</literal>. The larger the number
the louder (more gain) the channel will receive.</para>
<para>Examples:</para>
@@ -77,7 +77,7 @@
</synopsis>
<syntax>
<parameter name="channeldirection" required="true">
- <para>This can be either <literal>rx</literal> or <literal>tx</literal>
+ <para>This can be either <literal>rx</literal> or <literal>tx</literal>
the values that can be set to this are either <literal>on</literal> and
<literal>off</literal></para>
</parameter>
@@ -108,7 +108,7 @@ struct speex_info {
struct speex_direction_info *tx, *rx;
};
-static void destroy_callback(void *data)
+static void destroy_callback(void *data)
{
struct speex_info *si = data;
@@ -251,13 +251,13 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co
if (!strcasecmp(cmd, "agc")) {
if (!sscanf(value, "%30f", &(*sdi)->agclevel))
(*sdi)->agclevel = ast_true(value) ? DEFAULT_AGC_LEVEL : 0.0;
-
+
if ((*sdi)->agclevel > 32768.0) {
- ast_log(LOG_WARNING, "AGC(%s)=%.01f is greater than 32768... setting to 32768 instead\n",
+ ast_log(LOG_WARNING, "AGC(%s)=%.01f is greater than 32768... setting to 32768 instead\n",
((*sdi == si->rx) ? "rx" : "tx"), (*sdi)->agclevel);
(*sdi)->agclevel = 32768.0;
}
-
+
(*sdi)->agc = !!((*sdi)->agclevel);
if ((*sdi)->state) {
@@ -292,11 +292,11 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co
ast_audiohook_remove(chan, &si->audiohook);
ast_audiohook_detach(&si->audiohook);
}
-
+
ast_datastore_free(datastore);
}
- if (is_new) {
+ if (is_new) {
datastore->data = si;
ast_channel_lock(chan);
ast_channel_datastore_add(chan, datastore);
diff --git a/funcs/func_sprintf.c b/funcs/func_sprintf.c
index 03d7bb27b..29dcfed52 100644
--- a/funcs/func_sprintf.c
+++ b/funcs/func_sprintf.c
@@ -21,7 +21,7 @@
* \brief String manipulation dialplan functions
*
* \author Tilghman Lesher
- * \author Anothony Minessale II
+ * \author Anothony Minessale II
* \ingroup functions
*/
@@ -53,7 +53,7 @@ AST_THREADSTORAGE(result_buf);
<parameter name="argN" />
</syntax>
<description>
- <para>Parses the format string specified and returns a string matching
+ <para>Parses the format string specified and returns a string matching
that format. Supports most options found in <emphasis>sprintf(3)</emphasis>.
Returns a shortened string if a format specifier is not recognized.</para>
</description>
diff --git a/funcs/func_srv.c b/funcs/func_srv.c
index 17d7d7a93..c8506b3a7 100644
--- a/funcs/func_srv.c
+++ b/funcs/func_srv.c
@@ -138,7 +138,7 @@ static int srv_query_read(struct ast_channel *chan, const char *cmd, char *data,
ast_log(LOG_WARNING, "%s requires a service as an argument\n", cmd);
return -1;
}
-
+
/* If they already called SRVQUERY for this service once,
* we need to kill the old datastore.
*/
@@ -150,7 +150,7 @@ static int srv_query_read(struct ast_channel *chan, const char *cmd, char *data,
ast_channel_datastore_remove(chan, datastore);
ast_datastore_free(datastore);
}
-
+
if (!srv_datastore_setup(data, chan)) {
return -1;
}
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index 2d03c15e8..cb253850d 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -21,7 +21,7 @@
* \brief String manipulation dialplan functions
*
* \author Tilghman Lesher
- * \author Anothony Minessale II
+ * \author Anothony Minessale II
* \ingroup functions
*/
@@ -106,13 +106,13 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="string" required="true" />
</syntax>
<description>
- <para>Permits all characters listed in <replaceable>allowed-chars</replaceable>,
- filtering all others outs. In addition to literally listing the characters,
+ <para>Permits all characters listed in <replaceable>allowed-chars</replaceable>,
+ filtering all others outs. In addition to literally listing the characters,
you may also use ranges of characters (delimited by a <literal>-</literal></para>
<para>Hexadecimal characters started with a <literal>\x</literal>(i.e. \x20)</para>
<para>Octal characters started with a <literal>\0</literal> (i.e. \040)</para>
- <para>Also <literal>\t</literal>,<literal>\n</literal> and <literal>\r</literal> are recognized.</para>
- <note><para>If you want the <literal>-</literal> character it needs to be prefixed with a
+ <para>Also <literal>\t</literal>,<literal>\n</literal> and <literal>\r</literal> are recognized.</para>
+ <note><para>If you want the <literal>-</literal> character it needs to be prefixed with a
<literal>\</literal></para></note>
</description>
</function>
@@ -179,9 +179,9 @@ AST_THREADSTORAGE(tmp_buf);
</syntax>
<description>
<para>Return <literal>1</literal> on regular expression match or <literal>0</literal> otherwise</para>
- <para>Please note that the space following the double quotes separating the
- regex from the data is optional and if present, is skipped. If a space is
- desired at the beginning of the data, then put two spaces there; the second
+ <para>Please note that the space following the double quotes separating the
+ regex from the data is optional and if present, is skipped. If a space is
+ desired at the beginning of the data, then put two spaces there; the second
will not be skipped.</para>
</description>
</function>
@@ -218,8 +218,8 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="hashname" required="true" />
</syntax>
<description>
- <para>Returns a comma-delimited list of the current keys of the associative array
- defined by the HASH() function. Note that if you iterate over the keys of
+ <para>Returns a comma-delimited list of the current keys of the associative array
+ defined by the HASH() function. Note that if you iterate over the keys of
the result, adding keys during iteration will cause the result of the HASHKEYS()
function to change.</para>
</description>
@@ -245,8 +245,8 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="varN" required="false" />
</syntax>
<description>
- <para>The comma-delimited list passed as a value to which the function is set will
- be interpreted as a set of values to which the comma-delimited list of
+ <para>The comma-delimited list passed as a value to which the function is set will
+ be interpreted as a set of values to which the comma-delimited list of
variable names in the argument should be set.</para>
<para>Example: Set(ARRAY(var1,var2)=1,2) will set var1 to 1 and var2 to 2</para>
</description>
@@ -261,7 +261,7 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="format" required="true" />
</syntax>
<description>
- <para>This is useful for converting a date into <literal>EPOCH</literal> time,
+ <para>This is useful for converting a date into <literal>EPOCH</literal> time,
possibly to pass to an application like SayUnixTime or to calculate the difference
between the two date strings</para>
<para>Example: ${STRPTIME(2006-03-01 07:30:35,America/Chicago,%Y-%m-%d %H:%M:%S)} returns 1141219835</para>
@@ -384,7 +384,7 @@ AST_THREADSTORAGE(tmp_buf);
NoOp(var is three) being executed.
</para>
</description>
- </function>
+ </function>
<function name="POP" language="en_US">
<synopsis>
Removes and returns the last item off of a variable containing delimited text
@@ -404,7 +404,7 @@ AST_THREADSTORAGE(tmp_buf);
NoOp(var is one) being executed.
</para>
</description>
- </function>
+ </function>
<function name="PUSH" language="en_US">
<synopsis>
Appends one or more values to the end of a variable containing delimited text
@@ -974,7 +974,7 @@ static int regex(struct ast_channel *chan, const char *cmd, char *parse, char *b
ast_log(LOG_WARNING, "Malformed input %s(%s): %s\n", cmd, parse, buf);
return -1;
}
-
+
strcpy(buf, regexec(&regexbuf, args.str, 0, NULL, 0) ? "0" : "1");
regfree(&regexbuf);
@@ -1901,7 +1901,7 @@ AST_TEST_DEFINE(test_STRREPLACE)
ast_channel_release(chan);
return AST_TEST_FAIL;
}
-
+
AST_LIST_INSERT_HEAD(ast_channel_varshead(chan), var, entries);
if (test_strings[i][3]) {
diff --git a/funcs/func_sysinfo.c b/funcs/func_sysinfo.c
index d0a874e3a..5b7c4d809 100644
--- a/funcs/func_sysinfo.c
+++ b/funcs/func_sysinfo.c
@@ -17,7 +17,7 @@
/*! \file
*
* SYSINFO function to return various system data.
- *
+ *
* \note Inspiration and Guidance from Russell
*
* \author Jeff Peeler
@@ -130,7 +130,7 @@ static int sysinfo_helper(struct ast_channel *chan, const char *cmd, char *data,
ast_log(LOG_ERROR, "Unknown sysinfo parameter type '%s'.\n", data);
return -1;
}
-
+
return 0;
}
@@ -151,4 +151,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "System information related functions");
-
diff --git a/funcs/func_timeout.c b/funcs/func_timeout.c
index 05a02e158..0d53140f4 100644
--- a/funcs/func_timeout.c
+++ b/funcs/func_timeout.c
@@ -20,7 +20,7 @@
*
* \brief Channel timeout related dialplan functions
*
- * \author Mark Spencer <markster@digium.com>
+ * \author Mark Spencer <markster@digium.com>
* \ingroup functions
*/
@@ -44,7 +44,7 @@
<syntax>
<parameter name="timeouttype" required="true">
<para>The timeout that will be manipulated. The possible timeout types
- are: <literal>absolute</literal>, <literal>digit</literal> or
+ are: <literal>absolute</literal>, <literal>digit</literal> or
<literal>response</literal></para>
</parameter>
</syntax>
diff --git a/funcs/func_uri.c b/funcs/func_uri.c
index dfdeae9fe..824887b00 100644
--- a/funcs/func_uri.c
+++ b/funcs/func_uri.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 1999 - 2006, Digium, Inc.
*
- * Created by Olle E. Johansson, Edvina.net
+ * Created by Olle E. Johansson, Edvina.net
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -21,10 +21,10 @@
* \brief URI encoding / decoding
*
* \author Olle E. Johansson <oej@edvina.net>
- *
+ *
* \note For now this code only supports 8 bit characters, not unicode,
which we ultimately will need to support.
- *
+ *
* \ingroup functions
*/
diff --git a/funcs/func_version.c b/funcs/func_version.c
index e24630288..01cb74845 100644
--- a/funcs/func_version.c
+++ b/funcs/func_version.c
@@ -17,7 +17,7 @@
/*! \file
*
* \brief Return the current Version strings
- *
+ *
* \author Steve Murphy (murf@digium.com)
* \ingroup functions
*/
diff --git a/funcs/func_vmcount.c b/funcs/func_vmcount.c
index be919dda1..cb7511048 100644
--- a/funcs/func_vmcount.c
+++ b/funcs/func_vmcount.c
@@ -2,7 +2,7 @@
* Asterisk -- An open source telephony toolkit.
*
* Copyright (c) 2006 Tilghman Lesher. All rights reserved.
- *
+ *
* Tilghman Lesher <asterisk-vmcount-func@the-tilghman.com>
*
* See http://www.asterisk.org for more information about
@@ -53,7 +53,7 @@
</parameter>
</syntax>
<description>
- <para>Count the number of voicemails in a specified mailbox, you could also specify
+ <para>Count the number of voicemails in a specified mailbox, you could also specify
the mailbox <replaceable>folder</replaceable>.</para>
<para>Example: <literal>exten => s,1,Set(foo=${VMCOUNT(125@default)})</literal></para>
</description>
@@ -83,7 +83,7 @@ static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *arg
}
snprintf(buf, len, "%d", ast_app_messagecount(args.vmbox, args.folder));
-
+
return 0;
}
diff --git a/funcs/func_volume.c b/funcs/func_volume.c
index fdf2064d5..533eb552f 100644
--- a/funcs/func_volume.c
+++ b/funcs/func_volume.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2011, Digium, Inc.
*
- * Joshua Colp <jcolp@digium.com>
+ * Joshua Colp <jcolp@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -20,7 +20,7 @@
*
* \brief Technology independent volume control
*
- * \author Joshua Colp <jcolp@digium.com>
+ * \author Joshua Colp <jcolp@digium.com>
*
* \ingroup functions
*
@@ -124,7 +124,7 @@ static int volume_callback(struct ast_audiohook *audiohook, struct ast_channel *
if (frame->frametype == AST_FRAME_DTMF) {
/* Only use DTMF coming from the source... not going to it */
if (direction != AST_AUDIOHOOK_DIRECTION_READ)
- return 0;
+ return 0;
if (frame->subclass.integer == '*') {
vi->tx_gain += 1;
vi->rx_gain += 1;
@@ -135,7 +135,7 @@ static int volume_callback(struct ast_audiohook *audiohook, struct ast_channel *
}
}
-
+
if (frame->frametype == AST_FRAME_VOICE) {
/* Based on direction of frame grab the gain, and confirm it is applicable */
if (!(gain = (direction == AST_AUDIOHOOK_DIRECTION_READ) ? &vi->rx_gain : &vi->tx_gain) || !*gain)
@@ -192,8 +192,8 @@ static int volume_write(struct ast_channel *chan, const char *cmd, char *data, c
return -1;
}
- if (!strcasecmp(args.direction, "tx")) {
- vi->tx_gain = atoi(value);
+ if (!strcasecmp(args.direction, "tx")) {
+ vi->tx_gain = atoi(value);
} else if (!strcasecmp(args.direction, "rx")) {
vi->rx_gain = atoi(value);
} else {
@@ -209,13 +209,13 @@ static int volume_write(struct ast_channel *chan, const char *cmd, char *data, c
}
/* Add Option data to struct */
-
+
if (!ast_strlen_zero(args.options)) {
struct ast_flags flags = { 0 };
ast_app_parse_options(volume_opts, &flags, NULL, args.options);
vi->flags = flags.flags;
- } else {
- vi->flags = 0;
+ } else {
+ vi->flags = 0;
}
return 0;