struct ast_ha *oldha = NULL;
char *varname = NULL, *varval = NULL;
struct ast_variable *tmpvar = NULL;
+ struct ast_flags userflags = {(0)};
+ struct ast_flags mask = {(0)};
+
user = (struct sip_user *)malloc(sizeof(struct sip_user));
if (!user) {
return NULL;
}
- struct ast_flags userflags = {(0)};
- struct ast_flags mask = {(0)};
-
memset(user, 0, sizeof(struct sip_user));
suserobjs++;
ASTOBJ_INIT(user);
time_t regseconds;
char *varname = NULL, *varval = NULL;
struct ast_variable *tmpvar = NULL;
+ struct ast_flags peerflags = {(0)};
+ struct ast_flags mask = {(0)};
+
if (!realtime)
/* Note we do NOT use find_peer here, to avoid realtime recursion */
if (!peer)
return NULL;
- struct ast_flags peerflags = {(0)};
- struct ast_flags mask = {(0)};
-
peer->lastmsgssent = -1;
if (!found) {
if (name)