aboutsummaryrefslogtreecommitdiffstats
path: root/muted.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-14 19:00:38 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-14 19:00:38 +0000
commit8acbf04043137e3a3c1af2b8f1d3ba7fd6614500 (patch)
treec0da0f5c97cbf944a9fde44422f7fa067a575f93 /muted.c
parent2e1332e69c7af3119ec6628d9107600156839c70 (diff)
finish merging doxygen updates from issue #5605
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'muted.c')
-rwxr-xr-xmuted.c11
1 files changed, 9 insertions, 2 deletions
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[])