[asterisk-commits] twilson: trunk r356259 - /trunk/channels/chan_misdn.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 22 11:34:37 CST 2012
Author: twilson
Date: Wed Feb 22 11:34:33 2012
New Revision: 356259
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=356259
Log:
Fix chan_misdn after the lastest opaquification changes
It now compiles, but there are some unrelated warnings for set but
unused variables.
Modified:
trunk/channels/chan_misdn.c
Modified: trunk/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_misdn.c?view=diff&rev=356259&r1=356258&r2=356259
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Wed Feb 22 11:34:33 2012
@@ -653,7 +653,8 @@
static int pbx_start_chan(struct chan_list *ch);
-#define MISDN_ASTERISK_TECH_PVT(ast) ast->tech_pvt
+#define MISDN_ASTERISK_TECH_PVT(ast) ast_channel_tech_pvt(ast)
+#define MISDN_ASTERISK_TECH_PVT_SET(ast, value) ast_channel_tech_pvt_set(ast, value)
#include "asterisk/strings.h"
@@ -7061,7 +7062,7 @@
ast_mutex_unlock(&release_lock);
return -1;
}
- MISDN_ASTERISK_TECH_PVT(ast) = NULL;
+ MISDN_ASTERISK_TECH_PVT_SET(ast, NULL);
if (!misdn_chan_is_valid(p)) {
ast_mutex_unlock(&release_lock);
@@ -8143,7 +8144,7 @@
/* Link the channel and private together */
chan_list_ref(chlist, "Give a reference to ast_channel");
- MISDN_ASTERISK_TECH_PVT(tmp) = chlist;
+ MISDN_ASTERISK_TECH_PVT_SET(tmp, chlist);
chlist->ast = tmp;
misdn_cfg_get(0, MISDN_GEN_BRIDGING, &bridging, sizeof(bridging));
@@ -8445,7 +8446,7 @@
struct chan_list *ast_ch;
ast_ch = MISDN_ASTERISK_TECH_PVT(ast);
- MISDN_ASTERISK_TECH_PVT(ast) = NULL;
+ MISDN_ASTERISK_TECH_PVT_SET(ast, NULL);
chan_misdn_log(1, bc->port,
"* RELEASING CHANNEL pid:%d context:%s dialed:%s caller:\"%s\" <%s>\n",
bc->pid,
@@ -8509,7 +8510,7 @@
struct chan_list *ast_ch;
ast_ch = MISDN_ASTERISK_TECH_PVT(ast);
- MISDN_ASTERISK_TECH_PVT(ast) = NULL;
+ MISDN_ASTERISK_TECH_PVT_SET(ast, NULL);
if (ast_channel_state(ast) != AST_STATE_RESERVED) {
ast_setstate(ast, AST_STATE_DOWN);
More information about the asterisk-commits
mailing list