summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2012-05-07 18:58:40 +0000
committerMatthew Jordan <mjordan@digium.com>2012-05-07 18:58:40 +0000
commit11faa15d112ccc687991a2a6c0736040f62a7a07 (patch)
tree62ff55bdeaf87cce9134c5d6254b7bf1bb3c50c2 /apps/app_voicemail.c
parent005cd92e78643d0476570713532bae8d3c9f0869 (diff)
Fix channel opaquification slip-up in r365477
Those channels are opaque now... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@365480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index da974fcfc..55aec5d22 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -5835,8 +5835,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
e[0] = *code;
if (strchr(ecodes, e[0]) == NULL
&& ast_canmatch_extension(chan,
- (!ast_strlen_zero(options->exitcontext) ? options->exitcontext : chan->context),
- e, 1, S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL))) {
+ (!ast_strlen_zero(options->exitcontext) ? options->exitcontext : ast_channel_context(chan)),
+ e, 1, S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL))) {
strncat(ecodes, e, sizeof(ecodes) - strlen(ecodes) - 1);
}
}