diff options
author | Joshua Colp <jcolp@digium.com> | 2007-07-20 17:21:23 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-07-20 17:21:23 +0000 |
commit | 989b93143a3dc090e7040a460307ed9c940183e6 (patch) | |
tree | 278d78bb704bcd80aed3687235b150f0f5a580a5 | |
parent | 2c2af928fe97915efdda15b82e7ca276f7a6f4ad (diff) |
Merged revisions 76087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r76087 | file | 2007-07-20 14:20:09 -0300 (Fri, 20 Jul 2007) | 14 lines
Merged revisions 76080 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r76080 | file | 2007-07-20 14:16:48 -0300 (Fri, 20 Jul 2007) | 6 lines
(closes issue #10247)
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/trunk@76091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5214973b5..c90a00802 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16971,6 +16971,11 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str peer->chanvars = NULL; /* XXX should unregister ? */ } + + /* If we have realm authentication information, remove them (reload) */ + clear_realm_authentication(peer->auth); + peer->auth = NULL; + for (; v || ((v = alt) && !(alt=NULL)); v = v->next) { if (handle_common_options(&peerflags[0], &mask[0], v)) continue; |