Index: res/res_agi.c =================================================================== RCS file: /usr/cvsroot/asterisk/res/res_agi.c,v retrieving revision 1.20 diff -u -r1.20 res_agi.c --- res/res_agi.c 23 Dec 2004 02:47:01 -0000 1.20 +++ res/res_agi.c 28 Dec 2004 23:26:34 -0000 @@ -1173,45 +1173,45 @@ static char usage_setmusic[] = " Usage: SET MUSIC ON \n" " Enables/Disables the music on hold generator. If is\n" -" not specified then the default music on hold class will be used.\n" -" Always returns 0\n"; +" not specified, then the default music on hold class will be used.\n" +" Always returns 0.\n"; static char usage_dbput[] = " Usage: DATABASE PUT \n" " Adds or updates an entry in the Asterisk database for a\n" " given family, key, and value.\n" -" Returns 1 if succesful, 0 otherwise\n"; +" Returns 1 if successful, 0 otherwise.\n"; static char usage_dbget[] = " Usage: DATABASE GET \n" " Retrieves an entry in the Asterisk database for a\n" " given family and key.\n" -" Returns 0 if is not set. Returns 1 if \n" -" is set and returns the variable in parenthesis\n" -" example return code: 200 result=1 (testvariable)\n"; +" Returns 0 if is not set. Returns 1 if \n" +" is set and returns the variable in parentheses.\n" +" Example return code: 200 result=1 (testvariable)\n"; static char usage_dbdel[] = " Usage: DATABASE DEL \n" " Deletes an entry in the Asterisk database for a\n" " given family and key.\n" -" Returns 1 if succesful, 0 otherwise\n"; +" Returns 1 if successful, 0 otherwise.\n"; static char usage_dbdeltree[] = " Usage: DATABASE DELTREE [keytree]\n" -" Deletes a family or specific keytree withing a family\n" +" Deletes a family or specific keytree within a family\n" " in the Asterisk database.\n" -" Returns 1 if succesful, 0 otherwise\n"; +" Returns 1 if successful, 0 otherwise.\n"; static char usage_verbose[] = " Usage: VERBOSE \n" " Sends to the console via verbose message system.\n" -" is the the verbose level (1-4)\n" -" Always returns 1\n"; +" is the the verbose level (1-4)\n" +" Always returns 1.\n"; static char usage_getvariable[] = " Usage: GET VARIABLE \n" " Returns 0 if is not set. Returns 1 if \n" -" is set and returns the variable in parenthesis\n" +" is set and returns the variable in parentheses.\n" " example return code: 200 result=1 (testvariable)\n"; static char usage_getvariablefull[] = @@ -1227,17 +1227,16 @@ static char usage_channelstatus[] = " Usage: CHANNEL STATUS []\n" " Returns the status of the specified channel.\n" -" If no channel name is given the returns the status of the\n" -" current channel.\n" -" Return values:\n" -" 0 Channel is down and available\n" -" 1 Channel is down, but reserved\n" -" 2 Channel is off hook\n" -" 3 Digits (or equivalent) have been dialed\n" -" 4 Line is ringing\n" -" 5 Remote end is ringing\n" -" 6 Line is up\n" -" 7 Line is busy\n"; +" If no channel name is given the returns the status of the\n" +" current channel. Return values:\n" +" 0 Channel is down and available\n" +" 1 Channel is down, but reserved\n" +" 2 Channel is off hook\n" +" 3 Digits (or equivalent) have been dialed\n" +" 4 Line is ringing\n" +" 5 Remote end is ringing\n" +" 6 Line is up\n" +" 7 Line is busy\n"; static char usage_setcallerid[] = " Usage: SET CALLERID \n" @@ -1246,28 +1245,28 @@ static char usage_exec[] = " Usage: EXEC \n" " Executes with given .\n" -" Returns whatever the application returns, or -2 on failure to find application\n"; +" Returns whatever the application returns, or -2 on failure to find application\n"; static char usage_hangup[] = " Usage: HANGUP []\n" " Hangs up the specified channel.\n" -" If no channel name is given, hangs up the current channel\n"; +" If no channel name is given, hangs up the current channel\n"; static char usage_answer[] = " Usage: ANSWER\n" -" Answers channel if not already in answer state. Returns -1 on\n" +" Answers channel if not already in answer state. Returns -1 on\n" " channel failure, or 0 if successful.\n"; static char usage_waitfordigit[] = " Usage: WAIT FOR DIGIT \n" -" Waits up to 'timeout' milliseconds for channel to receive a DTMF digit.\n" +" Waits up to 'timeout' milliseconds for channel to receive a DTMF digit.\n" " Returns -1 on channel failure, 0 if no digit is received in the timeout, or\n" " the numerical value of the ascii of the digit if one is received. Use -1\n" " for the timeout value if you desire the call to block indefinitely.\n"; static char usage_sendtext[] = " Usage: SEND TEXT \"\"\n" -" Sends the given text on a channel. Most channels do not support the\n" +" Sends the given text on a channel. Most channels do not support the\n" " transmission of text. Returns 0 if text is sent, or if the channel does not\n" " support text transmission. Returns -1 only on error/hangup. Text\n" " consisting of greater than one word should be placed in quotes since the\n" @@ -1275,7 +1274,7 @@ static char usage_recvchar[] = " Usage: RECEIVE CHAR \n" -" Receives a character of text on a channel. Specify timeout to be the\n" +" Receives a character of text on a channel. Specify timeout to be the\n" " maximum time to wait for input in milliseconds, or 0 for infinite. Most channels\n" " do not support the reception of text. Returns the decimal value of the character\n" " if one is received, or 0 if the channel does not support text reception. Returns\n" @@ -1283,19 +1282,19 @@ static char usage_tddmode[] = " Usage: TDD MODE \n" -" Enable/Disable TDD transmission/reception on a channel. Returns 1 if\n" +" Enable/Disable TDD transmission/reception on a channel. Returns 1 if\n" " successful, or 0 if channel is not TDD-capable.\n"; static char usage_sendimage[] = " Usage: SEND IMAGE \n" -" Sends the given image on a channel. Most channels do not support the\n" +" Sends the given image on a channel. Most channels do not support the\n" " transmission of images. Returns 0 if image is sent, or if the channel does not\n" " support image transmission. Returns -1 only on error/hangup. Image names\n" " should not include extensions.\n"; static char usage_streamfile[] = " Usage: STREAM FILE [sample offset]\n" -" Send the given file, allowing playback to be interrupted by the given\n" +" Send the given file, allowing playback to be interrupted by the given\n" " digits, if any. Use double quotes for the digits if you wish none to be\n" " permitted. If sample offset is provided then the audio will seek to sample\n" " offset before play starts. Returns 0 if playback completes without a digit\n" @@ -1305,32 +1304,32 @@ static char usage_getoption[] = " Usage: GET OPTION [timeout]\n" -" Exactly like the STREAM FILE but used with a timeout option\n"; +" Behaves similar to STREAM FILE but used with a timeout option.\n"; static char usage_saynumber[] = " Usage: SAY NUMBER \n" -" Say a given number, returning early if any of the given DTMF digits\n" +" Say a given number, returning early if any of the given DTMF digits\n" " are received on the channel. Returns 0 if playback completes without a digit\n" " being pressed, or the ASCII numerical value of the digit if one was pressed or\n" " -1 on error/hangup.\n"; static char usage_saydigits[] = " Usage: SAY DIGITS \n" -" Say a given digit string, returning early if any of the given DTMF digits\n" +" Say a given digit string, returning early if any of the given DTMF digits\n" " are received on the channel. Returns 0 if playback completes without a digit\n" " being pressed, or the ASCII numerical value of the digit if one was pressed or\n" " -1 on error/hangup.\n"; static char usage_sayalpha[] = " Usage: SAY ALPHA \n" -" Say a given character string, returning early if any of the given DTMF digits\n" +" Say a given character string, returning early if any of the given DTMF digits\n" " are received on the channel. Returns 0 if playback completes without a digit\n" " being pressed, or the ASCII numerical value of the digit if one was pressed or\n" " -1 on error/hangup.\n"; static char usage_saytime[] = " Usage: SAY TIME