summaryrefslogtreecommitdiff
path: root/apps/app_setcallerid.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_setcallerid.c')
-rw-r--r--apps/app_setcallerid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_setcallerid.c b/apps/app_setcallerid.c
index cfcd2b47d..6fa3170f7 100644
--- a/apps/app_setcallerid.c
+++ b/apps/app_setcallerid.c
@@ -112,8 +112,8 @@ static int setcallerid_pres_exec(struct ast_channel *chan, const char *data)
}
/* Set the combined caller id presentation. */
- chan->caller.id.name.presentation = pres;
- chan->caller.id.number.presentation = pres;
+ ast_channel_caller(chan)->id.name.presentation = pres;
+ ast_channel_caller(chan)->id.number.presentation = pres;
return 0;
}