aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-08-11 02:12:40 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-08-11 02:12:40 +0000
commit99ca26f6588397c7bb77194d90591145cfb40c32 (patch)
treee9d208ff1372be4d875dfd3bff56e8a5b576dbbc
parentdd6aeaf199b212e0ee93ad3b7544cf63da1efedf (diff)
Version 0.2.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@504 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_meetme.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 7a0ad67cf..cec00c339 100755
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -337,6 +337,16 @@ zapretry:
}
if (fd != chan->fds[0])
close(fd);
+ else {
+ /* Take out of conference */
+ /* Add us to the conference */
+ ztc.chan = 0;
+ ztc.confno = 0;
+ ztc.confmode = 0;
+ if (ioctl(fd, ZT_SETCONF, &ztc)) {
+ ast_log(LOG_WARNING, "Error setting conference\n");
+ }
+ }
conf_play(conf, LEAVE);
@@ -410,7 +420,7 @@ static int count_exec(struct ast_channel *chan, void *data)
cnt = conf->users;
else
cnt = 0;
- if (chan->state != AST_STATE_UP)
+ if (chan->_state != AST_STATE_UP)
ast_answer(chan);
res = ast_say_number(chan, cnt, "", chan->language);
LOCAL_USER_REMOVE(u);
@@ -431,7 +441,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
data = "";
}
LOCAL_USER_ADD(u);
- if (chan->state != AST_STATE_UP)
+ if (chan->_state != AST_STATE_UP)
ast_answer(chan);
retry:
/* Parse out the stuff */