|
|
|
@ -536,12 +536,12 @@ AST_MUTEX_DEFINE_STATIC(dpcache_lock);
|
|
|
|
|
static void iax_debug_output(const char *data)
|
|
|
|
|
{
|
|
|
|
|
if (iaxdebug)
|
|
|
|
|
ast_verbose(data);
|
|
|
|
|
ast_verbose("%s", data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void iax_error_output(const char *data)
|
|
|
|
|
{
|
|
|
|
|
ast_log(LOG_WARNING, data);
|
|
|
|
|
ast_log(LOG_WARNING, "%s", data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* XXX We probably should use a mutex when working with this XXX */
|
|
|
|
@ -6399,9 +6399,11 @@ static struct iax2_peer *build_peer(char *name, struct ast_variable *v)
|
|
|
|
|
} else {
|
|
|
|
|
ast_mutex_unlock(&peerl.lock);
|
|
|
|
|
peer = malloc(sizeof(struct iax2_peer));
|
|
|
|
|
memset(peer, 0, sizeof(struct iax2_peer));
|
|
|
|
|
peer->expire = -1;
|
|
|
|
|
peer->pokeexpire = -1;
|
|
|
|
|
if (peer) {
|
|
|
|
|
memset(peer, 0, sizeof(struct iax2_peer));
|
|
|
|
|
peer->expire = -1;
|
|
|
|
|
peer->pokeexpire = -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (peer) {
|
|
|
|
|
peer->messagedetail = globalmessagedetail;
|
|
|
|
@ -6566,7 +6568,8 @@ static struct iax2_user *build_user(char *name, struct ast_variable *v)
|
|
|
|
|
} else {
|
|
|
|
|
ast_mutex_unlock(&userl.lock);
|
|
|
|
|
user = malloc(sizeof(struct iax2_user));
|
|
|
|
|
memset(user, 0, sizeof(struct iax2_user));
|
|
|
|
|
if (user)
|
|
|
|
|
memset(user, 0, sizeof(struct iax2_user));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (user) {
|
|
|
|
|