aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-07 22:01:22 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-07 22:01:22 +0000
commite61f71745fd8e4682e77917b4db4aeff62072e2c (patch)
treec9f258c1b931ee2e10d3e288b17ec6961440eaf1
parent25be1f3bc599f4752aab163844ebe75d9a471a42 (diff)
application doc update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6992 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xChangeLog4
-rwxr-xr-xapps/app_adsiprog.c5
-rwxr-xr-xapps/app_authenticate.c9
-rwxr-xr-xapps/app_chanisavail.c18
-rwxr-xr-xapps/app_controlplayback.c9
-rwxr-xr-xapps/app_curl.c2
-rwxr-xr-xapps/app_cut.c4
-rwxr-xr-xapps/app_datetime.c4
-rwxr-xr-xapps/app_db.c15
-rwxr-xr-xapps/app_dial.c8
-rwxr-xr-xapps/app_directory.c7
-rwxr-xr-xapps/app_disa.c1
-rwxr-xr-xapps/app_dumpchan.c2
-rwxr-xr-xapps/app_echo.c5
-rwxr-xr-xapps/app_enumlookup.c1
-rwxr-xr-xapps/app_flash.c3
-rwxr-xr-xapps/app_getcpeid.c3
-rwxr-xr-xapps/app_groupcount.c2
-rwxr-xr-xapps/app_ices.c3
-rwxr-xr-xapps/app_image.c9
-rwxr-xr-xapps/app_intercom.c3
-rwxr-xr-xapps/app_lookupblacklist.c6
-rwxr-xr-xapps/app_lookupcidname.c2
-rwxr-xr-xapps/app_macro.c1
-rwxr-xr-xapps/app_math.c2
-rwxr-xr-xapps/app_md5.c2
-rwxr-xr-xapps/app_meetme.c7
-rwxr-xr-xapps/app_mp3.c6
-rwxr-xr-xapps/app_nbscat.c3
-rwxr-xr-xapps/app_page.c5
-rwxr-xr-xapps/app_playback.c5
-rwxr-xr-xapps/app_privacy.c2
-rwxr-xr-xapps/app_queue.c11
-rwxr-xr-xapps/app_read.c2
-rwxr-xr-xapps/app_record.c3
-rwxr-xr-xapps/app_sayunixtime.c6
-rwxr-xr-xapps/app_senddtmf.c7
-rwxr-xr-xapps/app_sendtext.c3
-rwxr-xr-xapps/app_setcallerid.c4
-rwxr-xr-xapps/app_setcdruserfield.c6
-rwxr-xr-xapps/app_setcidname.c2
-rwxr-xr-xapps/app_setcidnum.c2
-rwxr-xr-xapps/app_setrdnis.c2
-rwxr-xr-xapps/app_settransfercapability.c2
-rwxr-xr-xapps/app_sms.c3
-rwxr-xr-xapps/app_softhangup.c3
-rwxr-xr-xapps/app_striplsd.c3
-rwxr-xr-xapps/app_system.c11
-rwxr-xr-xapps/app_talkdetect.c3
-rwxr-xr-xapps/app_verbose.c3
-rwxr-xr-xapps/app_voicemail.c3
-rwxr-xr-xapps/app_zapateller.c8
-rwxr-xr-xapps/app_zapras.c2
53 files changed, 115 insertions, 132 deletions
diff --git a/ChangeLog b/ChangeLog
index 78016cc9b..5de6719e1 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-07 Kevin P. Fleming <kpfleming@digium.com>
+
+ * many files: clean up application documentation to not refer to return values, since they cannot be used in the dialplan (work done by Neil Lewis)
+
2005-11-06 Russell Bryant <russell@digium.com>
* many files: alphabetize options in applicaiton descriptions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c
index 21eed0991..0d775877b 100755
--- a/apps/app_adsiprog.c
+++ b/apps/app_adsiprog.c
@@ -56,8 +56,9 @@ static char *synopsis = "Load Asterisk ADSI Scripts into phone";
static char *descrip =
" ADSIProg(script): Programs an ADSI Phone with the given script.\n"
-"If none is specified, the default is used. Returns 0 unless CPE\n"
-"is hungup.\n";
+"If none is specified, the default script is used. The reprogramming\n"
+"will complete successfully, except in cases where the device is \n"
+"disconnected or hungup.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c
index 244f5b4ad..a3f5f91c9 100755
--- a/apps/app_authenticate.c
+++ b/apps/app_authenticate.c
@@ -65,11 +65,10 @@ static char *descrip =
" r - Remove database key upon successful entry (valid with 'd' only)\n"
"\n"
"When using a database key, the value associated with the key can be\n"
-"anything.\n"
-"Returns 0 if the user enters a valid password within three\n"
-"tries, or -1 on hangup. If the priority n+101 exists and invalid\n"
-"authentication was entered, and the 'j' flag was specified, processing\n"
-"will jump to n+101 and 0 will be returned.\n";
+"anything. Users have three attempts to authenticate before the line is \n"
+"hungup. If the passsword is invalid, and the 'j' flag is specified, \n"
+"and priority n+101 exists, the call would be sent to the n+101 priority \n"
+"and executed \n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c
index 957f4125a..10a377f01 100755
--- a/apps/app_chanisavail.c
+++ b/apps/app_chanisavail.c
@@ -52,16 +52,18 @@ static char *synopsis = "Check if channel is available";
static char *descrip =
" ChanIsAvail(Technology/resource[&Technology2/resource2...][|option]): \n"
-"Checks is any of the requested channels are available. \n"
-"If any of the requested channels are available, the next priority will be n+1,\n"
-"the channel variable ${AVAILCHAN} will be set to the name of the available channel\n"
-"and the ChanIsAvail app will return 0.\n"
-"${AVAILORIGCHAN} is the canonical channel name that was used to create the channel.\n"
-"${AVAILSTATUS} is the status code for the channel.\n"
+"Checks if any of the requested channels are available. \n"
+"If any of the requested channels are available, the dialplan will continue and:\n"
+" ${AVAILCHAN} will be set to the name of the available channel\n"
+" ${AVAILORIGCHAN} is the canonical channel name that was used to create the channel\n"
+" ${AVAILSTATUS} is the status code for the channel\n"
"If the option 's' is specified (state), will consider channel unavailable\n"
"when the channel is in use at all, even if it can take another call.\n"
-"If the option 'j' is specified (jump), the application will jump to n+101 \n"
-"(unless such a priority does not exist, in which case ChanIsAvail will return -1)\n";
+"If none of the requested channels are available, then:\n"
+" if the option 'j' is specified (jump), the application will jump to n+101\n"
+" if it exists, otherwise the call will terminate\n"
+" if the option 'j' is not specified the dialplan will continue and\n"
+" ${AVAILCHAN} will be empty\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c
index 41e060642..47b82ac4e 100755
--- a/apps/app_controlplayback.c
+++ b/apps/app_controlplayback.c
@@ -48,16 +48,15 @@ static const char *synopsis = "Play a file with fast forward and rewind";
static const char *descrip =
"ControlPlayback(filename[|skipms[|ffchar[|rewchar[|stopchar[|pausechar[|restartchar[|option]]]]]]]):\n"
-" Plays back a given filename (do not put extension). Options may also\n"
+" Plays back a given filename (do not put extension). Options may also\n"
" be included following a pipe symbol. You can use * and # to rewind and\n"
" fast forward the playback specified. If 'stopchar' is added the file will\n"
" terminate playback when 'stopchar' is pressed. If 'restartchar' is added, the file\n"
-" will restart when 'restartchar' is pressed. Returns -1 if the channel\n"
-" was hung up. \n\n"
-" The option string may contain zero or the following character:\n"
+" will restart when 'restartchar' is pressed.\n"
+" The option string may contain the following character:\n"
" 'j' -- jump to +101 priority if the file requested isn't found.\n"
" This application sets the following channel variable upon completion:\n"
-" CPLAYBACKSTATUS The status of the attempt to add a queue member as a text string, one of\n"
+" CPLAYBACKSTATUS The status of the attempt as a text string, one of\n"
" SUCCESS | USERSTOPPED | ERROR\n"
" Example: exten => 1234,1,ControlPlayback(file|4000|*|#|1|0|5)\n\n";
diff --git a/apps/app_curl.c b/apps/app_curl.c
index 7b2a962af..07a26d978 100755
--- a/apps/app_curl.c
+++ b/apps/app_curl.c
@@ -48,7 +48,7 @@ static char *synopsis = "Load an external URL";
static char *descrip =
" Curl(URL[|postdata]): Requests the URL. Mainly used for signalling\n"
-"external applications of an event. Returns 0 or -1 on fatal error.\n"
+"external applications of an event. Curl will fail on fatal errors. \n"
"Argument specified treated as POST data. Also sets CURL variable with the\n"
"resulting page.\n";
diff --git a/apps/app_cut.c b/apps/app_cut.c
index 7d210df28..718583ec7 100755
--- a/apps/app_cut.c
+++ b/apps/app_cut.c
@@ -56,7 +56,7 @@ static char *cut_descrip =
" fieldspec - number of the field you want (1-based offset)\n"
" may also be specified as a range (with -)\n"
" or group of ranges and fields (with &)\n"
-" Returns 0 or -1 on hangup or error.\n";
+" The process with complete on success or fail on hangup or error\n";
static char *app_sort = "Sort";
static char *app_sort_synopsis = "Sorts a list of keywords and values";
@@ -64,7 +64,7 @@ static char *app_sort_descrip =
" Sort(<newvar>=<key1>:<val1>[,<key2>:<val2>[[...],<keyN>:<valN>]])\n"
"Sorts the list provided by using the value as a float to order the list of\n"
"keywords in ascending order. Sets the variable provided to the list of\n"
-"sorted keywords. Always returns 0.\n";
+"sorted keywords. \n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_datetime.c b/apps/app_datetime.c
index c384e3c88..d5414a416 100755
--- a/apps/app_datetime.c
+++ b/apps/app_datetime.c
@@ -45,8 +45,8 @@ static char *app = "DateTime";
static char *synopsis = "Say the date and time";
static char *descrip =
-" DateTime(): Says the current date and time. Returns -1 on hangup or 0\n"
-"otherwise.\n";
+" DateTime(): Says the current date and time. Terminates on hangup or\n"
+"completion.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_db.c b/apps/app_db.c
index c0e83969d..60d25f0e6 100755
--- a/apps/app_db.c
+++ b/apps/app_db.c
@@ -48,24 +48,23 @@ static char *tdesc = "Database access functions for Asterisk extension logic";
static char *g_descrip =
" DBget(varname=family/key[|options]): Retrieves a value from the Asterisk\n"
- "database and stores it in the given variable. Always returns 0. \n"
- " The option string may contain zero or the following character:\n"
- " 'j' -- jump to +101 priority if the file requested family/key isn't found.\n"
+ "database and stores it in the given variable.\n"
+ " The option string may contain the following character:\n"
+ " 'j' -- jump to +101 priority if the requested family/key isn't found.\n"
" This application sets the following channel variable upon completion:\n"
- " DBGETSTATUS The status of the attempt to add a queue member as a text string, one of\n"
+ " DBGETSTATUS The status of the attempt as a text string, one of\n"
" FOUND | NOTFOUND \n";
static char *p_descrip =
" DBput(family/key=value): Stores the given value in the Asterisk\n"
- "database. Always returns 0.\n";
+ "database.\n";
static char *d_descrip =
- " DBdel(family/key): Deletes a key from the Asterisk database. Always\n"
- "returns 0.\n";
+ " DBdel(family/key): Deletes a key from the Asterisk database.\n";
static char *dt_descrip =
" DBdeltree(family[/keytree]): Deletes a family or keytree from the Asterisk\n"
- "database. Always returns 0.\n";
+ "database.\n";
static char *g_app = "DBget";
static char *p_app = "DBput";
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 75b51299f..7aa042b8c 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -70,14 +70,14 @@ static char *descrip =
"which first answered. All other calls placed by the Dial app will be hung up.\n"
"If a timeout is not specified, the Dial application will wait indefinitely\n"
"until either one of the called channels answers, the user hangs up, or all\n"
-"channels return busy or error. In general, the dialer will return 0 if it\n"
-"was unable to place the call, or the timeout expired. \n"
+"channels return busy or error. The dialplan will continue execution if the\n"
+"the calls cannot be placed, or if the timeout expires.\n"
" For the Privacy and Screening Modes, the DIALSTATUS variable will be set to DONTCALL, \n"
"if the called party chooses to send the calling party to the 'Go Away' script, and \n"
"the DIALSTATUS variable will be set to TORTURE, if the called party wants to send the caller to \n"
"the TORTURE scripts\n"
-" This application returns -1 if the originating channel hangs up, or if the\n"
-"call is bridged and either of the parties in the bridge terminate the call.\n"
+" This application will report normal termination if the originating channel hangs up, or if the\n"
+"call is bridged and either of the parties in the bridge ends the call.\n"
"The option string may contain zero or more of the following characters:\n"
" 'A(x)' -- play an announcement to the called party, using x as file\n"
" 'C' -- reset call detail record for this call.\n"
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 75b724e6c..3e4472f7c 100755
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -49,14 +49,13 @@ static char *synopsis = "Provide directory of voicemail extensions";
static char *descrip =
" Directory(vm-context[|dial-context[|options]]): Presents the user with a directory\n"
"of extensions from which they may select by name. The list of names \n"
-"and extensions is discovered from voicemail.conf. The vm-context argument\n"
+"and extensions are retrieved from voicemail.conf. The vm-context argument\n"
"is required, and specifies the context of voicemail.conf to use. The\n"
"dial-context is the context to use for dialing the users, and defaults to\n"
"the vm-context if unspecified. The 'f' option causes the directory to match\n"
"based on the first name in voicemail.conf instead of the last name.\n"
-"Returns 0 unless the user hangs up. It also sets up the channel on exit\n"
-"to enter the extension the user selected. If the user enters '0' and there\n"
-"exists an extension 'o' in the current context, the directory will exit with 0\n"
+"The query should yield a contact unless the caller disconnects.\n"
+"It also sets up the channel on exit to enter the extension the user selected.\n" "If the user enters '0' and there exists an extension 'o' in the current \n"" context, the directory will contact the extension associated with 'o'\n"
"and call control will resume at that extension. Entering '*' will exit similarly,\n"
"but to the 'a' extension, much like app_voicemail's behavior.\n";
diff --git a/apps/app_disa.c b/apps/app_disa.c
index 7cd9db8bb..8a26ba55f 100755
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -95,7 +95,6 @@ static char *descrip =
"If the user enters an invalid extension and extension \"i\" (invalid) \n"
"exists in the context, it will be used.\n";
-
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c
index 3bdce81f7..15fb3baba 100755
--- a/apps/app_dumpchan.c
+++ b/apps/app_dumpchan.c
@@ -51,7 +51,7 @@ static char *desc =
"Displays information on channel and listing of all channel\n"
"variables. If min_verbose_level is specified, output is only\n"
"displayed when the verbose level is currently set to that number\n"
-"or greater. Always returns 0.\n\n";
+"or greater. \n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_echo.c b/apps/app_echo.c
index 2674d717b..1fbfba5ef 100755
--- a/apps/app_echo.c
+++ b/apps/app_echo.c
@@ -45,8 +45,9 @@ static char *app = "Echo";
static char *synopsis = "Echo audio read back to the user";
static char *descrip =
-" Echo(): Echo audio read from channel back to the channel. Returns 0\n"
-"if the user exits with the '#' key, or -1 if the user hangs up.\n";
+" Echo(): Echo audio read from channel back to the channel. \n"
+"User can exit the application by either pressing the '#' key, \n"
+"or hanging up.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c
index cc07ea712..6ff2141b0 100755
--- a/apps/app_enumlookup.c
+++ b/apps/app_enumlookup.c
@@ -55,7 +55,6 @@ static char *descrip =
" EnumLookup(exten[|option]): Looks up an extension via ENUM and sets\n"
"the variable 'ENUM'. For VoIP URIs this variable will \n"
"look like 'TECHNOLOGY/URI' with the appropriate technology.\n"
-"Returns -1 on hangup, or 0 on completion\n"
"Currently, the enumservices SIP, H323, IAX, IAX2 and TEL are recognized. \n"
"\nReturns status in the ENUMSTATUS channel variable:\n"
" ERROR Failed to do a lookup\n"
diff --git a/apps/app_flash.c b/apps/app_flash.c
index 8ffe8497a..9a53dd382 100755
--- a/apps/app_flash.c
+++ b/apps/app_flash.c
@@ -56,8 +56,7 @@ static char *synopsis = "Flashes a Zap Trunk";
static char *descrip =
" Flash(): Sends a flash on a zap trunk. This is only a hack for\n"
"people who want to perform transfers and such via AGI and is generally\n"
-"quite useless otherwise. Returns 0 on success or -1 if this is not\n"
-"a zap trunk\n";
+"quite useless oths application will only work on Zap trunks.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_getcpeid.c b/apps/app_getcpeid.c
index 8ab85241e..0eb16917a 100755
--- a/apps/app_getcpeid.c
+++ b/apps/app_getcpeid.c
@@ -48,8 +48,7 @@ static char *synopsis = "Get ADSI CPE ID";
static char *descrip =
" GetCPEID: Obtains and displays ADSI CPE ID and other information in order\n"
-"to properly setup zapata.conf for on-hook operations.\n"
-"Returns -1 on hangup only.\n";
+"to properly setup zapata.conf for on-hook operations.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c
index 95aa92781..aa848c2d5 100755
--- a/apps/app_groupcount.c
+++ b/apps/app_groupcount.c
@@ -256,7 +256,7 @@ static char *group_count_descrip =
"Usage: GetGroupCount([groupname][@category])\n"
" Calculates the group count for the specified group, or uses\n"
"the current channel's group if not specifed (and non-empty).\n"
-"Stores result in GROUPCOUNT. Always returns 0.\n"
+"Stores result in GROUPCOUNT. \n"
"This application has been deprecated, please use the function\n"
"GroupCount.\n";
diff --git a/apps/app_ices.c b/apps/app_ices.c
index 61fc18156..4c1505584 100755
--- a/apps/app_ices.c
+++ b/apps/app_ices.c
@@ -57,8 +57,7 @@ static char *synopsis = "Encode and stream using 'ices'";
static char *descrip =
" ICES(config.xml) Streams to an icecast server using ices\n"
"(available separately). A configuration file must be supplied\n"
-"for ices (see examples/asterisk-ices.conf). Returns -1 on\n"
-"hangup or 0 otherwise.\n";
+"for ices (see examples/asterisk-ices.conf). \n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_image.c b/apps/app_image.c
index f2e8dcb71..3e0f858d2 100755
--- a/apps/app_image.c
+++ b/apps/app_image.c
@@ -49,12 +49,13 @@ static char *synopsis = "Send an image file";
static char *descrip =
" SendImage(filename): Sends an image on a channel. \n"
-"SendImage only returns 0 if the image was sent correctly or if\n"
-"the channel does not support image transport, and -1 otherwise.\n"
-"The option string may contain zero or the following character:\n"
+"If the channel supports image transport but the image send\n"
+"fails, the channel will be hung up. Otherwise, the dialplan\n"
+"continues execution.\n"
+"The option string may contain the following character:\n"
" 'j' -- jump to priority n+101 if the channel doesn't support image transport\n"
"This application sets the following channel variable upon completion:\n"
-" SENDIMAGESTATUS The status is the attempt to send an image as a text string, one of\n"
+" SENDIMAGESTATUS The status is the result of the attempt as a text string, one of\n"
" OK | NOSUPPORT \n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_intercom.c b/apps/app_intercom.c
index ac2e897b4..71442a247 100755
--- a/apps/app_intercom.c
+++ b/apps/app_intercom.c
@@ -68,8 +68,7 @@ static char *app = "Intercom";
static char *synopsis = "(Obsolete) Send to Intercom";
static char *descrip =
" Intercom(): Sends the user to the intercom (i.e. /dev/dsp). This program\n"
-"is generally considered obselete by the chan_oss module. Returns 0 if the\n"
-"user exits with a DTMF tone, or -1 if they hangup.\n";
+"is generally considered obselete by the chan_oss module. User can terminate\n"with a DTMF tone, or by hangup.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_lookupblacklist.c b/apps/app_lookupblacklist.c
index fa5d48116..93d3c8c49 100755
--- a/apps/app_lookupblacklist.c
+++ b/apps/app_lookupblacklist.c
@@ -53,14 +53,12 @@ static char *synopsis = "Look up Caller*ID name/number from blacklist database";
static char *descrip =
" LookupBlacklist(options): Looks up the Caller*ID number on the active\n"
"channel in the Asterisk database (family 'blacklist'). \n"
- "Returns 0. Does nothing if no Caller*ID was received on the\n"
- "channel.\n"
- "The option string may contain zero or the following character:\n"
+ "The option string may contain the following character:\n"
" 'j' -- jump to n+101 priority if the number/name is found in the blacklist\n"
"This application sets the following channel variable upon completion:\n"
" LOOKUPBLSTATUS The status of the Blacklist lookup as a text string, one of\n"
" FOUND | NOTFOUND\n"
- "Example: database put blacklist <name/number> 1\n";
+ "Example: exten => 1234,1,LookupBlacklist()\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_lookupcidname.c b/apps/app_lookupcidname.c
index ca6d3e896..bce2768f4 100755
--- a/apps/app_lookupcidname.c
+++ b/apps/app_lookupcidname.c
@@ -54,7 +54,7 @@ static char *descrip =
"Caller*ID name. Does nothing if no Caller*ID was received on the\n"
"channel. This is useful if you do not subscribe to Caller*ID\n"
"name delivery, or if you want to change the names on some incoming\n"
- "calls. Always returns 0.\n";
+ "calls.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_macro.c b/apps/app_macro.c
index ac9355473..6d99a79ca 100755
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -58,7 +58,6 @@ static char *descrip =
"${ARG1}, ${ARG2}, etc in the macro context.\n"
"If you Goto out of the Macro context, the Macro will terminate and control\n"
"will be returned at the location of the Goto.\n"
-"Macro returns -1 if any step in the macro returns -1, and 0 otherwise.\n"
"If ${MACRO_OFFSET} is set at termination, Macro will attempt to continue\n"
"at priority MACRO_OFFSET + N + 1 if such a step exists, and N + 1 otherwise.\n";
diff --git a/apps/app_math.c b/apps/app_math.c
index e79219cee..f1be8d4d1 100755
--- a/apps/app_math.c
+++ b/apps/app_math.c
@@ -69,7 +69,7 @@ static char *math_descrip =
"Perform floating point calculation on number 1 to number 2 and \n"
"store the result in returnvar. Valid ops are: \n"
" +,-,/,*,%,<,>,>=,<=,==\n"
-"and behave as their C equivalents. Always returns 0.\n";
+"and behave as their C equivalents.\n";
#define ADDFUNCTION 0
#define DIVIDEFUNCTION 1
diff --git a/apps/app_md5.c b/apps/app_md5.c
index 85fb803e8..b9d5412b1 100755
--- a/apps/app_md5.c
+++ b/apps/app_md5.c
@@ -46,7 +46,7 @@ static char *app_md5 = "MD5";
static char *desc_md5 = "Calculate MD5 checksum";
static char *synopsis_md5 =
" MD5(<var>=<string>): Calculates a MD5 checksum on <string>.\n"
-"Returns hash value in a channel variable. Always return 0\n";
+"Returns hash value in a channel variable. \n";
static char *app_md5check = "MD5Check";
static char *desc_md5check = "Check MD5 checksum";
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 5af4f7cbd..bca2ad972 100755
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -69,7 +69,7 @@ static char *descrip =
" MeetMe([confno][,[options][,pin]]): Enters the user into a specified MeetMe conference.\n"
"If the conference number is omitted, the user will be prompted to enter\n"
"one. \n"
-"MeetMe returns 0 if user pressed # to exit (see option 'p'), otherwise -1.\n"
+"User can exit the conference by hangup, or if the 'p' option is specified, by pressing '#'.\n"
"Please note: A ZAPTEL INTERFACE MUST BE INSTALLED FOR CONFERENCING TO WORK!\n\n"
"The option string may contain zero or more of the following characters:\n"
@@ -103,9 +103,10 @@ static char *descrip =
" if that variable is not defined.\n";
static char *descrip2 =
-" MeetMeCount(confno[|var]): Plays back the number of users in the specifiedi\n"
+" MeetMeCount(confno[|var]): Plays back the number of users in the specified\n"
"MeetMe conference. If var is specified, playback will be skipped and the value\n"
-"will be returned in the variable. Returns 0 on success or -1 on a hangup.\n"
+"will be returned in the variable. Upon app completion, MeetMeCount will hangup the\n"
+"channel, unless priority n+1 exists, in which case priority progress will continue.\n"
"A ZAPTEL INTERFACE MUST BE INSTALLED FOR CONFERENCING FUNCTIONALITY.\n";
static char *descrip3 =
diff --git a/apps/app_mp3.c b/apps/app_mp3.c
index 3a44067e0..ee78840ec 100755
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -54,9 +54,9 @@ static char *app = "MP3Player";
static char *synopsis = "Play an MP3 file or stream";
static char *descrip =
-" MP3Player(location) Executes mpg123 to play the given location\n"
-"which typically would be a filename o a URL. User can exit by pressing any key\n."
-"Returns -1 on hangup or 0 otherwise.";
+" MP3Player(location) Executes mpg123 to play the given location,\n"
+"which typically would be a filename or a URL. User can exit by pressing\n"
+"any key on the dialpad, or by hanging up.";
STANDARD_LOCAL_USER;
diff --git a/apps/app_nbscat.c b/apps/app_nbscat.c
index 97af96755..e1fb921c4 100755
--- a/apps/app_nbscat.c
+++ b/apps/app_nbscat.c
@@ -60,8 +60,7 @@ static char *synopsis = "Play an NBS local stream";
static char *descrip =
" NBScat: Executes nbscat to listen to the local NBS stream.\n"
-"Returns -1 on\n hangup or 0 otherwise. User can exit by \n"
-"pressing any key\n.";
+"User can exit by pressing any key\n.";
STANDARD_LOCAL_USER;
diff --git a/apps/app_page.c b/apps/app_page.c
index 218c9b2a5..441208fd9 100755
--- a/apps/app_page.c
+++ b/apps/app_page.c
@@ -54,9 +54,8 @@ static const char *page_descrip =
"them into a conference bridge as muted participants. The original\n"
"caller is dumped into the conference as a speaker and the room is\n"
"destroyed when the original caller leaves. Valid options are:\n"
-" d - full duplex audio\n"
-" q - quiet, do not play beep to caller\n"
-"Always returns -1.\n";
+" d - full duplex audio\n"
+" q - quiet, do not play beep to caller\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_playback.c b/apps/app_playback.c
index 2f280c950..87bb653e9 100755
--- a/apps/app_playback.c
+++ b/apps/app_playback.c
@@ -51,10 +51,9 @@ static char *descrip =
"option causes the playback of the message to be skipped if the channel\n"
"is not in the 'up' state (i.e. it hasn't been answered yet. If 'skip' is \n"
"specified, the application will return immediately should the channel not be\n"
-"off hook. Otherwise, unless 'noanswer' is specified, the channel channel will\n"
+"off hook. Otherwise, unless 'noanswer' is specified, the channel will\n"
"be answered before the sound is played. Not all channels support playing\n"
-"messages while still hook. Returns -1 if the channel was hung up. If the\n"
-"file does not exist, will jump to priority n+101 if present.\n";
+"messages while still hook. If the file does not exist, will jump to priority n+101 if present.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_privacy.c b/apps/app_privacy.c
index e41178950..bfcbe7f05 100755
--- a/apps/app_privacy.c
+++ b/apps/app_privacy.c
@@ -59,7 +59,7 @@ static char *descrip =
"at least a 10 digit phone number, and if there exists a priority n + 101,\n"
"where 'n' is the priority of the current instance, then the\n"
"channel will be setup to continue at that priority level.\n"
- "Otherwise, it returns 0. Does nothing if Caller*ID was received on the\n"
+ "Otherwise, the call is hungup. Does nothing if Caller*ID was received on the\n"
"channel.\n"
" Configuration file privacy.conf contains two variables:\n"
" maxretries default 3 -maximum number of attempts the caller is allowed to input a callerid.\n"
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 1047d21e3..7fcffd71c 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -125,9 +125,8 @@ static char *synopsis = "Queue a call for a call queue";
static char *descrip =
" Queue(queuename[|options[|URL][|announceoverride][|timeout]]):\n"
"Queues an incoming call in a particular call queue as defined in queues.conf.\n"
-" This application returns -1 if the originating channel hangs up, or if the\n"
-"call is bridged and either of the parties in the bridge terminate the call.\n"
-"Returns 0 if the queue is full, nonexistent, or has no members.\n"
+"This application will return to the dialplan if the queue does not exist, or\n"
+"any of the join options cause the caller to not enter the queue.\n"
"The option string may contain zero or more of the following characters:\n"
" 'd' -- data-quality (modem) call (minimum delay).\n"
" 'h' -- allow callee to hang up by hitting *.\n"
@@ -156,7 +155,6 @@ static char *app_aqm_descrip =
"Dynamically adds interface to an existing queue.\n"
"If the interface is already in the queue and there exists an n+101 priority\n"
"then it will then jump to this priority. Otherwise it will return an error\n"
-"Returns -1 if there is an error.\n"
"Example: AddQueueMember(techsupport|SIP/3000)\n"
"";
@@ -167,7 +165,6 @@ static char *app_rqm_descrip =
"Dynamically removes interface to an existing queue\n"
"If the interface is NOT in the queue and there exists an n+101 priority\n"
"then it will then jump to this priority. Otherwise it will return an error\n"
-"Returns -1 if there is an error.\n"
"Example: RemoveQueueMember(techsupport|SIP/3000)\n"
"";
@@ -182,8 +179,8 @@ static char *app_pqm_descrip =
"queuename is given, the interface is paused in every queue it is a\n"
"member of. If the interface is not in the named queue, or if no queue\n"
"is given and the interface is not in any queue, it will jump to\n"
-" priority n+101, if it exists. Returns -1 if the interface is not\n"
-"found and no extension to jump to exists, 0 otherwise.\n"
+" priority n+101, if it exists. The application will fail if the interface is not\n"
+"found and no extension to jump to exists.\n"
"Example: PauseQueueMember(|SIP/3000)\n";
static char *app_upqm = "UnpauseQueueMember" ;
diff --git a/apps/app_read.c b/apps/app_read.c
index bae0440f8..e024a5c38 100755
--- a/apps/app_read.c
+++ b/apps/app_read.c
@@ -62,7 +62,7 @@ static char *descrip =
" attempts -- if greater than 1, that many attempts will be made in the \n"
" event no data is entered.\n"
" timeout -- if greater than 0, that value will override the default timeout.\n\n"
-"Returns -1 on hangup or error and 0 otherwise.\n";
+"Read should disconnect if the function fails or errors out.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_record.c b/apps/app_record.c
index c856f344b..31905a6c6 100755
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -66,7 +66,8 @@ static char *descrip =
"incremented by one each time the file is recorded. \n\n"
"Use 'show file formats' to see the available formats on your system\n\n"
"User can press '#' to terminate the recording and continue to the next priority.\n\n"
-"Returns -1 when the user hangs up.\n";
+"If the user should hangup during a recording, all data will be lost and the\n"
+"application will teminate. \n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c
index 1f9244607..fc9cd25bf 100755
--- a/apps/app_sayunixtime.c
+++ b/apps/app_sayunixtime.c
@@ -54,8 +54,7 @@ static char *sayunixtime_descrip =
" timezone: timezone, see /usr/share/zoneinfo for a list.\n"
" defaults to machine default.\n"
" format: a format the time is to be said in. See voicemail.conf.\n"
-" defaults to \"ABdY 'digits/at' IMp\"\n"
-" Returns 0 or -1 on hangup.\n";
+" defaults to \"ABdY 'digits/at' IMp\"\n";
static char *datetime_descrip =
"DateTime([unixtime][|[timezone][|format]])\n"
" unixtime: time, in seconds since Jan 1, 1970. May be negative.\n"
@@ -63,8 +62,7 @@ static char *datetime_descrip =
" timezone: timezone, see /usr/share/zoneinfo for a list.\n"
" defaults to machine default.\n"
" format: a format the time is to be said in. See voicemail.conf.\n"
-" defaults to \"ABdY 'digits/at' IMp\"\n"
-" Returns 0 or -1 on hangup.\n";
+" defaults to \"ABdY 'digits/at' IMp\"\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_senddtmf.c b/apps/app_senddtmf.c
index b0c9dc07a..41ba1bbc4 100755
--- a/apps/app_senddtmf.c
+++ b/apps/app_senddtmf.c
@@ -48,9 +48,10 @@ static char *app = "SendDTMF";
static char *synopsis = "Sends arbitrary DTMF digits";
static char *descrip =
-" SendDTMF(digits[|timeout_ms]): Sends DTMF digits on a channel. \n"
-" Accepted digits: 0-9, *#abcd\n"
-" Returns 0 on success or -1 on a hangup.\n";
+" SendDTMF(digits[|timeout_ms]): Sends DTMF digits on a channel. \n"
+" Accepted digits: 0-9, *#abcd\n"
+" The application will either pass the assigned digits or terminate if it\n"
+" encounters an error.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c
index 252c95747..a8e3f24aa 100755
--- a/apps/app_sendtext.c
+++ b/apps/app_sendtext.c
@@ -59,8 +59,7 @@ static const char *descrip =
"\n"
"At this moment, text is supposed to be 7 bit ASCII in most channels.\n"
"Old deprecated behavior: \n"
-" SendText only returns 0 if the text was sent correctly or if\n"
-" the channel does not support text transport.\n"
+" SendText should continue with the next priority upon successful execution.\n"
" If the client does not support text transport, and there exists a\n"
" step with priority n + 101, then execution will continue at that step.\n";
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c
index 272d18926..2d01ccfa3 100755
--- a/apps/app_setcallerid.c
+++ b/apps/app_setcallerid.c
@@ -50,7 +50,7 @@ LOCAL_USER_DECL;
static char *descrip2 =
" SetCallerPres(presentation): Set Caller*ID presentation on a call.\n"
-" Always returns 0. Valid presentations are:\n"
+" Valid presentations are:\n"
"\n"
" allowed_not_screened : Presentation Allowed, Not Screened\n"
" allowed_passed_screen : Presentation Allowed, Passed Screen\n"
@@ -95,7 +95,7 @@ static char *synopsis = "Set CallerID";
static char *descrip =
" SetCallerID(clid[|a]): Set Caller*ID on a call to a new\n"
-"value. Sets ANI as well if a flag is used. Always returns 0\n";
+"value. Sets ANI as well if a flag is used. \n";
static int setcallerid_exec(struct ast_channel *chan, void *data)
{
diff --git a/apps/app_setcdruserfield.c b/apps/app_setcdruserfield.c
index 460bbc33e..c477663dc 100755
--- a/apps/app_setcdruserfield.c
+++ b/apps/app_setcdruserfield.c
@@ -52,8 +52,7 @@ static char *setcdruserfield_descrip =
" can use for data not stored anywhere else in the record.\n"
" CDR records can be used for billing or storing other arbitrary data\n"
" (I.E. telephone survey responses)\n"
- " Also see AppendCDRUserField().\n"
- " Always returns 0\n";
+ " Also see AppendCDRUserField().\n";
static char *setcdruserfield_app = "SetCDRUserField";
@@ -68,8 +67,7 @@ static char *appendcdruserfield_descrip =
" can use for data not stored anywhere else in the record.\n"
" CDR records can be used for billing or storing other arbitrary data\n"
" (I.E. telephone survey responses)\n"
- " Also see SetCDRUserField().\n"
- " Always returns 0\n";
+ " Also see SetCDRUserField().\n";
static char *appendcdruserfield_app = "AppendCDRUserField";
static char *appendcdruserfield_synopsis = "Append to the CDR user field";
diff --git a/apps/app_setcidname.c b/apps/app_setcidname.c
index 41dfda706..2cb5896a0 100755
--- a/apps/app_setcidname.c
+++ b/apps/app_setcidname.c
@@ -51,7 +51,7 @@ static char *descrip =
" SetCIDName(cname[|a]): Set Caller*ID Name on a call to a new\n"
"value, while preserving the original Caller*ID number. This is\n"
"useful for providing additional information to the called\n"
-"party. Always returns 0\n"
+"party. \n"
"SetCIDName has been deprecated in favor of the function\n"
"CALLERID(name)\n";
diff --git a/apps/app_setcidnum.c b/apps/app_setcidnum.c
index d3129441f..95ea2c0eb 100755
--- a/apps/app_setcidnum.c
+++ b/apps/app_setcidnum.c
@@ -52,7 +52,7 @@ static char *descrip =
" SetCIDNum(cnum[|a]): Set Caller*ID Number on a call to a new\n"
"value, while preserving the original Caller*ID name. This is\n"
"useful for providing additional information to the called\n"
-"party. Sets ANI as well if a flag is used. Always returns 0\n"
+"party. Sets ANI as well if a flag is used.\n"
"SetCIDNum has been deprecated in favor of the function\n"
"CALLERID(number)\n";
diff --git a/apps/app_setrdnis.c b/apps/app_setrdnis.c
index 992732bf7..f7f01c2e6 100755
--- a/apps/app_setrdnis.c
+++ b/apps/app_setrdnis.c
@@ -50,7 +50,7 @@ static char *synopsis = "Set RDNIS Number";
static char *descrip =
" SetRDNIS(cnum): Set RDNIS Number on a call to a new\n"
-"value. Always returns 0\n"
+"value.\n"
"SetRDNIS has been deprecated in favor of the function\n"
"CALLERID(rdnis)\n";
diff --git a/apps/app_settransfercapability.c b/apps/app_settransfercapability.c
index 5ee1ab831..5a9614afa 100755
--- a/apps/app_settransfercapability.c
+++ b/apps/app_settransfercapability.c
@@ -58,7 +58,7 @@ static struct { int val; char *name; } transcaps[] = {
static char *descrip =
" SetTransferCapability(transfercapability): Set the ISDN Transfer \n"
"Capability of a call to a new value.\n"
-"Always returns 0. Valid Transfer Capabilities are:\n"
+"Valid Transfer Capabilities are:\n"
"\n"
" SPEECH : 0x00 - Speech (default, voice calls)\n"
" DIGITAL : 0x08 - Unrestricted digital information (data calls)\n"
diff --git a/apps/app_sms.c b/apps/app_sms.c
index c6d44941b..cf47d6d9d 100755
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -67,8 +67,7 @@ static char *synopsis = "Communicates with SMS service centres and SMS capable a
static char *descrip =
" SMS(name|[a][s]): SMS handles exchange of SMS data with a call to/from SMS capabale\n"
- "phone or SMS PSTN service centre. Can send and/or receive SMS messages.\n"
- "Returns 0 if call handled correctly, or -1 if there were any problems.\n"
+ "phone or SMS PSTN service center. Can send and/or receive SMS messages.\n"
"Works to ETSI ES 201 912 compatible with BT SMS PSTN service in UK\n"
"Typical usage is to use to handle called from the SMS service centre CLI,\n"
"or to set up a call using 'outgoing' or manager interface to connect\n"
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c
index d8eb6f3b4..e9b0f24f3 100755
--- a/apps/app_softhangup.c
+++ b/apps/app_softhangup.c
@@ -44,7 +44,8 @@ static char *synopsis = "Soft Hangup Application";
static char *tdesc = "Hangs up the requested channel";
static char *desc = " SoftHangup(Technology/resource|options)\n"
-"Hangs up the requested channel. Always returns 0\n"
+"Hangs up the requested channel. If there are no channels to hangup,\n"
+"the application will report it.\n"
"- 'options' may contain the following letter:\n"
" 'a' : hang up all channels on a specified device instead of a single resource\n";
diff --git a/apps/app_striplsd.c b/apps/app_striplsd.c
index 88810576d..e9053946f 100755
--- a/apps/app_striplsd.c
+++ b/apps/app_striplsd.c
@@ -44,8 +44,7 @@ static char *tdesc = "Strip trailing digits";
static char *descrip =
" StripLSD(count): Strips the trailing 'count' digits from the channel's\n"
"associated extension. For example, the number 5551212 when stripped with a\n"
-"count of 4 would be changed to 555. This app always returns 0, and the PBX\n"
-"will continue processing at the next priority for the *new* extension.\n"
+"count of 4 would be changed to 555. The PBX will continue processing at the\n""next priority for the *new* extension.\n"
" So, for example, if priority 3 of 5551212 is StripLSD 4, the next step\n"
"executed will be priority 4 of 555. If you switch into an extension which\n"
"has no first step, the PBX will treat it as though the user dialed an\n"
diff --git a/apps/app_system.c b/apps/app_system.c
index c21c0ed9b..5d5216960 100755
--- a/apps/app_system.c
+++ b/apps/app_system.c
@@ -55,8 +55,8 @@ static char *synopsis2 = "Try executing a system command";
static char *chanvar = "SYSTEMSTATUS";
static char *descrip =
-" System(command): Executes a command by using system(). Returns -1 on\n"
-"failure to execute the specified command. \n"
+" System(command): Executes a command by using system(). If the command\n"
+"fails, the console should report a fallthrough. \n"
"Result of execution is returned in the SYSTEMSTATUS channel variable:\n"
" FAILURE Could not execute the specified command\n"
" SUCCESS Specified command successfully executed\n"
@@ -66,11 +66,10 @@ static char *descrip =
"a priority n + 101, where 'n' is the priority of the current instance,\n"
"then the channel will be setup to continue at that priority level.\n"
"Note that this jump functionality has been deprecated and will only occur\n"
-"if the global priority jumping option is enabled in extensions.conf.\n"
-" Otherwise, System returns 0.\n";
+"if the global priority jumping option is enabled in extensions.conf.\n";
static char *descrip2 =
-" TrySystem(command): Executes a command by using system(). Returns 0\n"
+" TrySystem(command): Executes a command by using system().\n"
"on any situation.\n"
"Result of execution is returned in the SYSTEMSTATUS channel variable:\n"
" FAILURE Could not execute the specified command\n"
@@ -80,7 +79,7 @@ static char *descrip2 =
"Old behaviour:\nIf the command itself executes but is in error, and if\n"
"there exists a priority n + 101, where 'n' is the priority of the current\n"
"instance, then the channel will be setup to continue at that\n"
-"priority level. Otherwise, System returns 0.\n";
+"priority level. Otherwise, System will terminate.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c
index 7f197ce88..30e27e3e0 100755
--- a/apps/app_talkdetect.c
+++ b/apps/app_talkdetect.c
@@ -55,8 +55,7 @@ static char *descrip =
"yet less than 'max' ms is followed by silence for at least 'sil' ms then\n"
"the audio playback is aborted and processing jumps to the 'talk' extension\n"
"if available. If unspecified, sil, min, and max default to 1000, 100, and\n"
-"infinity respectively. Returns -1 on hangup, and 0 on successful playback\n"
-"completion with no exit conditions.\n";
+"infinity respectively.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_verbose.c b/apps/app_verbose.c
index f8532ff24..6ed1e4820 100755
--- a/apps/app_verbose.c
+++ b/apps/app_verbose.c
@@ -46,8 +46,7 @@ static char *verbose_synopsis = "Send arbitrary text to verbose output";
static char *verbose_descrip =
"Verbose([<level>|]<message>)\n"
-" level must be an integer value. If not specified, defaults to 0."
-" Always returns 0.\n";
+" level must be an integer value. If not specified, defaults to 0.\n";
STANDARD_LOCAL_USER;
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 975ffe58e..c6c6f8ae7 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -308,8 +308,7 @@ static char *descrip_vm =
"and there exists a priority n + 101, then that priority will be taken next.\n"
"When multiple mailboxes are specified, the unavailable or busy message\n"
"will be taken from the first mailbox specified.\n"
-"Returns -1 on error or mailbox not found, or if the user hangs up.\n"
-"Otherwise, it returns 0.\n";
+"Execution will fail if the mailbox does not exist, or if the user disconnects.\n";
static char *synopsis_vmain =
"Enter voicemail system";
diff --git a/apps/app_zapateller.c b/apps/app_zapateller.c
index e3d55c056..00fb64787 100755
--- a/apps/app_zapateller.c
+++ b/apps/app_zapateller.c
@@ -46,10 +46,10 @@ static char *synopsis = "Block telemarketers with SIT";
static char *descrip =
" Zapateller(options): Generates special information tone to block\n"
-"telemarketers from calling you. Returns 0 normally or -1 on hangup.\n"
-"Options is a pipe-delimited list of options. The following options\n"
-"are available: 'answer' causes the line to be answered before playing\n"
-"the tone, 'nocallerid' causes Zapateller to only play the tone if there\n"
+"telemarketers from calling you. Options is a pipe-delimited list of\n"
+"options. The following options are available:\n"
+"'answer' causes the line to be answered before playing the tone,\n"
+"'nocallerid' causes Zapateller to only play the tone if there\n"
"is no callerid information available. Options should be separated by |\n"
"characters\n";
diff --git a/apps/app_zapras.c b/apps/app_zapras.c
index a36191455..4a94f34ba 100755
--- a/apps/app_zapras.c
+++ b/apps/app_zapras.c
@@ -69,7 +69,7 @@ static char *descrip =
"The channel must be a clear channel (i.e. PRI source) and a Zaptel\n"
"channel to be able to use this function (No modem emulation is included).\n"
"Your pppd must be patched to be zaptel aware. Arguments should be\n"
-"separated by | characters. Always returns -1.\n";
+"separated by | characters.\n";
STANDARD_LOCAL_USER;