[asterisk-commits] rmudgett: trunk r217873 - /trunk/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 10 17:11:21 CDT 2009
Author: rmudgett
Date: Thu Sep 10 17:11:17 2009
New Revision: 217873
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217873
Log:
Miscellaneous minor changes.
Modified:
trunk/channels/chan_dahdi.c
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=217873&r1=217872&r2=217873
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Sep 10 17:11:17 2009
@@ -683,7 +683,7 @@
mwisend_states mwisend_current;
};
-static struct dahdi_pvt {
+struct dahdi_pvt {
ast_mutex_t lock;
struct callerid_state *cs;
struct ast_channel *owner; /*!< Our current active owner (if applicable) */
@@ -1248,7 +1248,10 @@
/*! \brief TRUE if confrence is muted. */
int muting;
void *sig_pvt;
-} *iflist = NULL, *ifend = NULL;
+};
+
+static struct dahdi_pvt *iflist = NULL;
+static struct dahdi_pvt *ifend = NULL;
/*! \brief Channel configuration from chan_dahdi.conf .
* This struct is used for parsing the [channels] section of chan_dahdi.conf.
@@ -1416,7 +1419,6 @@
static int dahdi_setoption(struct ast_channel *chan, int option, void *data, int datalen);
static int dahdi_queryoption(struct ast_channel *chan, int option, void *data, int *datalen);
static int dahdi_func_read(struct ast_channel *chan, const char *function, char *data, char *buf, size_t len);
-static int handle_init_event(struct dahdi_pvt *i, int event);
static int dahdi_func_write(struct ast_channel *chan, const char *function, char *data, const char *value);
static const struct ast_channel_tech dahdi_tech = {
@@ -1807,7 +1809,7 @@
p->callwaitingrepeat = CALLWAITING_REPEAT_SAMPLES;
if (p->cidspill) {
ast_log(LOG_WARNING, "Spill already exists?!?\n");
- free(p->cidspill);
+ ast_free(p->cidspill);
}
if (!(p->cidspill = ast_malloc(2400 /* SAS */ + 680 /* CAS */ + READ_SIZE * 4)))
return -1;
@@ -1837,7 +1839,7 @@
if (p->cidspill) {
ast_log(LOG_WARNING, "cidspill already exists??\n");
- free(p->cidspill);
+ ast_free(p->cidspill);
}
if ((p->cidspill = ast_malloc(MAX_CALLERID_SIZE))) {
@@ -4720,7 +4722,7 @@
dahdi_close_sub(p, SUB_REAL);
if (p->owner)
p->owner->tech_pvt = NULL;
- free(p);
+ ast_free(p);
*pvt = NULL;
}
@@ -13259,7 +13261,6 @@
}
ast_cli(a->fd, FORMAT, "Chan", "Variant", "Max ANI", "Max DNIS", "ANI First", "Immediate Accept", "Tx CAS", "Rx CAS");
ast_mutex_lock(&iflock);
- p = iflist;
for (p = iflist; p; p = p->next) {
if (!(p->sig & SIG_MFCR2) || !p->r2chan) {
continue;
More information about the asterisk-commits
mailing list