summaryrefslogtreecommitdiff
path: root/apps/app_zapateller.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapateller.c')
-rw-r--r--apps/app_zapateller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_zapateller.c b/apps/app_zapateller.c
index 775fd55a3..00166978f 100644
--- a/apps/app_zapateller.c
+++ b/apps/app_zapateller.c
@@ -108,8 +108,8 @@ static int zapateller_exec(struct ast_channel *chan, const char *data)
}
if (nocallerid /* Zap caller if no caller id. */
- && chan->caller.id.number.valid
- && !ast_strlen_zero(chan->caller.id.number.str)) {
+ && ast_channel_caller(chan)->id.number.valid
+ && !ast_strlen_zero(ast_channel_caller(chan)->id.number.str)) {
/* We have caller id. */
return res;
}