aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_echo.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-10 17:18:04 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-10 17:18:04 +0000
commit1ab2e9f4be0b381e9c28b476204c0e5b1429c57f (patch)
tree7f208ce1324151706ea9ca01ce9193a92e080c69 /apps/app_echo.c
parent6612ac7b39c7551a720bf6bce88585626cf7b806 (diff)
Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_echo.c')
-rwxr-xr-xapps/app_echo.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/app_echo.c b/apps/app_echo.c
index 7d0647d04..db1eb9e9a 100755
--- a/apps/app_echo.c
+++ b/apps/app_echo.c
@@ -28,11 +28,17 @@ static char *tdesc = "Simple Echo Application";
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";
+
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
-static int skel_exec(struct ast_channel *chan, void *data)
+static int echo_exec(struct ast_channel *chan, void *data)
{
int res=-1;
struct localuser *u;
@@ -64,7 +70,7 @@ int unload_module(void)
int load_module(void)
{
- return ast_register_application(app, skel_exec);
+ return ast_register_application(app, echo_exec, synopsis, descrip);
}
char *description(void)