diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-05-10 11:38:43 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-05-10 11:38:43 +0000 |
commit | c99f6d45769cb41791689039d784493d0ea77d20 (patch) | |
tree | acce2ace6a4aa71b0d71e8d931f0d6cdf4b5c626 /apps/app_voicemail.c | |
parent | 16ee7c509c6c31ec9261941aa22af4ca835e74eb (diff) |
fix a couple of misindented lines;
prepare reduce nesting level in a couple of blocks by
inverting an if () statement (indentation change to be committed
separately).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 884cbdd88..a6b371709 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6764,7 +6764,9 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s case 2: /* Call back */ - if (!ast_strlen_zero(cid)) { + if (ast_strlen_zero(cid)) + break; + ast_callerid_parse(cid, &name, &num); while ((res > -1) && (res != 't')) { switch(res) { @@ -6835,20 +6837,21 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s retries++; if (retries > 3) res = 't'; - break; + break; - } + } if (res == 't') res = 0; else if (res == '*') res = -1; } - } break; case 1: /* Reply */ /* Send reply directly to sender */ - if (!ast_strlen_zero(cid)) { + if (ast_strlen_zero(cid)) + break; + ast_callerid_parse(cid, &name, &num); if (!num) { if (option_verbose > 2) @@ -6881,7 +6884,7 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s } } res = 0; - } + break; } |