aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-07 13:38:11 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-07 13:38:11 +0000
commitd45e2bede407f4d0a96d3ba3f22b72f6d75606ca (patch)
treed0c5555deae458f03e9ab371986a88bd2c5be2d2 /apps
parentba8061b8103021aebd0f06915328b7c1026da91a (diff)
Fix playback behavior to exit correctly when we receive a hangup during playback of the invalid pin message. #7091 (AntD reporting)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25322 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_meetme.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 4b90e91d4..891b51554 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -1965,9 +1965,12 @@ static int conf_exec(struct ast_channel *chan, void *data)
break;
} else {
/* Pin invalid */
- res = ast_streamfile(chan, "conf-invalidpin", chan->language);
- if (!res)
- ast_waitstream(chan, AST_DIGIT_ANY);
+ if (!ast_streamfile(chan, "conf-invalidpin", chan->language))
+ res = ast_waitstream(chan, AST_DIGIT_ANY);
+ else {
+ ast_log(LOG_WARNING, "Couldn't play invalid pin msg!\n");
+ break;
+ }
if (res < 0)
break;
pin[0] = res;