]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10247)
authorJoshua Colp <jcolp@digium.com>
Fri, 20 Jul 2007 17:16:48 +0000 (17:16 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 20 Jul 2007 17:16:48 +0000 (17:16 +0000)
Reported by: fkasumovic
Patches:
      chan_sip.patch uploaded by fkasumovic (license #101)
Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@76080 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index eb8e55baa2b74b3dc2376444e6a0269044ad782a..46aec97633e6fa3220b3608492d3f8c587747f73 100644 (file)
@@ -12519,6 +12519,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
                ast_variables_destroy(peer->chanvars);
                peer->chanvars = NULL;
        }
+       /* If we have realm authentication information, remove them (reload) */
+       clear_realm_authentication(peer->auth);
+       peer->auth = (struct sip_auth *) NULL;
        strcpy(peer->context, default_context);
        strcpy(peer->subscribecontext, default_subscribecontext);
        strcpy(peer->vmexten, global_vmexten);