|
|
|
@ -182,8 +182,6 @@ static int timingfd = -1; /* Timing file descriptor */
|
|
|
|
static struct ast_netsock_list *netsock;
|
|
|
|
static struct ast_netsock_list *netsock;
|
|
|
|
static int defaultsockfd = -1;
|
|
|
|
static int defaultsockfd = -1;
|
|
|
|
|
|
|
|
|
|
|
|
static int usecnt = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int (*iax2_regfunk)(const char *username, int onoff) = NULL;
|
|
|
|
int (*iax2_regfunk)(const char *username, int onoff) = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
/* Ethernet, etc */
|
|
|
|
/* Ethernet, etc */
|
|
|
|
@ -1701,8 +1699,6 @@ static int iax2_predestroy(int callno)
|
|
|
|
c->tech_pvt = NULL;
|
|
|
|
c->tech_pvt = NULL;
|
|
|
|
ast_queue_hangup(c);
|
|
|
|
ast_queue_hangup(c);
|
|
|
|
pvt->owner = NULL;
|
|
|
|
pvt->owner = NULL;
|
|
|
|
ast_atomic_fetchadd_int(&usecnt, -1);
|
|
|
|
|
|
|
|
ast_update_use_count();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
@ -3321,9 +3317,6 @@ static struct ast_channel *ast_iax2_new(int callno, int state, int capability)
|
|
|
|
for (v = i->vars ; v ; v = v->next)
|
|
|
|
for (v = i->vars ; v ; v = v->next)
|
|
|
|
pbx_builtin_setvar_helper(tmp, v->name, v->value);
|
|
|
|
pbx_builtin_setvar_helper(tmp, v->name, v->value);
|
|
|
|
|
|
|
|
|
|
|
|
ast_atomic_fetchadd_int(&usecnt, 1);
|
|
|
|
|
|
|
|
ast_update_use_count();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return tmp;
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|