summaryrefslogtreecommitdiff
path: root/res/res_calendar.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-02-20 23:43:27 +0000
committerTerry Wilson <twilson@digium.com>2012-02-20 23:43:27 +0000
commit57f42bd74f78d5022631b2ba2269892f8a3a384a (patch)
tree3283ec4ac88c5b3c267f4490b410e5331911f2bb /res/res_calendar.c
parent25e5eb3b96e6d9bcbb2fc02fbd879ae21104c1f5 (diff)
ast_channel opaquification of pointers and integral types
Review: https://reviewboard.asterisk.org/r/1753/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_calendar.c')
-rw-r--r--res/res_calendar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_calendar.c b/res/res_calendar.c
index 382d34e08..e5a0d929e 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -743,13 +743,13 @@ static void *do_notify(void *data)
goto notify_cleanup;
}
- chan->tech = &null_tech;
+ ast_channel_tech_set(chan, &null_tech);
ast_format_set(&chan->writeformat, AST_FORMAT_SLINEAR, 0);
ast_format_set(&chan->readformat, AST_FORMAT_SLINEAR, 0);
ast_format_set(&chan->rawwriteformat, AST_FORMAT_SLINEAR, 0);
ast_format_set(&chan->rawreadformat, AST_FORMAT_SLINEAR, 0);
/* clear native formats and set to slinear. write format is signlear so just use that to set it */
- ast_format_cap_set(chan->nativeformats, &chan->writeformat);
+ ast_format_cap_set(ast_channel_nativeformats(chan), &chan->writeformat);
if (!(datastore = ast_datastore_alloc(&event_notification_datastore, NULL))) {
ast_log(LOG_ERROR, "Could not allocate datastore, notification not being sent!\n");
@@ -793,7 +793,7 @@ static void *do_notify(void *data)
if (ast_strlen_zero(event->owner->notify_app)) {
ast_channel_context_set(answered, event->owner->notify_context);
ast_channel_exten_set(answered, event->owner->notify_extension);
- answered->priority = 1;
+ ast_channel_priority_set(answered, 1);
ast_pbx_run(answered);
}
}