Skip to content

Commit

Permalink
Merge pull request #470 from ianlin/master
Browse files Browse the repository at this point in the history
registrar: do make use of reg_xavp_cfg
  • Loading branch information
miconda committed Jan 8, 2016
2 parents 46d3a3e + c46a5f2 commit 3022206
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/registrar/reg_mod.c
Expand Up @@ -362,8 +362,14 @@ static int mod_init(void)
sock_hdr_name.len = 0;
sock_flag = -1;
}
} else if (reg_xavp_cfg.s) {
if (reg_xavp_cfg.len == 0 || sock_flag == -1) {
LM_WARN("empty reg_xavp_cfg or sock_flag no set -> resetting\n");
reg_xavp_cfg.len = 0;
sock_flag = -1;
}
} else if (sock_flag!=-1) {
LM_WARN("sock_flag defined but no sock_hdr_name -> reseting flag\n");
LM_WARN("sock_flag defined but no sock_hdr_name or no reg_xavp_cfg -> resetting flag\n");
sock_flag = -1;
}

Expand Down

0 comments on commit 3022206

Please sign in to comment.