summaryrefslogtreecommitdiff
path: root/channels/chan_local.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 /channels/chan_local.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 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 27caa3833..ba116d03a 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -893,8 +893,8 @@ static int local_call(struct ast_channel *ast, const char *dest, int timeout)
}
ast_set_cc_interfaces_chanvar(chan, reduced_dest);
- exten = ast_strdupa(chan->exten);
- context = ast_strdupa(chan->context);
+ exten = ast_strdupa(ast_channel_exten(chan));
+ context = ast_strdupa(ast_channel_context(chan));
ao2_unlock(p);
pvt_locked = 0;
@@ -1173,9 +1173,9 @@ static struct ast_channel *local_new(struct local_pvt *p, int state, const char
p->u_owner = ast_module_user_add(p->owner);
p->u_chan = ast_module_user_add(p->chan);
- ast_copy_string(tmp->context, p->context, sizeof(tmp->context));
- ast_copy_string(tmp2->context, p->context, sizeof(tmp2->context));
- ast_copy_string(tmp2->exten, p->exten, sizeof(tmp->exten));
+ ast_channel_context_set(tmp, p->context);
+ ast_channel_context_set(tmp2, p->context);
+ ast_channel_exten_set(tmp2, p->exten);
tmp->priority = 1;
tmp2->priority = 1;