dect
/
asterisk
Archived
13
0
Fork 0

Fix proper cleanup (bug #3481)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4945 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-02-01 20:05:30 +00:00
parent ef8a95ff41
commit 2d18738a6f
1 changed files with 8 additions and 7 deletions

View File

@ -1108,14 +1108,15 @@ zapretry:
if (!(confflags & CONFFLAG_QUIET) && !(confflags & CONFFLAG_MONITOR) && !(confflags & CONFFLAG_ADMIN))
conf_play(conf, LEAVE);
if (!(confflags & CONFFLAG_QUIET) && (confflags & CONFFLAG_INTROUSER) && conf->users > 1) {
if (conf->chan && ast_fileexists(user->namerecloc, NULL, NULL)) {
if (!ast_streamfile(conf->chan, user->namerecloc, chan->language))
ast_waitstream(conf->chan, "");
if (!ast_streamfile(conf->chan, "conf-hasleft", chan->language))
ast_waitstream(conf->chan, "");
if (!(confflags & CONFFLAG_QUIET) && (confflags & CONFFLAG_INTROUSER)) {
if (ast_fileexists(user->namerecloc, NULL, NULL)) {
if ((conf->chan) && (conf->users > 1)) {
if (!ast_streamfile(conf->chan, user->namerecloc, chan->language))
ast_waitstream(conf->chan, "");
if (!ast_streamfile(conf->chan, "conf-hasleft", chan->language))
ast_waitstream(conf->chan, "");
}
ast_filedelete(user->namerecloc, NULL);
}
}
ast_mutex_unlock(&conflock);