Fix reload of peer contexts (bug #6007)
authorMark Spencer <markster@digium.com>
Tue, 20 Dec 2005 09:39:31 +0000 (09:39 +0000)
committerMark Spencer <markster@digium.com>
Tue, 20 Dec 2005 09:39:31 +0000 (09:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7540 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 00a813b..25ba89f 100644 (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)) {