summaryrefslogtreecommitdiff
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r--apps/app_meetme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 50b5116ee..7b67d6b23 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -1654,7 +1654,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
goto outrun;
}
- retryzap = strcasecmp(chan->tech->type, "Zap");
+ retryzap = (strcasecmp(chan->tech->type, "Zap") || chan->audiohooks ? 1 : 0);
user->zapchannel = !retryzap;
zapretry:
@@ -2039,14 +2039,14 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
break;
if (c) {
- if (c->fds[0] != origfd) {
+ if (c->fds[0] != origfd || (user->zapchannel && chan->audiohooks)) {
if (using_pseudo) {
/* Kill old pseudo */
close(fd);
using_pseudo = 0;
}
ast_debug(1, "Ooh, something swapped out under us, starting over\n");
- retryzap = strcasecmp(c->tech->type, "Zap");
+ retryzap = (strcasecmp(chan->tech->type, "Zap") || chan->audiohooks ? 1 : 0);
user->zapchannel = !retryzap;
goto zapretry;
}