summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-16 22:37:31 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-16 22:37:31 +0000
commit61e446f04b2bdcc41f6420e3cf9ed466ed80c3ed (patch)
tree42e44ab95928950f65a80b2dd298dc79f9b82a8e /res
parent7640e83360c2dfc792091caeaea05cc9fce0635c (diff)
dom mar 16 23:37:23 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-xres/res_indications.c6
-rwxr-xr-xres/res_musiconhold.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/res/res_indications.c b/res/res_indications.c
index 04b0d6a5a..3ed4c088d 100755
--- a/res/res_indications.c
+++ b/res/res_indications.c
@@ -192,9 +192,9 @@ static int handle_playtones(struct ast_channel *chan, void *data)
}
ts = ast_get_indication_tone(chan->zone, (const char*)data);
if (ts && ts->data[0])
- res = ast_playtones_start(chan, 0, ts->data);
+ res = ast_playtones_start(chan, 0, ts->data, 0);
else
- res = ast_playtones_start(chan, 0, (const char*)data);
+ res = ast_playtones_start(chan, 0, (const char*)data, 0);
if (res)
ast_log(LOG_NOTICE,"Unable to start playtones\n");
return res;
@@ -212,7 +212,7 @@ static int handle_stopplaytones(struct ast_channel *chan, void *data)
/*
* Load module stuff
*/
-static int ind_load_module()
+static int ind_load_module(void)
{
struct ast_config *cfg;
struct ast_variable *v;
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 0d540aebd..5c59e2e19 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -386,8 +386,10 @@ static void *moh_alloc(struct ast_channel *chan, void *params)
moh_release(NULL, res);
res = NULL;
}
+#if 0
/* Allow writes to interrupt */
chan->writeinterrupt = 1;
+#endif
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Started music on hold, class '%s', on %s\n", (char *)params, chan->name);
}
@@ -531,7 +533,7 @@ static void load_moh_classes(void)
}
}
-void ast_moh_destroy(void)
+static void ast_moh_destroy(void)
{
struct mohclass *moh;
ast_pthread_mutex_lock(&moh_lock);