summaryrefslogtreecommitdiff
path: root/res/res_fax.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-02-13 17:27:06 +0000
committerTerry Wilson <twilson@digium.com>2012-02-13 17:27:06 +0000
commit34c55e8e7c87a92181fca3e0101dc456eef2475b (patch)
treead27fca98a7df582348e14b0aaa42f0065cdef99 /res/res_fax.c
parenta955a4770fcdd7874e1337e7df694bcd293e020e (diff)
Opaquify char * and char[] in ast_channel
Review: https://reviewboard.asterisk.org/r/1733/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_fax.c')
-rw-r--r--res/res_fax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_fax.c b/res/res_fax.c
index 35c03f32c..28b46a3ce 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -3357,7 +3357,7 @@ static struct ast_frame *fax_detect_framehook(struct ast_channel *chan, struct a
}
if (result) {
- const char *target_context = S_OR(chan->macrocontext, chan->context);
+ const char *target_context = S_OR(ast_channel_macrocontext(chan), ast_channel_context(chan));
switch (result) {
case 'f':
case 't':
@@ -3367,7 +3367,7 @@ static struct ast_frame *fax_detect_framehook(struct ast_channel *chan, struct a
ast_channel_lock(chan);
ast_verb(2, "Redirecting '%s' to fax extension due to %s detection\n",
ast_channel_name(chan), (result == 'f') ? "CNG" : "T38");
- pbx_builtin_setvar_helper(chan, "FAXEXTEN", chan->exten);
+ pbx_builtin_setvar_helper(chan, "FAXEXTEN", ast_channel_exten(chan));
if (ast_async_goto(chan, target_context, "fax", 1)) {
ast_log(LOG_NOTICE, "Failed to async goto '%s' into fax of '%s'\n", ast_channel_name(chan), target_context);
}