From d8dfa4434d9f121ad5c42cf3b298ccfba00c26f7 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 14 Nov 2005 19:00:38 +0000 Subject: finish merging doxygen updates from issue #5605 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7096 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- muted.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'muted.c') diff --git a/muted.c b/muted.c index 86795a71e..600892cad 100755 --- a/muted.c +++ b/muted.c @@ -22,7 +22,10 @@ /*! \file * \brief Mute Daemon * - * Specially written for Malcolm Davenport, but I think I'll use it too + * \note Specially written for Malcolm Davenport, but I think I'll use it too + * Connects to the Asterisk Manager Interface, AMI, and listens for events + * on certain devices. If a phone call is connected to one of the devices (phones) + * the local sound is muted to a lower volume during the call. * */ @@ -183,6 +186,7 @@ static int open_mixer(void) } #endif /* !__Darwin */ +/*! Connect to the asterisk manager interface */ static int connect_asterisk(void) { int sock; @@ -190,6 +194,7 @@ static int connect_asterisk(void) char *ports; int port = 5038; struct sockaddr_in sin; + ports = strchr(host, ':'); if (ports) { *ports = '\0'; @@ -237,6 +242,7 @@ static char *get_line(void) return NULL; } +/*! Login to the asterisk manager interface */ static int login_asterisk(void) { char *welcome; @@ -573,6 +579,7 @@ static int wait_event(void) char channel[120]=""; char oldname[120]=""; char newname[120]=""; + resp = get_line(); if (!resp) { fprintf(stderr, "disconnected (6)\n"); @@ -616,7 +623,7 @@ static void usage(void) { printf("Usage: muted [-f] [-d]\n" " -f : Do not fork\n" - " -d : Debug (implies -f)\n"); + " -d : Debug (implies -f)\n"); } int main(int argc, char *argv[]) -- cgit v1.2.3