summaryrefslogtreecommitdiff
path: root/pbx/pbx_lua.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 /pbx/pbx_lua.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 'pbx/pbx_lua.c')
-rw-r--r--pbx/pbx_lua.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c
index 7ddebbb44..276e4f51d 100644
--- a/pbx/pbx_lua.c
+++ b/pbx/pbx_lua.c
@@ -212,8 +212,8 @@ static int lua_pbx_exec(lua_State *L)
chan = lua_touserdata(L, -1);
lua_pop(L, 1);
- context = ast_strdupa(chan->context);
- exten = ast_strdupa(chan->exten);
+ context = ast_strdupa(ast_channel_context(chan));
+ exten = ast_strdupa(ast_channel_exten(chan));
priority = chan->priority;
lua_concat_args(L, 2, nargs);
@@ -246,13 +246,13 @@ static int lua_pbx_exec(lua_State *L)
return lua_error(L);
}
- if (strcmp(context, chan->context)) {
+ if (strcmp(context, ast_channel_context(chan))) {
lua_pushstring(L, context);
- lua_pushstring(L, chan->context);
+ lua_pushstring(L, ast_channel_context(chan));
lua_pushliteral(L, "context");
- } else if (strcmp(exten, chan->exten)) {
+ } else if (strcmp(exten, ast_channel_exten(chan))) {
lua_pushstring(L, exten);
- lua_pushstring(L, chan->exten);
+ lua_pushstring(L, ast_channel_exten(chan));
lua_pushliteral(L, "exten");
} else if (priority != chan->priority) {
lua_pushinteger(L, priority);