Fix reload of peer contexts (bug #6007)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-12-20 09:39:31 +00:00
parent 62084f9736
commit 6322aaad68

View File

@@ -8147,6 +8147,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, in
peer->smoothing = 0;
peer->pokefreqok = DEFAULT_FREQ_OK;
peer->pokefreqnotok = DEFAULT_FREQ_NOTOK;
peer->context[0] = '\0';
while(v) {
if (!strcasecmp(v->name, "secret")) {
if (!ast_strlen_zero(peer->secret)) {