aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 17:16:48 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 17:16:48 +0000
commite89e69617fa078292edf8ec7ea190ec8e1fce9a8 (patch)
tree18f477dc8fc73102593b4a467909e8286c869182 /channels
parentc99a0e41ec1ccc986f1e85f18bd2cd621bebcd5f (diff)
(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: http://svn.digium.com/svn/asterisk/branches/1.2@76080 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index eb8e55baa..46aec9763 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);